|
本帖最后由 cxc246809 于 2014-6-11 18:54 编辑
通过加载 package, 调用 library 没有问题,调用 model、和 helper,就会提示找不到指定的模型;代码如下:
-----------------------------------------------------------------------------------------------------------------
$this->load->add_package_path(APPPATH."third_party/cloud_photos/"); //加载package
$this->load->library("Myalbum","","albums"); //加载library echo $this->albums->getTime();
$this->load->model("album_model","album"); //加载model
echo "<br />".$this->album->get_album_list($this->uid);
$this->load->helper("mytest"); //加载helper
echo "<br />".myalbum($this->uid);
-----------------------------------------------------------------------------------------------------------------
加载 helper 时 提示错误 :
An Error Was Encountered Unable to load the requested file: helpers/mytest_helper.php
-----------------------------------------------------------------------------------------------------------------
有会的吗,求解答,谢谢
|
|