NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Forcing a file to be "inside" a class ?


Joined: 05 Jun 2009
Posts: 12
Reply with quote
Hey,

I'm using my own View class with some .tpl files (Not Smarty!) and any call in those files can contain $this->something (Because they get included inside the class).
Now the problem is that phpED is enable to pick this up, and thus I don't have autocomplete in this file.

Is there any way I can still get auto-complete in this file ?

Thanks, Xeross
View user's profileFind all posts by xerossSend private message


Joined: 30 Dec 2009
Posts: 6
Reply with quote
Total guess , as I may be misunderstanding the question, but in settings/file associations , if you removed .tpl from the Smarty entry and put it in with the php file associations, would this not work for you?
View user's profileFind all posts by TanushiheadbashSend private message


Joined: 05 Jun 2009
Posts: 12
Reply with quote
Hmm I don't know.

I basically use an include function inside a class, and phpED won't detect that properly because the path is variable.
View user's profileFind all posts by xerossSend private message
Guru master

Joined: 05 Jul 2004
Posts: 659
Location: Belgium
Reply with quote
Since the path is a variable, it is impossible to determine what the result will be as PhpED does not actually run the PHP.
What you can do is manually add the relevant directories to your project properties. What you are looking for is the entry at the bottom (Code insight includes).
View user's profileFind all posts by BlizzSend private messageVisit poster's website
Forcing a file to be "inside" a class ?
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic