Reputation: 1409
i have BaseUrl
class in this path application\views\helpers
class Zend_View_Helper_BaseUrl {
function baseUrl ()
{
$fc = Zend_Controller_Front::getInstance();
return $fc->getBaseUrl();
}
}
but in my views when i use
echo $this->baseUrl();
its null
;
someone could help ?
thanks
Upvotes: 4
Views: 1609
Reputation: 3350
There are already a View-Helper for BaseURL : class Zend_View_Helper_BaseUrl extends Zend_View_Helper_Abstract
I think you have problem with the default ; try to rename your Zend_View_Helper_BaseUrl
or try to use the default one.
Upvotes: 1