Can cakephp have multiple 'content'? -


so in cakephp's layout have the

$this->fetch('content') 

right? mean can have 1 'content' in 1 layout? need multiple content multiple controller can done? how? please me!!!

the layout isn't capable of pulling information controller. controller place view prepared placed within layout.

when access cakephp url, it's in following format:

http://example.com/controller/action

in other words, you're connecting directly controller, not layout.

you use controller data models , when ready set view , view displayed, layout wrapped around it. so, put html/css etc in layout if want appear in of views.

to answer question, though, controllers don't have content. content (presumably) in database. databases accessed using models , it's possible pull data multiple models using single controller, done defining relationships between multiple models.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -