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

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -