Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Search found 91 matches
Smarty Forum Index
Author Message
  Topic: 3.1.32 doesn't work
adn

Replies: 0
Views: 1444

PostForum: General   Posted: Sat May 19, 2018 4:10 pm   Subject: 3.1.32 doesn't work
Hello,

I tried to switch to the 3.1.32 version but everything is ko. I got too many fatal errors Sad

I tried after the master version and things seem to be fixed.

But as it is not published, I ...
  Topic: Google amp project
adn

Replies: 8
Views: 4783

PostForum: General   Posted: Wed Mar 29, 2017 2:10 pm   Subject: Google amp project
No specific things

Personnaly I just created templates for amp pages. My amp pages have a param &amp and when I detect it I use others templates. Easy
Cool
  Topic: subtemplates, lifetime and mergeinclude
adn

Replies: 1
Views: 3084

PostForum: General   Posted: Sun Nov 13, 2016 6:36 pm   Subject: subtemplates, lifetime and mergeinclude
Hello,

I'd like to understand a behavior
I set smarty as follow
$smarty->setCaching(Smarty::CACHING_LIFETIME_CURRENT);
$smarty->setMergeCompiledIncludes(TRUE);
$s ...
  Topic: 3.1.30 503 with nocache=true
adn

Replies: 5
Views: 7055

PostForum: Bugs   Posted: Tue Sep 06, 2016 5:29 pm   Subject: 3.1.30 503 with nocache=true
OK done, thanks
  Topic: 3.1.30 503 with nocache=true
adn

Replies: 5
Views: 7055

PostForum: Bugs   Posted: Tue Sep 06, 2016 6:35 am   Subject: 3.1.30 503 with nocache=true
I saw that in differents places that's why I used it sometime

You can see that here in the doc
http://www.smarty.net/docs/en/language.syntax.attributes.tpl

{include file="header.tpl" ...
  Topic: 3.1.30 503 with nocache=true
adn

Replies: 5
Views: 7055

PostForum: Bugs   Posted: Sat Sep 03, 2016 10:54 am   Subject: 3.1.30 503 with nocache=true
Hello,

I switched from 3.1.28 to 3.1.30 and I got a regression using plugins as

{plugin nocache=true}

No trace in log but a 503

I solved this pb by doing

{plugin nocache}

T ...
  Topic: Error 500
adn

Replies: 2
Views: 3019

PostForum: General   Posted: Wed Dec 30, 2015 9:52 am   Subject: Error 500
Thanks mohrt, I will wait for the new release to test again!

Happy new year Very Happy
  Topic: Error 500
adn

Replies: 2
Views: 3019

PostForum: General   Posted: Mon Dec 28, 2015 5:44 pm   Subject: Error 500
Hi all,

I try to activate the 3.1.29 version, after removing all caches I got an 500 error on all pages. With the debug mode everything is ok.
I guess there is a regression

Does someone meet a ...
  Topic: Problem to clean up compiled tpl with 3.1.24
adn

Replies: 20
Views: 12914

PostForum: General   Posted: Sun Sep 13, 2015 9:49 am   Subject: Problem to clean up compiled tpl with 3.1.24
Hello,

Hereafter my current configuration in php.ini (for now all seems ok)

opcache.memory_consumption=2048
opcache.interned_strings_buffer=16
opcache.max_accelerated_files=100000
opcache.rev ...
  Topic: Problem to clean up compiled tpl with 3.1.24
adn

Replies: 20
Views: 12914

PostForum: General   Posted: Wed Sep 09, 2015 6:25 am   Subject: Problem to clean up compiled tpl with 3.1.24
Hello,

For information I know now what was my problem with clearing templates.

opcache is activated for php on my server and when I disable it everything is working fine but not when it is disa ...
  Topic: Problem to clean up compiled tpl with 3.1.24
adn

Replies: 20
Views: 12914

PostForum: General   Posted: Wed Jun 03, 2015 5:32 pm   Subject: Problem to clean up compiled tpl with 3.1.24
Yes I will have to read it because I thought that my problem was fixed but no... Certainly something I still do not understand Sad

I do now

$smarty->compile_id = 'page.tpl';
$smarty->clea ...
  Topic: How to sort items by date & calendar week
adn

Replies: 10
Views: 6623

PostForum: General   Posted: Wed Jun 03, 2015 6:52 am   Subject: How to sort items by date & calendar week
At least one mistake in my code on $stat

{$week=''}
{foreach item=table_data from=$products|@sortby:"-#date_added"}
{if $week != $table_data.date_added|date_format:"%V"} ...
  Topic: How to sort items by date & calendar week
adn

Replies: 10
Views: 6623

PostForum: General   Posted: Tue Jun 02, 2015 3:46 pm   Subject: How to sort items by date & calendar week
What is your result now?
  Topic: Problem to clean up compiled tpl with 3.1.24
adn

Replies: 20
Views: 12914

PostForum: General   Posted: Tue Jun 02, 2015 3:45 pm   Subject: Problem to clean up compiled tpl with 3.1.24
OK great !

Yes the story of the compile_id is not well explained and can certainly be enhanced.

But really even if it is quite complicated, it is a great capability Very Happy

Before knowing that I h ...
  Topic: How to sort items by date & calendar week
adn

Replies: 10
Views: 6623

PostForum: General   Posted: Tue Jun 02, 2015 2:19 pm   Subject: How to sort items by date & calendar week
Hi micab,

I have this kind of thing in some tpl and I do something like that with only one loop. Not tested


{$week=''}
{foreach item=table_data from=$products|@sortby:" ...
 
Page 1 of 7 Goto page 1, 2, 3, 4, 5, 6, 7  Next
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP