Hi everyone ,
Can anyone tell me if im missing something, because my assigned variables dont show up in my rendered view , even the <?=TMVC_VERSION?> dont seem to show up.
Here is my code :
<?php
/**
* default.php
*
* default application controller
*
* @package TinyMVC
* @author Monte Ohrt
*/
class Default_Controller extends TinyMVC_Controller
{
function index()
{
$this->view->assign("hi","hello ?");
print_r($this);
$this->view->display('index_view');
}
}
?>
This is what i get + the html
Default_Controller Object
(
[load] => TinyMVC_Load Object
(
)
[view] => TinyMVC_View Object
(
[view_vars] => Array
(
[hi] => hello ?
)
)
)
But my <?=$hi?> dont show up in the html, here is what i have when i print the php defined vars
Array
(
[_tmvc_filepath] => C:\...
[view_vars] =>
[hi] => hello ?
)
view_vars are gone , is this normal ?
Im on Win Xp at work , PHP 5.2 , latest TinyMVC SVN revision , Checked out 15th August 2008
Thank you for the help , i apologize for my english , if im not clear enough i can try to give you more details .