TemplateNotFound error

26 views
Skip to first unread message

Malathi T

unread,
Nov 24, 2013, 2:51:16 PM11/24/13
to h2o-temp...@googlegroups.com
Hi,

I am getting this error :
Uncaught exception 'Exception' with message 'TemplateNotFound - Looked for template
when I load my mail file.

This is the code I use in main.php

                include ('libs/h2o/h2o.php');
                $h2o = new h2o('FAQTemplate.php');
$message = $h2o->render(array("QAs" => $json_array['faqlist']));
echo $message;

The file FAQTemplate.php is in the same file as main.php and the h20 folder is in libs folder in the directory same as main.php. I understand it will be a simple mistake. Can somebody please help me in finding the mistake?

Thanks,
Malathi 

Malathi T

unread,
Nov 24, 2013, 2:53:56 PM11/24/13
to h2o-temp...@googlegroups.com
Edit:

The code works if I give absolute path to my template.
Reply all
Reply to author
Forward
0 new messages