Welcome Guest, Not a member yet? Register   Sign In
HMVC Partials
#1

[eluser]vile[/eluser]
Hi,

im new to HMVC and i found CI HMVC (http://codeigniter.com/wiki/Modular_Extensions_-_HMVC/)

i have a simple problem in calling the module in view.

Heres my code in modules/welcome/view/welcome
Code:
<?php echo modules::run('admin/welcome'); ?>



modules/admin/controller/welcome
Code:
class Welcome extends Controller {

    function Welcome()
    {
        parent::Controller();    
    }
    
    function index()
    {
        echo 'a';
      
    }
}



modules::run('admin/welcome') I'm expecting to see letter 'a' but displays a blank page. Can anyone help me please. thank you


Messages In This Thread
HMVC Partials - by El Forum - 07-21-2010, 10:33 PM
HMVC Partials - by El Forum - 07-22-2010, 12:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB