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.
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
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
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.
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
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 :-)
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