Skip to content

Instantly share code, notes, and snippets.

@badsyntax
Created March 26, 2011 18:10
Show Gist options
  • Select an option

  • Save badsyntax/888494 to your computer and use it in GitHub Desktop.

Select an option

Save badsyntax/888494 to your computer and use it in GitHub Desktop.
<?php defined('BASEPATH') or exit('No direct script access allowed');
class Module_ModuleName extends Module {
public $version = '1.0';
public function info()
{
return array(
'name' => array(
'en' => 'Module Name'
),
'description' => array(
'en' => 'Module Description'
),
'frontend' => FALSE,
'backend' => TRUE,
'menu' => 'content'
);
}
public function install()
{
}
public function uninstall()
{
}
public function upgrade($old_version)
{
// Your Upgrade Logic
return TRUE;
}
public function help()
{
// Return a string containing help info
// You could include a file and return it here.
return "<h4>Overview</h4>";
}
}
/* End of file details.php */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment