开发者

how to change the path of a zendframework project

开发者 https://www.devze.com 2023-02-22 23:34 出处:网络
H开发者_高级运维i I want to set up a zend frame work project in my local system. I have downloaded the files and folder and set up in my local xampp (ie, within htdocs I have created a folder named NF

H开发者_高级运维i I want to set up a zend frame work project in my local system. I have downloaded the files and folder and set up in my local xampp (ie, within htdocs I have created a folder named NFL_021. Here I copied all the files and folders). But I need to change the path to /NFL_021/www e:g, from /images/site/register-here.png to /NFL_021/www/images/site/register-here.png It's very difficult to change each and every page. Is there is any easy way to set up this?

Please reply


I think baseUrl view helper would be useful. With this helper you could just specify relative path to your files, e.g.:

<img src="<?php echo $this->baseUrl('/images/site/register-here.png'); ?>" />
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号