Welcome Guest, Not a member yet? Register   Sign In
HMVC question
#3

[eluser]NiconPhantom[/eluser]
[quote author="NateL" date="1233614534"][quote author="NiconPhantom" date="1233594024"]Hi all

I need load some data from one module(controller/view) to another...

Is it possible use something like this?:

$data['message'] = $this->load->view('../modules/firstpage/views/firstpage');



This solution doesn't work plese help do something similar...[/quote]

Have you tried this?

$data['message'] = $this->load->view('firstpage/views/firstpage');[/quote]


Yes, all good but this code load view firstpage to the top of the site but not to: <?php


if (isset($message) AND $message!='')

{

echo $message;

}?>

of my main view template :-(


Messages In This Thread
HMVC question - by El Forum - 02-02-2009, 05:00 AM
HMVC question - by El Forum - 02-02-2009, 10:42 AM
HMVC question - by El Forum - 02-02-2009, 03:30 PM
HMVC question - by El Forum - 02-02-2009, 03:32 PM
HMVC question - by El Forum - 02-02-2009, 03:42 PM
HMVC question - by El Forum - 02-02-2009, 03:51 PM
HMVC question - by El Forum - 02-03-2009, 02:11 AM
HMVC question - by El Forum - 02-04-2009, 04:44 AM
HMVC question - by El Forum - 02-04-2009, 06:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB