Welcome Guest, Not a member yet? Register   Sign In
Modular Extension sub-directory support?
#1

[eluser]CI fan[/eluser]
Quote:application
-modules
-manager
-controllers
manager.php
-views
-template
admin_template.php

how to view/use admin_template.php. any idea?

---------------------------------------------
if i load view using this code below

An Error Was Encountered

Unable to locate the file: admin_template.php in: template

Quote:class manager extends Controller {
function index(){
$this->load->view('template/admin_template');
}
}
#2

[eluser]dag[/eluser]
if i get it right you are trying to load your template from a directory which isn't a subdirectory of your view-folder. try moving the templates-dir into your view-folder.

modules
-views
-- template

then it should work. i guess
#3

[eluser]dcunited08[/eluser]
It seems like it is not handling your template plugin (I assume you are using one) correctly. It is looking in the following locations, I believe:
Code:
modules
-template
|-views
   |-admin_template.php

And

modules
-manager
|-template
   |-admin_template.php




Theme © iAndrew 2016 - Forum software by © MyBB