1、
有些全局变量可以在view使用,使用img、js里面的文件都有
<?php echo $html->image($p['Product']['thumb_url'],array('onclick'=>$remoteFunction));?>
所以如要使用,请网$html的helpers查找方法。
2、 Session的读写很简单,$this->Session->write('lang',0);$lang = $this->Session->read('lang');
3、 $this->render($view,$layout),进行调用其他view。