Ejemplo n.º 1
0
Archivo: xyz.php Proyecto: refo/kohana
	public function render($formatted = FALSE)
	{

		$this->add_info('time', time());
		
		return parent::render($formatted);
	}
Ejemplo n.º 2
0
Archivo: atom.php Proyecto: 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);
	}