cakephp controller 加载不相同的 model
摘要:
1. Controller::loadModel();This method actually calls ClassRegistry::init() and saves the instance of the model as a parameter in the controller.Example:1Controller::loadModel('Car');2$cars=$this->Car->find('all');2. ClassRegistry::init()This method creates an instance of the M 阅读全文
posted @ 2012-07-03 18:40
一个石头
阅读(168)
评论(0)
推荐(0)
浙公网安备 33010602011771号