I have url as http://mydomain.com/contact?status=1. How to check the status parameter is set and get value of status in zend view using zend framework?
1 Answer
You can set the view parameter in controller: like
$this->view->status = $this->_getParam('status'); //and in view echo $this->status; OR
Zend_Controller_Front::getInstance()->getRequest()->getParam('status'); For flash messages, you can use FlashMessenger helper, like: //set up flash messenger
$flashMessenger = $this->_helper->FlashMessenger; $flashMessenger->addMessage('some message here'); See here:: ActionHelpers
1 Comment
Justin John
In zend framework, whether any flashes messages properties is there, like a message will be given as flash after redirect of page.