how to access url helper in zend from the models

pangit87

New Member
is there an easy way to access the url helpers from the models like the ones available in the controllers
i mean in the controllers there is an easy way to generate urls like this :\[code\]$this->_helper->url(controller,action,null,params);\[/code\]now what i need is an easy way to pass urls direclty from the model to the views , for now what i am doing is to pass the CONTROLLER,ACTION AND PARAM as an array to controller then replace the text in the controller with with the helper url in the controller but i want a better way is there one?
 
Back
Top