All pastes #940991 Raw Edit

Untitled

public text v1 · immutable
·published 2008-03-13 13:11 UTC
rendered paste body
Ma personnalisation de réponse commune :

class myHtmlResponse extends jResponseHtml {
 
 
   public $bodyTpl = 'core~www';

   protected function _commonProcess(){
        ...
		$this->title = 'Mon titre';
 	...
   }
}

Mon controller :

class coreCtrl extends jController{
    /**
    *
    */
	
    public function common() {
		$rep = $this->getResponse('html');
		echo $rep->title;                             <----- me renvoi rien
		$menu = coreClass::singleton();
                ...
		return $rep;
    }
}