[eluser]pnd_ku[/eluser]
[quote author="AgentPhoenix" date="1254331170"]The example you give makes it sound like you're trying to call a variable in your view file that triggers a second view being written, but if you haven't defined that variable, then you'd be getting that error. Your best bet is probably to parse the subregion content in your controller and append it to the end of your main content region.
Code:
$data['subregion'] = $this->parser->parse('subregion_view_file', $subdata, TRUE);
From there, you could just pass $data to your view like normal, but in your view file, echo out $subregion wherever you want it. If you're using a single view file, you can even create a check to see if the variable exists and then echo it out. I think that'll be the easiest way of doing it without adding the subregion to the Template config file, though Colin may have more insight and better ways of doing things.[/quote]
Thank you a lot!
I was thinking about similar solution.
Template lib can render view at variable too (help as avoid separate parser class) and then we can pass it to subregion.
In this way i can`t see a lot of advantages before usual $this->load->view
And i wuzz thinking about totally transparent solution using Template lib - dynamically adding of region and filling it with some content from another view.
Let`s wait for response of the author
And thank you once again!