[eluser]hugle[/eluser]
[quote author="Phil Sturgeon" date="1271512588"]Application/themes/views/modules/modulename/whatever.php[/quote]
strange, but I can't get it to work...
(admin is theme name)
I did:
Code:
$this->template->set_theme('admin');
I tried:
Application/themes/views/modules/modulename/whatever.php
Application/themes/views/modules/modulename/views/whatever.php
Application/themes/admin/views/modules/modulename/whatever.php
Application/themes/admin/views/modules/modulename/views/whatever.php
Application/themes/admin/modules/categories/whatever.php
Application/themes/admin/modules/categories/views/whatever.php
-- nothing worked
my temalate.php config is the default one.
What I am trying to to, is that I need a little app, with and admin backend.
for heavier projects I use Pyro.
But I came to a solution, that it's a time to start using templates, it's cleaner, easier to adapt to new projects/designs.
I looked threw Pyro for examples, and started using Template Library
I have an example controller 'categories' (extending Admin_Controller) - admin.php
and one controller is extending Public_Controller - categories.php
Code:
these both files located in same directory:
/app/modules/categories/controllers/admin.php
/app/modules/categories/controllers/categories.php
now when I want for example build a 'form.php' view which is located at:
/app/modules/categories/controllers/views/form.php
I have also this layout:
/app/themes/admin/views/layout.php
So when I do:
Code:
$this->template->set_theme('admin');
$this->template->set_layout('layout');
$this->template->build('form', $data);
Shouldn't it work?
Maybe I'm missleading you, and miss understanding something...
So I decided to describe whole problem...
Thank you!