I rewrite my default router to site.com/lang/controller/action for supporting
multi language but after rewrite i cant load image files to tag
In the img tag i gave image path like this
"file:<?=$this- baseUrl?>/public/images/test.jpg" width="100" height="100">
I gave this path directly to bowser then the index page for English language
is loading
Router rewriting code is in the bootstrap file is
$route = new Zend_Controller_Router_Route(':lang/:controller/:action',
array('controller'=>'index',
'action' => 'index',
'module'=>'default',
'lang'=>'en'));
$frontController = Zend_Controller_Front::getInstance();
$router = $frontController->getRouter();
$router->addRoute('default', $route);
$frontController->setRouter($router);
I create a plug in to select multi languages. I use csv adapter the code
for and the code for calling
language plug in is
$frontController->registerPlugin(new
Zend_Controller_Action_Helper_LanguageSetup(
$root_path . '/tobinsTest/application/configuration/translations',
$config->languages->toArray()));
please help me
By: Tobin
--
View this message in context:
http://www.nabble.com/Problem-with-loading-image-when-rewrite-defalt-routing-tp21492864p21492864.html
Sent from the Zend Framework mailing list archive at Nabble.com.