use logins, not login!
Enjoy,
John
On May 3, 5:49 pm, gannher <g.lebo...@gmail.com> wrote:
> Hello
>
> I am trying to build a controller but when i call it, i have a 404
> code error.
>
> Here the controller "logins":
>
> <?php
> class LoginsController extends AppController {
> var $name = 'Logins';
> var $uses = '';
> public function display() {
>
> }
>
> }
>
> ?>
>
> Here routes.php:
>
> Router::connect('/', array('controller' => 'homes', 'action' =>
> 'index'));
> Router::connect('/login', array('controller' => 'logins', 'action' =>
> 'display'));
>
> I try to call my controller with this url:
>
> http://www.my_url/login
>
> Log of apache (error.log):
> [Mon May 03 18:38:50 2010] [error] [client <my_ip>] File does not
> exist: /home/cake/app/webroot/login, referer: <my_domain>
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 athttp://groups.google.com/group/cake-php?hl=en
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:
Post a Comment