Jump to content

chazzbg

Members
  • Posts

    4
  • Joined

  • Last visited

chazzbg's Achievements

Newbie

Newbie (1/14)

3

Reputation

  1. are you sure you've made the changes on the right place ? please post the complete error, may be it's something else.
  2. Hello, This is caused by fairly old version of the Inixframe - a framework that powers our modules, you can get the most recent version from here https://www.dropbox.com/s/lfc8wpe3nq254vq/inixframe_%28Presta-Apps%20Solutions%29_v2.5.6.zip?dl=0 install it like a normal module - BO > modules > add new , or extract the files and upload through ftp to your modules folder
  3. Actually no problems here. I also use PHPStorm , i set my code style to PSR-2 , with some slight modifications and Ctrl+Alt+L fixes most of the standard requirements. Only thing i should do manually is cutting longer lines. I have also installed PHP CS and PHP MD and configured them in the PHP storm , to get better feedback for the problems of the code The validator uses mostly those tools to determine and show you the errors. Actually the Pretashop code itself doesn't help you to follow at 100% the standard due to some missing parts - autoloading Classes for modules for example. You should include class files yourself and this raises a warning for side effects. Another thing is _childValidation method . PSR-2 does not accept methods or fields starting with underscore , so if you override it in admin controller - you are screwed again. Validator also uses PHPMD for some checks ( unsued parameters for example ) For better results install PHPCS and PHPMD on your system and configure PHPStorm to use them for better highlighting errors
  4. I'm developing a module which uses tiny mce, but i have a copy of tiny mce in my module folder to ensure more backwards compability but it uses the same version and init, shipped with ps 1.4 . I also use a ObjectModel for easy creating multilingual objects and i'm overriding makeTranslationFields() method with only difference that i added one more parameter to the pSQL functions to pass the html tags from the tiny mce , the problem is that after saving the object , in the database i have \r\n characters that shouldn't be there where could be the problem ,and what i'm missimg may be ...
×
×
  • Create New...