php - Zend Framework URL Route not adding domain -
got bit of problem zend not adding base url routes think.
what have follows:
application modules menu public menu css js index.php index.base.php
i using function
<?php echo $this->url(array('module' => 'module1'), 'menu-install'); ?>
with route:
$router->addroute('menu-install', new zend_controller_router_route('/install/:modulepath', array('module' => 'menu', 'controller' => 'install', 'action' => 'install')));
which outputting http://menu/install/module1/ instead of http://localhost:8888/menu/install/module1/
any ideas whats going on?
try ro write this(in bootstrap example)
zend_controller_front::getinstance()->setbaseurl('/');
Comments
Post a Comment