Tutorial on how to go back to previous page Zend Framework
Controller:
$request = $this->getRequest();
$referrer = $request->getHeader('referer');
$this->view->referer = $referer;
View:
Tutorial on how to go back to previous page Zend Framework
Controller:
$request = $this->getRequest();
$referrer = $request->getHeader('referer');
$this->view->referer = $referer;
View:
Use:
GRANT ALL ON *.* to root@'%' IDENTIFIED BY 'your-root-password';
Use %
as host if you don't know where user is connecting from.
Also make sure Mysql is running and that iptables is not blocking the port.
The above solves this error: Host ... is not allowed to connect to this MySQL server
public function getCount()
{
$select = $this->select();
$select->from($this, array('count(*) as amount'));
$rows = $this->fetchAll($select);
return($rows[0]->amount);
}