models/Category.php
public function setUrl($pageName, $controller)
    {
        $params = [
            'id'   => $this->id,
            'slug' => $this->slug
        ];

        return $this->url = $controller->pageUrl($pageName, $params, false);
    }
public function setUrl($pageName, $controller)
    {
        $params = [
            'id'   => $this->id,
            'slug' => $this->slug
        ];

        return $this->url = $controller->pageUrl($pageName, $params, false);
    }
public function setUrl ( $ pageName , $ controller ) { $ params = [ 'id' => $ this -> id , 'slug' => $ this -> slug ] ; return $ this -> url = $ controller -> pageUrl ( $ pageName , $ params , false ) ; }
Sets the "url" attribute with a URL to this object
@param string $pageName
@param Cms\Classes\Controller $controller
Sets the url attribute with a URL to this object