/** * You should implement a Link() function in your subclass of LeftAndMain, * to point to the URL of that particular controller. * * @return string */ public function Link($action = null) { // Handle missing url_segments if (!$this->stat('url_segment', true)) { self::$url_segment = $this->class; } return Controller::join_links($this->stat('url_base', true), $this->stat('url_segment', true), '/', "{$action}"); }
/** * You should implement a Link() function in your subclass of LeftAndMain, * to point to the URL of that particular controller. * * @return string */ public function Link($action = null) { // Handle missing url_segments if (!$this->stat('url_segment', true)) { self::$url_segment = $this->class; } $link = Controller::join_links($this->stat('url_base', true), $this->stat('url_segment', true), '/', "{$action}"); $this->extend('updateLink', $link); return $link; }
/** * You should implement a Link() function in your subclass of LeftAndMain, * to point to the URL of that particular controller. * * @return string */ public function Link($action = null) { // Handle missing url_segments if(!$this->stat('url_segment', true)) self::$url_segment = $this->class; return Controller::join_links( $this->stat('url_base', true), $this->stat('url_segment', true), '/', // trailing slash needed if $action is null! "$action" ); }