Re: [SMARTY] Help Please-Compiled templates have headers only

From: Date: Tue, 26 Jul 2005 00:24:29 +0000
Subject: Re: [SMARTY] Help Please-Compiled templates have headers only
References: 1 2 3  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12852@lists.php.net to get a copy of this message
Thanks Everyone, Here's the php file == test.php: define('SMARTY_DIR', '/usr/share/php/smarty/'); require_once(SMARTY_DIR . 'Smarty.class.php'); $tpl = new Smarty; $tpl->template_dir = '/home/httpd/vhosts/smithskauai.com/templates/'; $tpl->compile_dir = '/home/httpd/vhosts/smithskauai.com/compiled_templates/'; $tpl->cache_dir = '/home/httpd/vhosts/smithskauai.com/cache'; $tpl->config_dir = '/home/httpd/vhosts/smithskauai.com/conf'; $tpl->compile_check = true; $tpl->force_compile = true; $tpl->debugging = true; $tpl->display('test.tpl'); Here's the template File == test.tpl: Hello World! Thanks, Gary in article 508f0cb605072514543f586eba@mail.gmail.com, Evan Wagner at webmast84@gmail.com wrote on 7/25/05 11:54 AM: > I had a problem similar to this once, error reporting wasn't giving me > an error and everything except PHP logic in Smarty would present it > self when viewing the page. There were no errors or anything. Here's > what my problem was: > > I had added a $_GET variable checking statement: if($_GET['variable'] > ="value") { Do these functions } > > The error is obvious, I forgot the other "=". It should have read out like > this: > if($_GET['variable'] =="value") { Do these functions } > > Just to let you know, Smarty is just like the name says. You should > check all the recent code you added since you saved the file before it > stopped working. Most errors are user errors and you just gotta pull > your hair out if you have a lot of code to review. > > On 7/25/05, boots <jayboots@yahoo.com> wrote: >> Greets. >> >> I didn't say template variables. I said that { and } are special -- for >> example, if you have embedded javascript or CSS. Perhaps you should >> post the complete and exact code that isn't working since guessing >> doesn't seem to be working very well. >> >> --- Gary Smith <gts@tsu.biz> wrote: >> >>> Hi Boots, >>> >>> There aren't any template variables or anything in my template. >>> Thanks for >>> trying to help. Anyone have any more ideas? >>> >>> Gary >>> >>> >>> >>> in article 20050725202124.80366.qmail@web50808.mail.yahoo.com, boots >>> at >>> jayboots@yahoo.com wrote on 7/25/05 10:21 AM: >>> >>>> Ok, but don't forget that { and } are considered "special". Other >>> than >>>> that, I can't imagine what the problem might be -- sorry. >>>> >>>> --- Gary Smith <gts@tsu.biz> wrote: >>>>> Thanks Boots, >>>>> >>>>> Error reporting is at E_ALL. Right now my templates are just >>> static >>>>> so I can >>>>> troubleshoot. >>>>> >>>>> Gary >>>>> >>>>> >>>>> in article 20050725194225.75936.qmail@web50807.mail.yahoo.com, >>> boots >>>>> at >>>>> jayboots@yahoo.com wrote on 7/25/05 9:42 AM: >>>>> >>>>>> Make sure that error reporting is at E_ALL. You may have an error >>>>> in >>>>>> your template. >>>>>> >>>>>> --- Gary Smith <gts@tsu.biz> wrote: >>>>>> >>>>>>> Thanks Maximillian, >>>>>>> >>>>>>> Phpinfo only showed differences where expected in configuration >>>>> paths >>>>>>> such >>>>>>> as include and open basedir etc. I¹ve tried force compile and >>> not, >>>>> it >>>>>>> doesn¹t seem to make a difference. Any other ideas? >>>>>>> >>>>>>> Thanks, >>>>>>> Gary >>>>>>> >>>>>>> on 7/24/05 6:26 PM, Maximillian Schwanekamp at >>>>>>> lists@neptunewebworks.com >>>>>>> wrote: >>>>>>> >>>>>>>> Gary Smith wrote: >>>>>>>>> Good thought but it didn't do the trick. Any other ideas? >>>>>>>> >>>>>>>> Did you try running a phpinfo() on the other site (vhost) on >>> that >>>>>>>> machine, and on the problem site, and running a diff on them >>>>> using >>>>>>> e.g. >>>>>>>> Textpad or similar? Are you intentionally using Force compile? >> >> >> __________________________________________________ >> Do You Yahoo!? >> Tired of spam? Yahoo! Mail has the best spam protection around >> http://mail.yahoo.com >> >> -- >> Smarty General Mailing List (http://smarty.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> >>

« previous php.smarty.general (#12852) next »