Best Practices for View Embedding |
[eluser]Sayian[/eluser]
Yes it's been asked a million times. Yes I've read the search results. Everyone seems to have several ways of embedding views within views, however I have just one question. Is it against the CI way to do something like Code: <?php Thank you.
[eluser]The Wizard[/eluser]
no why should it be? i do exactly this Code: <? $this->load->view( $theme_folder . 'header/user/header.php'); ?>
[eluser]TheFuzzy0ne[/eluser]
Technically, you should not use $this in your view. We should pass through a variable and use that instead. Code: $CI->load->view('required/foo'); But hey, it works.
[eluser]The Wizard[/eluser]
What does this exactly mean? Could you please explain that
[eluser]TheFuzzy0ne[/eluser]
I think JayTee said it best - http://ellislab.com/forums/viewthread/104538/#544361. |
Welcome Guest, Not a member yet? Register Sign In |