This is how I ve been accessing model methods from my controllers:
$contactsTable = new Application_Model_DbTable_ContactsBasics();
$contact = $basicsTable->getContact($contacts_id);
我如何这样做?
$contact = Application_Model_DbTable_ContactsBasics::getContact($contacts_id);
我认为,第一种方式是稍快和容易阅读,我必须做些什么才能工作,但我已经尝试了,但并没有工作。