correct $app->view()-display('tpl.file', $data) not work

I think i found the problem. I edit the code like this and my code got run correctly.