CodeIgniter Forums
Codeigniter Template Library (phillsturgeon) and Modular Separation HMVC - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Codeigniter Template Library (phillsturgeon) and Modular Separation HMVC (/showthread.php?tid=49492)



Codeigniter Template Library (phillsturgeon) and Modular Separation HMVC - El Forum - 02-21-2012

[eluser]Unknown[/eluser]
System
Codeigniter v2.1.0
Modular Extensions - HMVC version 5.2
Template Library
---

Modules:
welcome
Quote: controllers
-welcome.php
views
-welcome_message.php
home
Quote: controllers
-home.php
views
-home_message.php

Welcome Controller:
Code:
<?php
function index()
{
  //$this->load->view('welcome_message');
  $this->template->build('welcome_message');
}

welcome_message.php:
Code:
<?php echo modules::run('home');?>

if use $this->template->build() and not use modules::run() then not problem
but
view file in use modules::run('home') error message:
Code:
Unable to load the requested file: home_message.php

sorry my bad english Smile

please help me!

thank you.


Codeigniter Template Library (phillsturgeon) and Modular Separation HMVC - El Forum - 05-04-2012

[eluser]Zaher Ghaibeh[/eluser]
you have to change your home controller you must set the build to home/home_message.php
since it will look for the home_message.php in your welcome module not the home one ..

but your problem will be is that the moudles::run() will echo nothing at all ..
i have the same problem
http://s.zah.me/L6vU8e