Skip to content

Commit

Permalink
Updated readme documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Patroklo committed Mar 1, 2016
1 parent a48f4c4 commit 76a7b96
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,10 @@ The object `$this` can't be used in Blade templates due to compatibility problem

So, instead of this object I made the `$view` object that has the same functionalities than the `$this` in a normal layout system.

For example , if you want to pass `$this->title` from content view to layout view, just use `$view->title` ,and in the layout view , you can get title by using `$this->title`.
For example , if you want to pass `$this->title` from content view to layout view, just use `$view->title` ,and in the layout view , you can get title by using `$this->title`.

### Blade template instructions

The Laravel framework documentation has an extensive guide about how to work with Blade template system. Everything should be compatible with this module since it uses the same libraries in the background.

[Link to the basic Blade documentation in Laravel homepage](https://laravel.com/docs/master/blade)
9 changes: 8 additions & 1 deletion README_spanish.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,11 @@ La variable `$this` que se refiere al propio objeto de la vista no puede ser en

Por ello, en lugar de esta variable, he creado en su lugar `$view` que tiene las mismas funcionalidades que `$this` en un sistema de layout normal.

Por ejemplo, si queremos pasar `$this->title` de una vista a nuestro layout, deberíamos usar en su lugar `$view->title`, y en el layout se podría seguir utilizando `$this->title`.
Por ejemplo, si queremos pasar `$this->title` de una vista a nuestro layout, deberíamos usar en su lugar `$view->title`, y en el layout se podría seguir utilizando `$this->title`.


### Instrucciones de uso para Blade

La documentación del framework Laravel tiene una extensa guía sobre cómo trabajar con el sistema de templates de Blade. Todo debería ser compatible con este módulo ya que utiliza las mismas librerías en su origen.

[Link a la documentación básica de Blade en la web de Laravel](https://laravel.com/docs/master/blade)
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"layout",
"Blade"
],
"version": "1.1.0",
"version": "1.1.1",
"type": "yii2-extension",
"license": "BSD",
"authors": [
Expand Down

0 comments on commit 76a7b96

Please sign in to comment.