ok i tried to make a module not being a coder it might have been a dumb idea,, thought it was going to do it all by itself, see now it makes a stub
i've got the .php but it has a bunch of function DoAction($action, $id, $params, $return_id=-1)
guess i need to learn PHP as i have no idea how to fill these in, where to go to read how to on PHP?
mark
Module Maker
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: Module Maker
Yeah, the Markdown module asks you a bunch of questions, but then still just gives you a stub as it doesn't really know what type of module you want to create, makes sense eh.
The DoAction stuff is where you put your actual code. If you look at HitCounter, or other small modules you should see exactly how things work. Essentially there's two actions in DoAction that are used by cms. "default" for the front end,, and "defaultadmin" for the back end. Any other actions you need to code yourself.
The php manuals are all on php.net though that's a little tough to figure out. there are lots of php tutorials around to get you started.
The DoAction stuff is where you put your actual code. If you look at HitCounter, or other small modules you should see exactly how things work. Essentially there's two actions in DoAction that are used by cms. "default" for the front end,, and "defaultadmin" for the back end. Any other actions you need to code yourself.
The php manuals are all on php.net though that's a little tough to figure out. there are lots of php tutorials around to get you started.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.