Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request #6

Open
SouthRibbleTech opened this issue May 22, 2016 · 8 comments
Open

Feature request #6

SouthRibbleTech opened this issue May 22, 2016 · 8 comments

Comments

@SouthRibbleTech
Copy link

Is it possible for you to add code completion after loading a model.

Example, after

$this->load->model("mdl_name");

allow code completion to see the methods inside mdl_name?

Thanks

@junichi11
Copy link
Member

You can use "vdoc".
e.g.

/* @var $model MyNamespace\MyModel */
$model = $this->load->model("MyModel");

@SouthRibbleTech
Copy link
Author

Thank you,

Can you give me an example based on the example code below. This does not
seem to work for me.

/* @var $this->mdl_users application\models\Mdl_users */

On 22 May 2016 at 13:46, junichi11 [email protected] wrote:

You can use "vdoc".
e.g.

/* @var $model MyNamespace\MyModel */$model = $this->load->model("MyModel");


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#6 (comment)

@junichi11
Copy link
Member

It doesn't work. You have to assign a variable. Probably, you expect the following:
https://netbeans.org/bugzilla/show_bug.cgi?id=182655
Unfortunately, It is not supported.

@SouthRibbleTech
Copy link
Author

No worries,

Many thanks for the help anyway and thank you for the NB module.

Simon

On 22 May 2016 at 14:11, junichi11 [email protected] wrote:

It doesn't work. You have to assign a variable. Probably, you expect the
following:
https://netbeans.org/bugzilla/show_bug.cgi?id=182655
Unfortunately, It is not supported.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#6 (comment)

@junichi11
Copy link
Member

👍

btw, in your case

/* @var $model mdl_users application\models\Mdl_users */
$model = $this->load->model("Mdl_uses");
$model-> // CC here : perhaps it will be work

Thanks.

@SouthRibbleTech
Copy link
Author

No didn't work, it just loads $CI functions, but not the model functions.

Never mind, it's not a big problem, it would just be a nice to have.

Thanks again for looking at it for me.

Have a nice day
Simon

On 22 May 2016 at 14:20, junichi11 [email protected] wrote:

👍

btw, in your case

/* @var $model mdl_users application\models\Mdl_users */$model = $this->load->model("Mdl_uses");$model-> // CC here : perhaps it will be work

Thanks.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#6 (comment)

@kenjis
Copy link

kenjis commented May 22, 2016

You can, if you add @property to your controller like this:
https://github.com/kenjis/codeigniter-tettei-apps/blob/develop/application/controllers/Shop.php#L8

/**
 * @property Mdl_name $mdl_name
 */

@SouthRibbleTech
Copy link
Author

Thank you,

I will give it a try.

On 22 May 2016 at 14:39, kenjis [email protected] wrote:

You can, if you add @Property to your controller like this:

https://github.com/kenjis/codeigniter-tettei-apps/blob/develop/application/controllers/Shop.php#L8

/**


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#6 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants