예제 #1
0
파일: xyz.php 프로젝트: refo/kohana
	public function render($formatted = FALSE)
	{

		$this->add_info('time', time());
		
		return parent::render($formatted);
	}
예제 #2
0
파일: atom.php 프로젝트: refo/kohana
	public function render($formatted = FALSE)
	{
		if ( ! $this->published)
		{
			// Add the published node with current date
			$this->add_node("published", time());
		}
		// Add the link to self
		$this->add_node("link", NULL, array("rel" => "self", "href" => $_SERVER['REQUEST_URI']));
		
		return parent::render($formatted);
	}