luismartin Posted November 21, 2013 Share Posted November 21, 2013 I've been following the tutorial on how to create a Prestashop module, described here: http://doc.prestashop.com/display/PS14/Creating+a+PrestaShop+module The first part, the custom frontend module and its translation has been a breeze. The example couldn't be simpler though. The problem has come in the second part: the creation of a module tab in the Admin. Prestashop people: isn't that a terrible tutorial? Nothing explained about the code in this part. You don't even clearly explain what to do and where. It doesn't seem to be related to the previous example module. An 'employee' tab, where? The one in Administration section? Nothing there after adding the new code. And the code.... worst coding practices at their best: echoing a lot of HTML inside PHP. That's awful! That's one of the things that gave PHP a bad reputation. Please, I'd recommend you to try to separate HTML from PHP in every part of the application, and not teach bad PHP practices to the developers. Now, even though I've overtalked a little, will someone explain me or point me to a better explanation of this "module tab" creation part? I would really appreciated it. Link to comment Share on other sites More sharing options...
vekia Posted November 21, 2013 Share Posted November 21, 2013 you want to create module for 1.4 or for 1.5 ? link that you pasted is about 1.4 version. Link to comment Share on other sites More sharing options...
luismartin Posted November 21, 2013 Author Share Posted November 21, 2013 Thanks Vekia. I didn't notice that and apologize for my confusion. I've just found the tutorial page for version 1.5 and looks like it's more thoroughly explained than for v.1.4, but at first sight I've seen nothing about any module tab to be created in the backend. Regards. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now