[eluser]danushka[/eluser]
[quote author="noctrum" date="1273691888"]You're passing a view to the $main variable, then trying to load a view that is the contents of that view which you already loaded... I'm guessing that instead of:
Code:
<?php $this->load->view($main);?>
You want:
Code:
<?php echo $main; ?>
[/quote]
No that was not the case
When i set $data['main']='home'; that error vanished. So that is the problem. before that data['main'] ( in the Controller ) was not a string, thus causing this error.
Yay , DUBUGGED !!!!!
Thanks Guys for your help !