Aptana setup tip for CodeIgniter?

I used Aptana for a lot of web projects and really love it. I also used CodeIgniter for several projects and also liked it. Now I hope to combine the two in a happy marriage of cross-platform performance. Any tips on configuring Aptana for more useful features? I hope to get the following:

  • Code ending
  • Functional built-in preview
  • Debugging

If you can’t understand at all, what kind of IDE would you offer? General tips for setting up PHP Aptana are also welcome, as they can help me with the perfect setup.

+4
source share
2 answers

I would install Aptana as an Eclipse plugin. Allows you to go down the road GWT or Flex without the hassle. Also, Aptana as a plugin worked much better for me. Both in terms of stability and in terms of ease of use.

I used to have an Aptana crash every two days, and since I run Eclipse with Aptana as a plugin, it never crashes again .

Eclipse with Aptana as a plugin also has some handy features like spell checking that Aptana didn't have, and greatly improved my comments. However, I must agree with you on the high level of detail and attention that the Aptana team has contributed to its software.

+1
source

I found a solution for this in the codeigniter forum.

http://codeigniter.com/forums/viewthread/187641/

I came up with a slightly β€œsafer” solution. instead of changing the system files, create a folder called "autocomplete" (or any other name)

t


autocomplete applications
system
user_guide

then create a file (in autocomplete) with the name controller.php with the code below (class CI_Controller, etc.). then copy this file with the name model.php and change the class in this file to CI_Model. Aptana then uses them to reassign their autocomplete. Just add any features you want to autocomplete for each file. (for example, I added CI_Cart, which was not in the original example in this link

(Note that currently this only provides autocomplete for models and controllers. I assume that if you are expanding other classes and need autocompletion, you need to create a new file in the autocomplete folder with a list of all the classes that you want to use for this class see)

class CI_Controller { /** * @var CI_Config */ var $config; /** * @var CI_DB_active_record */ var $db; /** * @var CI_Email */ var $email; /** * @var CI_Form_validation */ var $form_validation; /** * @var CI_Input */ var $input; /** * @var CI_Loader */ var $load; /** * @var CI_Router */ var $router; /** * @var CI_Session */ var $session; /** * @var CI_Table */ var $table; /** * @var CI_Unit_test */ var $unit; /** * @var CI_URI */ var $uri; /** * @var CI_Pagination */ var $pagination; /** * @var CI_Cart */ var $cart; } ?> 
0
source

All Articles