我正在開發一個使用codeigniter框架的網站。爲了記錄它,我已經安裝了doxygen。Doxygen跳過文件與php __construct()
<?php if (! defined('BASEPATH')) exit('No direct script access allowed');
/**
* @class
* @brief The class brief
*/
class Catalogo extends CI_Controller {
public function __construct(){
parent::__construct();
$this->load->model('catalogomodel');
$this->load->library('img');
}
public function foo(){
..some code..
}
/* End of file catalogo.php */
/* Location: ./application/controllers/catalogo.php */
這是被跳過的唯一文件,與笨通常結構中的其他文件記錄在案,因爲他們應該:當doxygen的符合文件結構如下奇怪的事情正在發生。
<?php if (! defined('BASEPATH')) exit('No direct script access allowed');
/**
* @class
* @brief The class brief
*/
class Catalogo extends CI_Controller {
public function index(){
...some code to load models, libraries and views ...
}
/* End of file catalogo.php */
/* Location: ./application/controllers/catalogo.php */
您是否在'__construct()'之前嘗試過docblock? –