php - Codeigniter modular extensions HMVC won't load view -


i using modular extensions hmvc add on codeigniter.

my structure looks follows:

modules/ -manager/ --controllers/ ---manager.php --views/ ---index.php

the manager.php controller:

class manager extends mx_controller {    function __construct(){      parent::__construct();    }    function index(){      $data['newsletter'] = newsletter::all();     $this->load->view('index',$data);    }  } 

routing , printing inside controller works fine, can't seem load view, codeigniter error saying view file can't found

/modules/manager/config/routes.php:

<?php  $route['module_name'] = 'manager'; 

it seems views still being called ci's main view folder, not sure why not calling modules folder because controller extending mx class

try this:

$this->load->view('manager/index',$data); 

structure folders:

apllication     modules        manager            config                routes.php            controllers                manager.php            views                index.php 

Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -