[eluser]Shiro[/eluser]
Hi Everyone,
I had been using eclipse 3.5 PDT for several month, recently I just start with CI.
I have a problem which is using eclipse to auto generate phpDoc.
here is the scenario:
Code:
<?php
class MReports extends Model{
/** //<- start auto generate when I type /** [Enter]
*
* Oct 2, 2009
* @return unknown_type
*/ //<-end
function __construct(){
parent::Model();
}
/** //<- start auto generate when I type /** [Enter]
* /**
*
*/
*/ //<-end
function index(){
}
}
for the __construct it will auto generate the phpDoc comment for me, but for index function it won't
scenario 2:
Code:
<?php
/** //<- start auto generate when I type /** [Enter]
*
* Oct 2, 2009
* @return unknown_type
*/ //<-end
function __construct(){
parent::Model();
}
/** //<- start auto generate when I type /** [Enter]
*
* Oct 2, 2009
* @return unknown_type
*/ //<-end
function index(){
}
When I remove the class that line, the phpDoc works again, how to fix this problem?
scenario 3:
Code:
<?php
class MReports extends Model{
/** //<- start auto generate when I type /** [Enter]
*
* Oct 2, 2009
* @return unknown_type
*/ //<-end
function __construct(){
parent::Model();
}
/** //<- start auto generate when I type /** [Enter]
*
* Oct 2, 2009
* @return unknown_type
*/ //<-end
static function index(){
}
}
to enable the phpDoc work inside a class, I have to create a "static" function, but I don't think this is a good solution.
Any idea?