我正在使用 PHP 的 Codeigniter 框架。我想知道是否有一种方法可以使用 PHPDoc @property 在模型中加载方法以进行自动完成。
我的意思是 ....
class abc_controller extends Controller {
/**
* @property Model1
*/
function func() {
$this->load->model("Model1"); // I am loading the model here
$result = $this->Model1->getIds();
// When I type Model1 in the statement above, it should popup
// an autocompletion box populated with all the methods of Model1
}
}
我在处理 Cakephp 时使用 NetBeans 做了类似的事情。我想知道 CodeIgniter 是否也可以这样做/
问候