这些在蛋糕php有什么区别?CakePhp:关于视图
$this->fetch('title');
$this->extend('/Common/view');
$this->element('shop/cart.ctp');
这些在蛋糕php有什么区别?CakePhp:关于视图
$this->fetch('title');
$this->extend('/Common/view');
$this->element('shop/cart.ctp');
你可以从这个网上书店/页学到很多:
http://book.cakephp.org/2.0/en/views.html
希望它会帮助你的!
这是一个很好的链接。答案应该扩大一点,也许 –
我们可以通过使用fetch() –
获取控制器数据来查看你设置的控制器数据通过控制器中的$ this-> set()来查看。在MVC模式下思考 – XuDing
。 – XuDing