[eluser]NiconPhantom[/eluser]
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...
[eluser]NateL[/eluser]
[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');
[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 :-(
[eluser]NateL[/eluser]
see if == works.. ?
if (isset($message) && $message!==’‘)
[eluser]NiconPhantom[/eluser]
same effect, on the top of site :-(
[eluser]NateL[/eluser]
sorry, $message!='' was right
if (isset($message) && ($message!=’‘)){
[eluser]NiconPhantom[/eluser]
If i do $data['message'] = "Text"; all is good, the "Text" is in normal place of template...
[eluser]NiconPhantom[/eluser]
Yes that's ok but i found another solution! In my template i use:
<?=modules::run('firstpage/left'); ?>
Now i can use one controller in another... Sometimes it's useful for my project
Thank you for your help!!!
Alex