zfuser wrote:
I created router
$router = $frontController->getRouter();
$router->addRoute(
'url',
new
Zend_Controller_Router_Route(':lang/:module/:category/:controller/:action/:test',
array('module'=>'default', 'controller' => 'index', 'action' => 'index',
'lang' => 'en', 'category'=> 'categ1'))
);
(...)
Problem occurs when I change url, for example remove default index
controller and action [url]http://domain/en/default/pc/something/[/url]
error is:
Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with
message 'Invalid controller specified (en)' in
C:\wamp\www\ZendFramework-1.0.3\library\Zend\Controller\Dispatcher\Standard.php:198
Hi, zfuser.
You have to provide a default for a :test URL variable (may be even a null
default but I would advise using values you can normally pas thru an URL).
This makes it optional. Otherwise it's required so your route doesn't match.
--
Michał Minicki aka Martel Valgoerad | [EMAIL PROTECTED] |
http://aie.pl/martel.asc
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
"Idleness is not doing nothing. Idleness is being free to do anything." --
Floyd Dell