Re: adding a new link and view to a cakephp websites
Based on the (very small) snippet of code you posted, the view should
be placed in the /app/views/committees directory and the file should
be named setpages.ctp.
The layout will have the $content_for_layout in it. Look in /app/views/
layouts. It may be a file called default.ctp (but maybe not). When the
page is rendered, the contents of the setpages.ctp file will be
inserted in the layout at the position of $content_for_layout.
Since it seems you are trying to modify someone else's CakePHP
application, you may not have spent enough time with the tutorial in
the Manual. This is a mistake. I highly recommend you go through the
tutorial BEFORE trying to modify existing CakePHP code. Go to:
http://book.cakephp.org/#!/view/1528/Blog
Good luck,
Ken
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home