You are here: RE: [SMARTY] Upgrade to debian testing breaks smarty sites « Smarty Templates Posts « IT news, forums, messages
RE: [SMARTY] Upgrade to debian testing breaks smarty sites

Posted by Boots on 09/30/14 11:13

Did you clear out your old compiled and cached files? I don't think I
saw whether you upgraded Smarty or not. What exact versions are you
using? Do your broken apps use template_dir or did they rely on a path
for template fetching (doesn't work anymore in more recent Smarty
versions)?

xo boots

--- "Sims, Benjamin" <B.Sims@unesco.org> wrote:

> Yes, that correctly outputs the contents of the file.
>
> Similarly, replacing:
>
> $smarty->display('index.tpl');
>
> With
>
> $smarty->display($smarty->template_dir . '/index.tpl');
>
> works (for the test script, not my apps, but one step at a time!)
>
> Hum. Somehow the template_dir variable is getting 'lost'?
>
> Ben
>
> -----Original Message-----
> From: Monte Ohrt [mailto:monte@newdigitalgroup.com]
> Sent: 14 April 2005 15:55
> To: Sims, Benjamin
> Cc: Smarty
> Subject: Re: [SMARTY] Upgrade to debian testing breaks smarty sites
>
>
> See if you can read the index.tpl file:
>
> readfile($smarty->template_dir . '/index.tpl');
>
>
>
>
>
> Sims, Benjamin wrote:
>
> >Thanks,
> >
> >I don't think it is an include problem, since the error is being
> thrown
>
> >from smarty itself.
> >
> >I tried adding to the include path as you mention, but result is the
>
> >same.
> >
> >Ben
> >
> >-----Original Message-----
> >From: Riviere Informatique SARL [mailto:svdbeek@rivinfo.com]
> >Sent: 14 April 2005 15:12
> >To: Sims, Benjamin
> >Cc: smarty-general@lists.php.net
> >Subject: Re: [SMARTY] Upgrade to debian testing breaks smarty sites
> >
> >
> >Ah. Maybe you should include the following line in your php.ini
> >(/etc/php4/apache/php.ini)
> >include_path = "/usr/share/php/smarty/libs"
> >
> >That way you don't need to add a complete path in your include but
> can
> >just do
> >include('Smarty.class.php')
> >
> >There's loads of other programs in that directory that Smarty
> probably
> >needs. Don't forget to stop/start your apache after this.
> >
> >I'm running this on Debian unstable and it runs fine.
> >
> >Regards,
> >Steven.
> >
> >Sims, Benjamin wrote:
> >
> >Thanks, it is www-data but this is what it was before. I have set up
>
> >the
> >
> >following simple script as a test:
> >
> >
> >
> >//php code
> -----------------------------------------------------------
> >
> ><?php
> >
> >include('/usr/share/php/smarty/libs/Smarty.class.php');
> >
> >
> >
> >// create object
> >
> >$smarty = new Smarty;
> >
> >
> >
> >//config
> >
> >$smarty->template_dir =
> >
> >'/var/www/ioc3.unesco.org/www/apps/test/templates/';
> >
> >$smarty->compile_dir =
> >
> >'/var/www/ioc3.unesco.org/www/apps/test/templates_c/';
> >
> >$smarty->cache_dir =
> '/var/www/ioc3.unesco.org/www/apps/test/cache/';
> >
> >$smarty->config_dir =
> >'/var/www/ioc3.unesco.org/www/apps/test/configs/';
> >
> >
> >
> >// display it
> >
> >$smarty->display('index.tpl');?>
> >
> >//end code

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация