CakePHP Newbie
Posted: Fri Feb 09, 2007 2:04 pm
Hi, I am new to these forums and I downloaded CakePHP a few days ago. My experience with PHP in general is not vast (a few small, web-based applications). For my next projects, I was asked to use Cake. However, after going through the manual and searching the Internet, I have been unable to find answers to several questions which I could not answer from the manual. I tried Cake's IRC channel, but either it is down or for some reason I am unable to connect to it. I'm not sure if my questions belong to this forum, but I couldn't really match them to a particular forum.
1) When building a web site with several pages that only contain static data and a design, where do you put the pages' files?
2) Even if pages contain only design and static data, do you need a model, a controller and a view for each of these pages? And if you do, do you need to include some code on the model and controller besides the class declaration and the "$var name" piece?
3) From the name of the folders, I would guess that app/webroot/css is where css files belong. However, when I put a css file there, it is not being used by cake when I view a page. Why is it not using the css that I placed there?
I think that would be all for now. Thanks in advance.
1) When building a web site with several pages that only contain static data and a design, where do you put the pages' files?
2) Even if pages contain only design and static data, do you need a model, a controller and a view for each of these pages? And if you do, do you need to include some code on the model and controller besides the class declaration and the "$var name" piece?
3) From the name of the folders, I would guess that app/webroot/css is where css files belong. However, when I put a css file there, it is not being used by cake when I view a page. Why is it not using the css that I placed there?
I think that would be all for now. Thanks in advance.