i am wondering by what method are the params of a zend view action helper passed by? get
or post
. is is becos i cant seem to access them via $_GET
& $_POST
but i can with $this->getRequest()->getParam("xxx")
then i want to check if the variable exists 1st before using it so i did
$itemsPerPage = isset($this->getRequest()->getParam("itemsPerPage")) ? $this->getRequest()->getParam("itemsPerPage") : 5;
which fails with
Fatal error: Can't use method return value in write context in D:\Projects\Websites\php\ZendFramework\LearningZF\application\controllers\IndexController.php on line 21
i wonder whats wrong