1

I am not able to a pass a variable value in the URL in Zend.

echo '<a href="/page/page-info/page_id/"' .$this->hidden_page_id. '"/">Back</a>';

if I simple echo $this->hidden_page_id I get the value on the above page. But When I pass it above through a link it does not show the value. Do I have to store it in a session or something?

1
  • "it does show the value" - That's good then? Commented Feb 22, 2012 at 0:34

1 Answer 1

3

What you get when do a var_dump?

var_dump($this->hidden_page_id);

An advice, use View Helpers:

echo '<a href="' . $this->url(array('controller' => 'page', 'action' => 'page-info', 'page_id' => $this->hidden_page_id)) . '">Back</a>';
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.