Ejemplo n.º 1
0
 /**
  * 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}");
 }
Ejemplo n.º 2
0
 /**
  * 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;
 }
Ejemplo n.º 3
0
	/**
	 * 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"
		);
	}