Re: routes.php is not working as expected

2008-03-28 Thread Nicolás Dujovne

I hope its not too late to answer your question. I had the same
problem and i fix it with the guideline on this page about
mod_rewrite: http://manual.cakephp.org/appendix/blog_tutorial (Look
for the "A Note On mod_rewrite" title).

Hope it helps

On Mar 9, 9:20 pm, DierRe <[EMAIL PROTECTED]> wrote:
> Uhm...I don't why /index.php/controller/action/ isworkingbut I 
> didnotuncommented in core.php the line:
> define('BASE_URL', env('SCRIPT_NAME'));

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: routes.php is not working as expected

2008-03-09 Thread DierRe

Uhm...I don't why /index.php/controller/action/ is working but I did
not uncommented in core.php the line:
define('BASE_URL', env('SCRIPT_NAME'));
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



routes.php is not working as expected

2008-03-09 Thread DierRe

Hi, I'm using cakephp 1.1 and I have problem configuring routes.php
I read the manual but there is just one example so I don't know if I'm
doing it right.

I have an "Account" model and an "AccountsController" controller
composed by 3 actions: index, register and renew

I want:
/accounts/ -> index
/accounts/register/ -> register
/accounts/renew/ -> renew

So my first try was for index:

$Route->connect('/accounts/', array('controller' => 'accounts',
'action' => 'index'));

but it's not working

So I tried this:

$Route->connect('/', array('controller' => 'accounts', 'action' =>
'index'));

and it's working.

Why?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---