Not sure if samrty is even loading but its showing {$title} and {$username} directly on the page and not using whats set as the variable... little lost to what im doing wrong.
I added into composer.json
"smarty/smarty": "*"
I run php composer.phar update and also install
Im loading in the config.php file the parser as per
'packages' => array(
'orm',
'auth',
'parser'
),
In my controller dashboard.php
public function action_index()
{
$data = [
'bodyclass' => "dashboard",
'title' => "Dashboard",
'username' => "James"
];
$view = Response::forge(View::forge('dashboard/index.tpl', $data));
$this->template->subnav = array('dashboard'=> 'active' );
$this->template->content = $view;
}
and in my index.tpl file i have
{$title} {$username}
Its just for testing.. however does not seem to be working and a little lost as new to php and this framework
Hope someone can help me :)
Thanks
It looks like you're new here. If you want to get involved, click one of these buttons!