[Enhaced feature] PHP Include path

A forum for discussing the next version of WebCoder/phpCoder.

[Enhaced feature] PHP Include path

Postby moorehojer » Mon Feb 08, 2010 10:49 pm

Hi Kapser

Just a quick idea to inprove the 'PHP -include files' tab that you have in WebCoder 2009.
As it is now we are able to tell what path to folders to use when using include/require. But I was thinking what if we could also give the path to files that xCoder was to handle as-if it was included.

This might seam very odd, but the for people developing code to be used in larger frameworks it could be _very_ nice (in my opinion).
I'm currently working on some modules for Joomla, and in my code I need to use some of the classes provided by the Joomla-core but WebCoder wount help me with autocompletion because it simply don't know what 'JFactory' or 'JDatabase' is.

I have downloaded the source for Joomla to my local computer and I would love to be able to tell WebCoder to handle a handfull of the files a "alway included" and thereby saving me time of adding and removing 'incude' everytime I have to test the code on the webserver.

A I've said it could be an enhancedment of the currently existing tab, but this has the drawback of files not being used in the current project being loaded anyway.
Therefor another idea could be to let us define 'libaries' of files instead and then as a part of the project-settings tell wich libaries to use in this perticular project.

I don't see this a Joomla-only feature but it could be very usefull for the most frameworks (both php and javascript) where you don't maintain all of the code yourself and your code is managed by a larger system wich offers code and features for the developer to use.

Am I the only one seeing the need for such a feature?

(I thought i've seen someone mentions something like this in another post but couldn't find it before posting this topic so I apologise if I am posting a double-topic)
--
MooreHojer
moorehojer
 
Posts: 38
Joined: Thu Dec 11, 2008 7:46 pm
Location: Viborg, Denmark

Re: [Enhaced feature] PHP Include path

Postby KasperTSW » Wed Feb 10, 2010 10:45 am

Hi Simon,

Could your problem not be solved by using project based include files (currently only found in phpCoder) and then including the framework in your project? Just curious :)
KasperTSW
Site Admin
 
Posts: 1469
Joined: Mon Jan 28, 2008 5:55 pm

Re: [Enhaced feature] PHP Include path

Postby moorehojer » Thu Feb 11, 2010 10:01 pm

Maybe... I'm not using phpCoder and I only used for about a month before switching to webCoder 2009. What does the feature do?

--
Simon
--
MooreHojer
moorehojer
 
Posts: 38
Joined: Thu Dec 11, 2008 7:46 pm
Location: Viborg, Denmark

Re: [Enhaced feature] PHP Include path

Postby KasperTSW » Fri Feb 12, 2010 9:09 am

It allows you to define files and directories (which can be recursive) to be "always included", meaning that their identifiers can be accessed in all your project files, no matter if there is an include statement for the file(s) or not. I think this could do the trick for the scenario you describe :)
KasperTSW
Site Admin
 
Posts: 1469
Joined: Mon Jan 28, 2008 5:55 pm

Re: [Enhaced feature] PHP Include path

Postby moorehojer » Fri Feb 12, 2010 9:54 am

That sounds just about right... PLEASE port that feature to xCoder :-)
moorehojer
 
Posts: 38
Joined: Thu Dec 11, 2008 7:46 pm
Location: Viborg, Denmark

Re: [Enhaced feature] PHP Include path

Postby KasperTSW » Fri Feb 12, 2010 1:39 pm

Done ;). I use it myself all the time :)
KasperTSW
Site Admin
 
Posts: 1469
Joined: Mon Jan 28, 2008 5:55 pm


Return to xCoder 2010

Who is online

Users browsing this forum: No registered users and 1 guest

cron