Module not showing in left navigation

edited February 2013 in Modules
Hi,
I have created a module by creating folder for it modules folder i.e. fuel/modules/emailtemplates
and created model file inside it with name emailtemplates_model.php with following code in it
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
require_once(FUEL_PATH . 'models/base_module_model.php');

class emailtemplates_model extends Base_module_model
{
public function __construct()
{
parent::__construct('master_emailtemplates');
}
function list_items($limit = NULL, $offset = NULL, $col = 'template_name', $order = 'asc')
{
$this->db->select('id,template_group, template_name, SUBSTRING(template_description, 1, 100) AS Description', FALSE);
$data = parent::list_items($limit, $offset, $col, $order);
return $data;
}
}

class emailtemplate_model extends Base_module_record
{
}
?>
and added following in application/config/My_fuel_modules.php
$config['modules']['emailtemplates'] = array(
'module_name' => 'Email Templates',
'model_name' => 'emailtemplates_model',
'model_location' => 'emailtemplates');

but navigation link is not showing up in the left navigation under modules, on my server.

it works well on localhost
problem is only on the sever.

any quick help will be appreciated.
Thanks

Comments

  • edited 9:41PM
    Are you logging in as an admin and have permission? Also, is the module added to the "MY_fuel.php" $config['modules_allowed'] array
  • edited 9:41PM
    thanks admin, i will check this.
Sign In or Register to comment.