Sunday, January 31, 2010

Re: pages_controller.php in controllers folder not working

Check routes. Together with standard pages controller cake have
standard routes for it.

On Jan 30, 4:36 pm, gautam lakum <lakum7...@gmail.com> wrote:
> Hi all,
>
> I have created pages_controller.php in controllers folder. There are
> two actions in it named index and getmodel. I have created index.ctp
> and getmodel.ctp in /app/views/pages. But when I try to accesshttp://.../pages/indexorhttp://.../pages/getmodel, it gives error404
> error. One thing is I have customized the cakephp default error pages.
>
> But the question is why I can't access these urls although I have
> created pages_controller.php actions and its .ctp files.
>
> Thanks.

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en

No comments: