I read that $this->getHelper('[helper_name]') preferable to $this->_helper->[helper_name] . What I could not find in the documentation is whether this is better / preferable: $this->_redirect($url) or $this->getHelper('Redirector')->gotoUrl($url) .
$this->getHelper('[helper_name]')
$this->_helper->[helper_name]
$this->_redirect($url)
$this->getHelper('Redirector')->gotoUrl($url)
Use what suits you, they do the same:
/** * Redirect to another URL * * Proxies to {@link Zend_Controller_Action_Helper_Redirector::gotoUrl()}. * * @param string $url * @param array $options Options to be used when redirecting * @return void */ protected function _redirect($url, array $options = array()) { $this->_helper->redirector->gotoUrl($url, $options); }
Source: https://habr.com/ru/post/1343332/More articles:Android bottom button bar and scroll view with dialog theme - androidTracking table changes - sqlUsing random images from a database to fill the entire height and width of a web page - htmlCan JAXB be configured to prevent object expansion attacks? - javaJavascript Json object, get value by key string. Ex: GetMyVal (MyKeyInString) - jsonHow to prevent Mercurial commit / block certain files? - mercurialmove page in web application - javascriptHow to access the browser “backward” and “refresh” the AJAX content on the page (so that the content matches the form that loads it) - javascriptZend Db SQLITE Setup - phpHow to create a firefox toolbar with type = "menu" - firefoxAll Articles