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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With