2

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 1

6

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

Sign up to request clarification or add additional context in comments.

1 Comment

In zend framework, whether any flashes messages properties is there, like a message will be given as flash after redirect of page.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.