albertogomez Posted November 14, 2012 Share Posted November 14, 2012 Hi I am developing a module for prestahop 1.5,so far it install itself correctly and the admin controller seems to be working.I have been following this "tutorial" although I don't speak french http://www.prestarocket.com/blog/creer-module-mvc-prestashop-1-5/ The admin controller is supposed to display and manage a model.I have already created the table for that model, but I am starting to suspect that the tutorial is wrong with a few things. I have placed the model (a class extending object model in a models folder inside the module) but after a lot of debugging and diving into prestashop code,I have found that the class Autoload never looks into module folders so I'm starting to suspect that this is wrong. If I am correct, Where should the php class file go? If it is in the 'classes' folder the module will not be self contained anymore, and It will require to merge its classes folder with the original PS classes folder.I am considering to release the module in the future and I want to stick to the rules and best practices, so this doesn't strike me as te best solution. Any Ideas? Link to comment Share on other sites More sharing options...
albertogomez Posted November 16, 2012 Author Share Posted November 16, 2012 please, if I have ignored any forum rule let me know or is it like absolutely no one has any idea on how to deal with models in 1.5? Link to comment Share on other sites More sharing options...
Mr S Posted November 16, 2012 Share Posted November 16, 2012 Hi albertogomez, You should post in Development forums at: http://www.prestashop.com/forums/forum/116-development/ Have look here: http://doc.prestashop.com/display/PS15/New+Developers+Features+In+PrestaShop+1.5#NewDevelopersFeaturesInPrestaShop1.5-ModuleAPI Link to comment Share on other sites More sharing options...
albertogomez Posted November 16, 2012 Author Share Posted November 16, 2012 thank you so much. Yeah I had already read that document, but as I mentioned they don't mention where the models should go within the module. I'll ask for help there.Thanks again Link to comment Share on other sites More sharing options...
Recommended Posts