First you should create an action in your install method of the upd file:
function install()
{
//etc...
$this->EE->db->insert('actions', array('class' => 'Your_module_mcp', 'method' => 'add_record'));
}Now, your add_record is accessible via the front-end with this url: http://yoursite.com/index.php?ACT=XX, where XX is the corresponding action_id from the exp_actions table.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.