netbeans PHP include path |
[eluser]erolyildiz[/eluser]
Hi, I am using codeigniter with netbeans and would like to use code completion for codeigniter classes. I added all of the codeigniter folders under system folder to the PHP include path but code completion works partly. For example it can't complete $this->load() function for a class extending Controller class. Shall I include other things to have a full code completion? Thanks. -- Erol
[eluser]manilodisan[/eluser]
I doubt you will have full code completion in PHP frameworks with netbeans. You should try phpdesigner or Zend.
[eluser]erolyildiz[/eluser]
I tried a version of eclipse which has PDT and a debugger offered in zend side and it can't do completion fully too. Again it can't complete $this->load function etc.
[eluser]erolyildiz[/eluser]
I tried eclipse with PDT, easyeclipse php version, netbeans and komodo for auto completion and just komodo can do fully completion. None of the other editors can comeplete $this->load function but komodo can. -- Erol
[eluser]yudi_set[/eluser]
Hi, I'm a newbie to PHP and CodeIginiter. Code-completion is something that really helps me when learning CodeIgniter. I just read an article on NB4PHP developer blog (http://blogs.sun.com/netbeansphp/entry/f...de_insight). It refers to an article written for CakePHP. But the principles apply to CodeIginter, too. For example, I put it this way in a contoller : <?php /** * @property CI_Loader $load * @property CI_Form_validation $form_validation * @property CI_Input $input * @property CI_Email $email * */ class Form extends Controller { function index() { $this->load->helper(array('date','form')); $this->load->library(array('email','form_validation')); //Validaton rules $this->form_validation->set_error_delimiters('<div class="error">', '</div>'); $this->form_validation->set_rules('member_no','Member Number','trim|required|numeric'); .... } } So, when we type $this-> it will offer load in the code-completion. And when we type $this->load-> will offer all functions from the CI_Loader class. Hope the info helps.
[eluser]MyBelovedPHP[/eluser]
Thx, very good tip. Netbeans is cool, another very useful one to add * @property CI_DB_active_record $db Now were getting code completion on Code: $this>db>... One I use the most.
[eluser]drale2k[/eluser]
That sounds really nice. At the moment i am using Dreamweaver CS4 for all my Stuff becouse i got a cheap student license. But i am thinking of using some other editor just for PHP. Does Eclipse rock?
[eluser]MyBelovedPHP[/eluser]
See here, with screenshot of code completion http://www.mybelovedphp.com/2009/01/23/n...e-igniter/
|
Welcome Guest, Not a member yet? Register Sign In |