Welcome Guest, Not a member yet? Register   Sign In
Codeigniter Template Library (phillsturgeon) and Modular Separation HMVC
#1

[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.
#2

[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




Theme © iAndrew 2016 - Forum software by © MyBB