Re: controller and view extention problem.
On Jun 8, 11:44 pm, fadhli - <e.fad...@gmail.com> wrote:
> hi everyone.
>
> i'm new in cakephp and i want to know how to makehttp://www.example.com/home/index.phpin cakePHP.
> controller without 's' (home not homes)
In routes.php:
Router::connect(
'/home',
array('controller' => 'homes', 'action' => 'index')
);
> and to view page i must use php
> (index.php not index.ctp) extextion.
There's no need to have index.php in the URL. And your URLs should not
ever have "something.ctp" in them. The .ctp files are templates;
they're not supposed to be accessed directly through a URL.
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
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home