Author |
Message |
Topic: Selectively Hiding a variable in debugger |
Saeid
Replies: 2
Views: 5038
|
Forum: General Posted: Fri Apr 17, 2015 10:43 pm Subject: Selectively Hiding a variable in debugger |
Hey I am back after a long time!
I wonder if it is possible to hide certain variables from the debugger?
I have a huge php array which contains language translations. I am debugging using th ... |
Topic: Smarty foreach index does not act on second item in the list |
Saeid
Replies: 2
Views: 5610
|
Forum: General Posted: Mon Mar 17, 2014 3:50 pm Subject: Smarty foreach index does not act on second item in the list |
Hi, Thanks for reply. You were right....aparently I had hardcoded those values in my php file. It works fine now!
But can you tell me if the way that I am doing this is efficent or you have a bett ... |
Topic: Smarty foreach index does not act on second item in the list |
Saeid
Replies: 2
Views: 5610
|
Forum: General Posted: Fri Mar 14, 2014 12:59 pm Subject: Smarty foreach index does not act on second item in the list |
Hi all, I am not sure if I am doing something wrong or this is an bug. This is the case:
I have a conf file with following content:
[roles]
role = Scientific staff
role = Secretary
ro ... |
Topic: Reading config values from .conf files in PHP |
Saeid
Replies: 1
Views: 5089
|
Forum: General Posted: Wed Aug 07, 2013 2:54 pm Subject: Reading config values from .conf files in PHP |
Hi all!
For a meeting schedule, I want to have dynamic pages for any given room. User can edit a file named "schedules.conf" in the config folder. At the moment it looks like this:
& ... |
Topic: Problem with $allow_php_tag after smarty update |
Saeid
Replies: 2
Views: 7619
|
Forum: General Posted: Tue Jan 22, 2013 9:41 pm Subject: Problem with $allow_php_tag after smarty update |
If you want {php} tags you have to use the SmartyBC class. This is all outlined in the upgrade notes that ship with Smarty.
Well I did that too:
include(SITE_ROOT_PATH.'/include/smarty/l ... |
Topic: Problem with $allow_php_tag after smarty update |
Saeid
Replies: 2
Views: 7619
|
Forum: General Posted: Tue Jan 22, 2013 9:17 am Subject: Problem with $allow_php_tag after smarty update |
Hi all,
I decided to update to the newest version of Smarty from an older version (version 2.x I was using). Now I am getting this error:
Undefined property: Smarty::$allow_php_tag ... |
Topic: collapsible smarty template - need big help! |
Saeid
Replies: 2
Views: 6626
|
Forum: General Posted: Sun Jul 18, 2010 1:38 am Subject: collapsible smarty template - need big help! |
I guess you have to do that with java script. to hide, but if the variable you want to show is empty, check it with a {if} command:
{if !$HOOK_RIGHT_COLUMN=""}
<!-- Right ... |
Topic: problem with smarty cache |
Saeid
Replies: 2
Views: 6165
|
Forum: General Posted: Fri Jul 16, 2010 3:40 pm Subject: problem with smarty cache |
Thanks a lot mohrt, that did the job. |
Topic: problem with smarty cache |
Saeid
Replies: 2
Views: 6165
|
Forum: General Posted: Fri Jul 16, 2010 12:11 pm Subject: problem with smarty cache |
Dear friends,
Everything works just fine with smarty for me but when I enable caching all my pages just look the same. I mean only one page will be cached and every link and different parts of my ... |
Topic: Integrating phpBB3 to a smarty running site |
Saeid
Replies: 1
Views: 5657
|
Forum: General Posted: Tue Jul 06, 2010 10:38 pm Subject: Integrating phpBB3 to a smarty running site |
Well that is what I did, using IFRAME in template.
this link works fine, with the help of jquery framework
http://www.lost-in-code.com/programming/jquery-auto-iframe-height/
and here is a demo, ... |
Topic: Integrating phpBB3 to a smarty running site |
Saeid
Replies: 1
Views: 5657
|
Forum: General Posted: Tue Jul 06, 2010 9:48 pm Subject: Integrating phpBB3 to a smarty running site |
Hello!
I wanted to know if somebody has ever tried this? is that enough to just remove header and footer from phpBB and include it in smarty?
Any ideas?
Thanks. |
Topic: Smarty is a priceless releif! |
Saeid
Replies: 0
Views: 39644
|
Forum: Testimonials Posted: Tue Jul 06, 2010 5:04 pm Subject: Smarty is a priceless releif! |
Dear Smarty community!
First of all, this post is also considered as testimonial. I will post it in that forum also.
I am an electronics engineer and I always had a dream to have my own website ... |
Topic: EE Tutorials- All about electronics and hardware |
Saeid
Replies: 0
Views: 20875
|
Forum: Showcase Posted: Tue Jul 06, 2010 5:02 pm Subject: EE Tutorials- All about electronics and hardware |
Dear Smarty community!
First of all, this post is also considered as testimonial. I will post it in that forum also.
I am an electronics engineer and I always had a dream to have my own website ... |
Topic: Overriding smarty cache |
Saeid
Replies: 1
Views: 6247
|
Forum: General Posted: Thu Jul 01, 2010 1:17 am Subject: Overriding smarty cache |
Hello,
I want to know what effect will this code have if I include it in every page?
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modi ... |
Topic: {section} itteration add or join to array key |
Saeid
Replies: 5
Views: 13107
|
Forum: General Posted: Tue Jun 29, 2010 9:08 pm Subject: {section} itteration add or join to array key |
$smarty.section.c.iteration starts at 1, but $smarty.section.c.index starts at 0.
As it looks like that you are using Smarty3 its extended syntax does allow to optimize the code much more.
{ ... |
|