Created
March 26, 2011 18:10
-
-
Save badsyntax/888494 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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