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?
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>';
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.