Hi, I have set in my Routes.php following routes:
Router::reload();
Router::connect(
'/:language/admin/:controller',
array('action' => 'index', 'language' => null, 'admin'
=> true, 'prefix' => 'admin'),
array('language' => '[a-z]{2}')
);
Router::connect(
'/:language/admin/:controller/:action/*',
array('language' => null, 'admin' => true, 'prefix' =>
'admin'),
array('language' => '[a-z]{2}')
);
Router::connect('/:language/:controller/:action/*',
array(),
array('language' => '[a-z]{2}'));
Everything works fine when I try to achieve URLS like:
/en/news/view/2
/fr/admin/news/add
/fr/admin/news/delete/2 (by using html link)
The problem appear, when i want to edit something and use form->create
in HTML preview, that looks like:
<form enctype="multipart" action="localhost/admin/news/edit/33/
language:en>
...
</form>
why is like that?
Could you please help me?
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---