Kewne 0 Junior Poster in Training

Hi guys,

I just followed the tutorial on epesi and have finished making their tutorial on "Hello World". Now, I'm trying to create another module but it doesn't show up at the administrator availanble install. It was just a simple code following the skeleton presented at the HelloWorld tutorial just changing the classnames. This is the code:

SUP_EPESI_EMP_0.php

<?php

defined("_VALID_ACCESS") || die('Direct access forbidden'); 

class Custom_EMP extends Module { 

  public function body() {

    print('EMP');

    }
}

?>

SUP_EPESI_EMPInstall.php

<?php



defined("_VALID_ACCESS") || die('Direct access forbidden');



class Custom_EMPInstall extends ModuleInstall {

    public function install() { 
        return true; 

    }

    public function uninstall() { 

        return true; 

    }

    public function info() { 

        return array( 'Author'=>'NameMe',
            'License'=>'GPL',
                     'Description'=>'EMP');

    }

    public function simple_setup() {

        return array('package' => __('EMP'), 'version'=>'0.1'); 

    }

    public function requires($v) { 

        return array();

    }

    public function version() { 

        return array('0.1');

    }
}

?>

SUP_EPESI_EmpCommon_0.php

<?php

defined("_VALID_ACCESS") || die('Direct access forbidden');

class Custom_EMPCommon extends ModuleCommon {

    public static function menu() {

        return array(__('Module') => array('__submenu__' => 1, __('EMP') => array()));

    }
}

?>

Can anyone help me?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.