Skip to content

Commit b7a8c55

Browse files
committed
Updating *more* documentation for renaming of View_Layout to Kostache_Layout
1 parent 8f45b37 commit b7a8c55

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

guide/kostache.usage.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ You must define partials within the $_partials array in your view class. The ke
3535
'footer' => 'footer/default', // Loads templates/footer/default.mustache
3636
);
3737

38-
## Using the View_Layout class
38+
## Using the Kostache_Layout class
3939

40-
Kostache comes with a View_Layout class instead of a template controller. This allows your layouts to be more OOP and self contained, and they do not rely on your controllers so much.
40+
Kostache comes with a Kostache_Layout class instead of a template controller. This allows your layouts to be more OOP and self contained, and they do not rely on your controllers so much.
4141

42-
To use it, have your view extend the View_Layout class. You can then specify your own layout file by placing it in templates/layout.mustache. At a minimum, it needs to have a {{>content}} partial defined in it.
42+
To use it, have your view extend the Kostache_Layout class. You can then specify your own layout file by placing it in templates/layout.mustache. At a minimum, it needs to have a {{>content}} partial defined in it.
4343

44-
If you have a view that extends the View_Layout class, but wish to render only the template and not the entire layout, you can set the public $render_layout property to FALSE. This is useful if you want to use the same view class for external requests and HMVC requests.
44+
If you have a view that extends the Kostache_Layout class, but wish to render only the template and not the entire layout, you can set the public $render_layout property to FALSE. This is useful if you want to use the same view class for external requests and HMVC requests.
4545

4646
$view = new View_Post_List;
4747
if ($this->request !== Request::instance) // Is internal request

0 commit comments

Comments
 (0)