Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit
https://github.com/akelos/akelos/issues
Akelos PHP Framework Forum
Discussions
Categories
General
: urlFor parameters removed when equal to zero
Bottom of Page
1 to 1 of 1
CommentAuthor
dpinte
Hi,
I am using the controller->urlFor method to generate a link url to another controller. One of the paramters is called level and sometimes has a value of zero. When the level is set to zero, the generated url does not contain the level parameter.
$url = $this->_controller->urlFor(array('action' => '...', 'sid' => $sid, 'level' => $level);
How could i change this behaviour ? I can do this :
$url = $this->_controller->urlFor(array('action' => '...', 'sid' => $sid);
$url .= "level = ". $level;
but this is just ugly.
Thanks
Didrik
1 to 1 of 1
Back to Discussions
Top of Page