PHP sınıfları kapsam sorunu:
Bu neden çalışır?
 class index extends Application
  {
        function ShowPage()
        {
            $smarty = new Smarty();         // construct class
            $smarty->assign('name', 'Ned');     // then call a method of class
            $smarty->display('index.tpl');
        }   
}
$index_instance = new index; $index_instance->ShowPage();
ama bu işe yaramazsa?
class index extends Application
{
    function ShowPage()
    {
        $smarty->assign('name', 'Ned');
        $smarty->display('index.tpl');
    }   
}
$index_instance = new index;
$smarty = new Smarty();
$index_instance->ShowPage();