Documentation suggestion: Loading views from within other views

#1
[eluser]Unknown[/eluser]
(Is this the right place to post suggestions regarding the documentation?)

I think it would be a good idea to mention in the documentation that views can load other views. It's both simple and useful, especially for loading headers and footers.

The Views documentation shows very clearly how you can load several views from the controller, and return views as data instead of rendering. I find it more useful to load views from within other views, which is possible but not mentioned. In fact the documentation says that "they [views] must be loaded by a controller", which is not entirely true, apparently.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.