benbyf Posted July 18, 2016 Posted July 18, 2016 http://webdesign.tutsplus.com/tutorials/a-beginners-introduction-to-writing-modules-in-processwire--cms-26862 Based on work from here: 17
LostKobrakai Posted July 18, 2016 Posted July 18, 2016 Thanks for writing this. It's surely a place where the current docs are a bit lacking in details. You could clarify a bit more that the hooked function (___save()) does need to have those three underscores, whereas the function executed by the hook (helloMessage()) does not (but can). Also getModule() is not really often used in processwire's docs, I'd rather use $modules->get('FrontEndRender') and even this would work $modules->FrontEndRender 2
qtguru Posted July 18, 2016 Posted July 18, 2016 Wow awesome am gonna take some information from your tutorial. 2
benbyf Posted July 18, 2016 Author Posted July 18, 2016 6 hours ago, LostKobrakai said: Thanks for writing this. I'd surely a place where the current docs are a bit lacking in details. You could clarify a bit more that the hooked function (___save()) does need to have those three underscores, whereas the function executed by the hook (helloMessage()) does not (but can). Also getModule() is not really often used in processwire's docs, I'd rather use $modules->get('FrontEndRender') and even this would work $modules->FrontEndRender Thanks! Would you mind adding this in brief as a comment to the tutorial? I'm sure it'll be useful to people. 2
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