Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set baseUrl

I want to set the baseurl in my project . I am using zend framework .But i am new to zend framework and i don't have any idea about how to set it? Please help. Thanks in advance

like image 253
Vinay Avatar asked Apr 27 '11 10:04

Vinay


1 Answers

One way is through Bootstrap.php:

protected function _initSetupBaseUrl() {
    $this->bootstrap('frontcontroller');
    $controller = Zend_Controller_Front::getInstance();
    $controller->setBaseUrl('/projects/myapp'); 
}

Another way is through application.ini:

resources.frontController.baseUrl = /projects/myapp
like image 120
Marcin Avatar answered Oct 14 '22 14:10

Marcin