Search the Community
Showing results for tags 'code completion'.
-
I have been working some time now with Prestashop and before some months switched to develop with PHPStorm, the best and most complete PHP IDE out there. Unfortunately, I had always issues with code completion in Prestashop, which is based on how Prestashop uses the override class model. One example: The code for the class "Cart" that is instantiated as object is residing in the core file classes/Cart.php, the core class however is not named "Cart" but "CartCore". Only when a class is overriden, it is named "Cart" and inherited from "CartCore" and as that, an IDE can create this association only by that time. Additionally, Prestashop's PHPDoc is incomplete and where it exists, the wrong return classes are sometimes specified etc. To ease my development with Prestashop and PHPStorm and make code completion work a great way nearly everywhere, since I couldn't find the slightest solution anywhere, I went into creating an "extension" that helps achieve that. You can download it here and integrate it into your PHPStorm project the way it is described and you will have immediately code completion for almost any instantiated class, $this variables and more. https://github.com/dkarvounaris/PHPStorm-CC-PrestaShop It's not covering 100% yet, but is nearly complete and should have everything that is daily required. Please let me know if there is something to improve it. Contributions are welcomed too. I hope, this will be helpful to many.
- 20 replies
-
- 13
-
- code completion
- cc
- (and 4 more)
-
Bonjour tout le monde, ça fait un petit moment que je développe quelques boutiques pour des clients sur notepad++ avec plugins + firebug, developper tools, etc Mais je me pose la question depuis un bout de temps, la plupart des IDE que j'utilise pour d'autre langages ont l'auto-completion du code. J'ai essayé d'importer un projet PHP sur netbeans ou Eclipse mais aucune auto-complétion, et j'avoue que j'en aurai bien besoin pour développer des modules ou accéder facilement au membres d'une classe sans aller chercher 3h dans les fichiers. Par exemple, je développe un module de création automatique de fichier de commande csv lors d'une nouvelle commande (hook NewOrder qui a $order, $cart, etc etc dans les params : /) Quelqu'un à t'il déjà réussi à utiliser un IDE avec prestashop ? si oui, comment ? Merci pour votre aide !