12-20-2007, 10:57 AM
|
#2 (permalink)
|
|
The Acquainted
Join Date: Oct 2007
Posts: 170
Thanks: 18
|
What I'm doing (using the Kohana framework) is to render a View but also passing an array to the View with all the needed data. Like this:
PHP Code:
$aData = array(
'szTitle' => 'Now this is a nice title!',
'szHeader' => 'And this is the header!'
)
$pView = $this->load->view('indexView', $aData);
$pView->render(TRUE);
In the indexView.php you then can simple call/echo $szTitle and $szHeader.
I hope this helps you a bit.
|
|
|
|