Untitled
public text v1 · immutableMa personnalisation de réponse commune :
class myHtmlResponse extends jResponseHtml {
public $bodyTpl = 'core~www';
protected function _commonProcess(){
...
$this->title .= ($this->title !=''?' - ':'').' CMSB';
...
}
}
Mon controller :
class coreCtrl extends jController{
/**
*
*/
public function common() {
$rep = $this->getResponse('html');
echo $rep->title; <----- me renvoi rien
$menu = coreClass::singleton();
...
return $rep;
}
}