CodeIgniter Forums
I have a problem with new module in PyroCMS - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forum-22.html)
+--- Thread: I have a problem with new module in PyroCMS (/thread-26273.html)



I have a problem with new module in PyroCMS - El Forum - 01-10-2010

[eluser]huutri[/eluser]
I have problem with PyroCMS: I create new module and I want to add it to new my themes. But PyroCMS does not support call controller to themes. Can you explain me detail about organise PyroCMS. Thanks u very much


I have a problem with new module in PyroCMS - El Forum - 01-10-2010

[eluser]Phil Sturgeon[/eluser]
You dont call themes directly, the theme logic is handled within the Layout library and done automatically. I have PMed you about this.

All you need to do is call your view files with $this->layout->create('viewname', $this->data)

I know docs are missing but you should be able to work out most of this stuff by looking at existing modules.