 |
Smarty
The discussions here are for Smarty, a template engine for the PHP programming language. Dedicated server web hosting provided by Guru-host.eu. |
| View previous topic :: View next topic |
| Author |
Message |
Saletra Smarty n00b
Joined: 14 Jul 2010 Posts: 1
|
Posted: Wed Jul 14, 2010 6:56 am Post subject: Template display {section} instead of proper data |
|
|
Hello,
I downloaded one of templates from FTP and uploaded it again (not changing anything in file). Now I see:
| Quote: | {section name=news loop=$dane} [{$dane[news].data}] {$dane[news].tytul}
{/section} |
instead of proper data. I think it's becouse of inproper file saving or transfer by me FTP Client (i use FileZilla and SmartFTP). I tryied variety transfer method: binary, ASCII... I tryied to save file in Notepad and Edit plus with no efect. I use Windows 7. I refreshed my templates cache folder.
It's old site that i wanted to edit. I never had this problem before. Now every template I download and upload is broken like this.
Cache file:
| Quote: | <?php /* Smarty version 2.6.12, created on 2010-07-14 08:45:45
compiled from archiwum.tpl */ ?>
{section name=news loop=$dane}
<span>[{$dane[news].data}]</span> <a href="news,{$dane[news].link},{$dane[news].id}.html">{$dane[news].tytul}</a><br/>
{/section} |
|
|
| Back to top |
|
bimal Smarty Elite

Joined: 19 Apr 2007 Posts: 345 Location: Kathmandu, Nepal
|
Posted: Wed Jul 14, 2010 10:18 am Post subject: Few things |
|
|
Clear the compiled files and give a try again. To be safe, just backup your complied files.
It looks that your server environment has changed. Try to error_reporting(E_ALL) and see the PHP's error messages - it seems, they are suppressed now, and you cannot see what is wrong.
A template file does not start with:
<?php /* Smarty version 2.6.12, created on 2010-07-14 08:45:45
compiled from archiwum.tpl */ ?>
You might have uploaded the compiled files, without modifying the file's time stamp. Make sure that you are uploading archiwum.tpl file only, within the templates folder.
Good luck. _________________ Project Manager and Senior Programmer (Bimal Poudel)
Smarty Framework - use it now
Sanjaal Corps, Organized freelancing provider
Hire me in oDesk immediately | Professional support | Personal URL |
|
| Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|