Wednesday, April 27, 2011

Re: do i need to create a controller for all pages in \views\pages\ folder

You really need to read the guide...what are you are doing is not utilising Cake at all. Follow the Blog tutorial: http://book.cakephp.org/view/1528/Blog

On 27 Apr 2011, at 08:21, varai wrote:

Hi,

Is it necessary to create a controller for each page in \views\pages\
folder?

I have this static page Preschool.html. And I'm getting the following
error message:
Missing Controller
Error: Preschool.htmlController could not be found.

Error: Create the class Preschool.htmlController below in file:
merry_flowers\controllers\preschool.html_controller.php

<?php
class Preschool.htmlController extends AppController {

var $name = 'Preschool.html';
}
?>
Notice: If you want to customize this error message, create
merry_flowers\views\errors\missing_controller.ctp

Even after creating a controller with the above name and contents, i'm
still getting the same Missing Controller message.

As the notice says, if I create missing_controller.ctp, what should
the contents be?

Please help me. I'm clueless....I'm new to cakephp.

thank you.

-- 
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

No comments: