Question with building module, editing database tabel

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm
Location: the Netherlands

Re: Question with building module, editing database tabel

Post by Dee »

Create a file called action.editcompositie.php in your module folder.
Similarly you could move the code from between the if ($action == 'default') { } in function DoAction to action.default.php

Regards,
D
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm
Location: the Netherlands

Re: Question with building module, editing database tabel

Post by Dee »

You could also make a new section

Code: Select all

if (action == 'editcompositie')
{

}
inside the DoAction function, but it's nicer to keep the code separated.

Regards,
D
Post Reply

Return to “Developers Discussion”