Latest news
Home » zendframework » Get baseurl in zendframework

Get baseurl in zendframework

The developers are can use this piece of code anywhere in zendframework  project for get baseurl of currently running project.

<?php echo rtrim(Zend_Controller_Front::getInstance()->getBaseUrl(),’/’); ?>

Leave a Reply

x

Check Also

Get core settings value in social engine

Get  core settings value in social engine Engine_Api::_()->getApi(‘settings’, ‘core’)->getFlatSetting(‘core_general.uniistatsmail’, array(”));