Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthordpinte

    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.