Netbeans not picking up my model class comments

#1
[eluser]Dave F[/eluser]
I have a the file "usermodel.php" in system/application/models. I comment it the following way.

Code:
<?php
/**
* User
*
* @package User
* @author <my_name>
*/

/**
* User User_Model Class
*
* @package        User
* @subpackage    UserModel
*/
class User_Model extends Model
{
    /**
    * Checks the existence of the email address in the database
    *
    * @access public
    * @param String $email_address
    * @return Boolean - TRUE on success and FALSE otherwise
    */
    function check_existence($email_address)
    {
      ...
    }
}
?&gt;

I load it in my controller but an autocomplete popup doesn't appear in Netbeans when I type the member function. How should I comment this class properly?

#2
[eluser]noname11[/eluser]
piggysmile, you can add a property in your controller like this:

/**
* @property User_Model $user_model
*/
try it. good luck!

#3
[eluser]Dave F[/eluser]
It works. Thanks.

#4
[eluser]billmce[/eluser]
You don't have to do it on a controller by controller basis
This article http://masnun.com/blog/2010/06/16/codeig...e-for-php/ explains how to make it apply to all controllers.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.