public function __construct(&$controller) { parent::__construct($controller); if ($controller->html) { throw new AppViewException('wrong render type'); } }
public function __construct(&$controller) { parent::__construct($controller); if (!$controller->html) { throw new AppViewException('Unknow Return Format'); } require "Smarty.class.php"; $this->smarty = new Smarty(); }
public function __construct($resourceName) { parent::__construct($resourceName); }