Categories
Zend Framework 1.12

Zend form Error: String was not found in the haystack

Solution to: Zend Form Error: String was not found in the haystack Ok So you submit your form with everthing correctly entered and bang…String was not found in the haystack. What does this mean? Well this is actually the best defence of CSFR – Request Forgery that Zend has. This is basically tampering with the $_POST variable […]

Categories
Uncategorized Zend Framework 1.12

Go Back to Referring page Zend Framework

Tutorial on how to go back to previous page Zend Framework Controller: $request = $this->getRequest(); $referrer = $request->getHeader(‘referer’); $this->view->referer = $referer; View:

Categories
Zend Framework 1.12

How to use count(*) in Zend Select Statement

public function getCount() { $select = $this->select(); $select->from($this, array(‘count(*) as amount’)); $rows = $this->fetchAll($select); return($rows[0]->amount); }