NON-CAKE files within cakephp framework.

2006-09-02 Thread globalnomad
please help me with these newbie questions: 1) do I have to have a default.thtml for my entire site? because right now I just stuck my files as they are in webroot and I have no template or layout files. Is that bad cake? the reason for this is that I haven't gotten to data-driven pages yet.

Re: NON-CAKE files within cakephp framework.

2006-09-02 Thread Olivier Percebois-Garve
1. use the page controller. 2.use elements or in the layout file. 3.use the page controller. 4. Dunno what NON-CAKE files are but again, just use the page controller. olivvv globalnomad wrote: please help me with these newbie questions: 1) do I have to have a default.thtml for my entire

Re: NON-CAKE files within cakephp framework.

2006-09-02 Thread John David Anderson (_psychic_)
On Sep 2, 2006, at 11:12 AM, Olivier Percebois-Garve wrote: 1. use the page controller. 2.use elements or in the layout file. 3.use the page controller. 4. Dunno what NON-CAKE files are but again, just use the page controller. olivvv globalnomad wrote: please help me with these

Re: NON-CAKE files within cakephp framework.

2006-09-02 Thread [EMAIL PROTECTED]
olivw, Is there any documentation or examples of using the pages controller? I looked at the API, and can probably go from there with some trial and error, but it would help to see a few words on how best to use it. I think it might be very useful to me. Thanks.

Re: NON-CAKE files within cakephp framework.

2006-09-02 Thread globalnomad
thanks... If I understand what you correctly, I will create: /app/controllers/foos_controller.php class FoosController extends AppController { function show() { //not sure what goes here to display the html fragment I want //but i'll try and figure it out } } Won't

Re: NON-CAKE files within cakephp framework.

2006-09-02 Thread globalnomad
John, I didn't see your reply when I made my second post but it contains a wealth of information for newbies.. thanks VERY much and I will try and follow some of what you said. Can't promise I won't be back with more lame questions though :-)

Re: NON-CAKE files within cakephp framework.

2006-09-02 Thread globalnomad
okay. I took my old index page and called it test.thtml, moved it to /app/view/pages/test.thtml I copied /cake/lib/page_controller.php to /app/controllers/page_controller.php I then hit http://www.mysite.home/pages/test and I get: The requested URL /app/webroot/index.php was not found on this