Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 25 matches
Smarty Forum Index
Author Message
  Topic: Extending smarty functionality when downloaded via smarty
gianiaz

Replies: 2
Views: 5344

PostForum: General   Posted: Sun Apr 03, 2016 7:05 pm   Subject: Extending smarty functionality when downloaded via smarty
Hi, I'm using smarty from a lot of time, now I've decided to include smarty in my projects via composer.

I'm relative new to composer, and now I'm having this doubt:

I have some output filters ...
  Topic: [smarty3] Custom plugin pass attribute with var
gianiaz

Replies: 2
Views: 5058

PostForum: General   Posted: Sun Feb 09, 2014 6:26 pm   Subject: [smarty3] Custom plugin pass attribute with var
Sorry, too many test and I did't see that the error was fired from another attribute without the quotes.

Thank you
  Topic: [smarty3] Custom plugin pass attribute with var
gianiaz

Replies: 2
Views: 5058

PostForum: General   Posted: Sun Feb 09, 2014 11:15 am   Subject: [smarty3] Custom plugin pass attribute with var
I'm upgrading to smarty3 from smarty2.

In smarty2 I use a custom plugin wrote from me, and I use this syntax in tpl:


{mycustomplugin attribute=name_$Lang}

and in the plugin i re ...
  Topic: Smarty cache sometimes create empty files.
gianiaz

Replies: 19
Views: 30341

PostForum: General   Posted: Wed Feb 05, 2014 4:19 pm   Subject: Smarty cache sometimes create empty files.
Not a solution, but for now I've modified the fetch method to make an additional check on the content of the cache file, if it's empty I don't return nothing, and the code behave like the page is not ...
  Topic: Smarty cache sometimes create empty files.
gianiaz

Replies: 19
Views: 30341

PostForum: General   Posted: Wed Feb 05, 2014 2:17 pm   Subject: Smarty cache sometimes create empty files.
Found some empty files, this is an example:


314
a:4:{s:8:"template";a:5:{s:60:"/XXX/XXX/public_html/public/main_modules/news/news.tpl&quo ...
  Topic: Smarty cache sometimes create empty files.
gianiaz

Replies: 19
Views: 30341

PostForum: General   Posted: Mon Feb 03, 2014 3:39 pm   Subject: Smarty cache sometimes create empty files.
Tried to put cache lifetime to 3 seconds and did refresh the page a lot of times, but I can't reproduce the error.

I would like to debug this, but I need some help.

If I want to automate the c ...
  Topic: Smarty cache sometimes create empty files.
gianiaz

Replies: 19
Views: 30341

PostForum: General   Posted: Sun Jan 19, 2014 2:06 pm   Subject: Smarty cache sometimes create empty files.
a link to phpinfo result:

https://www.dropbox.com/s/kvqth6363rjl7d0/phpinfo.html

php 5.5.6 and
smarty 2.6.28 (replaced 2.6.10)
  Topic: Smarty cache sometimes create empty files.
gianiaz

Replies: 19
Views: 30341

PostForum: General   Posted: Tue Jan 07, 2014 3:52 pm   Subject: Smarty cache sometimes create empty files.
Hi, I have a site running from a few years.

It was running on a php 5.2 and now it has been transferred on a server with php5.5.

The site has 1 main template that loads a number of tpl files. T ...
  Topic: [Smarty 2] Indentation of output (without post-processing)
gianiaz

Replies: 0
Views: 22980

PostForum: Tips and Tricks   Posted: Fri Dec 07, 2012 1:57 pm   Subject: [Smarty 2] Indentation of output (without post-processing)
Hi, I want to output an easy to read html source, but I don't want to use tidy or similar solutions for a couple of reasons.

What I want to do is write my own code paying attention to indent corre ...
  Topic: Can't understand error reporting
gianiaz

Replies: 0
Views: 3402

PostForum: General   Posted: Fri Jun 29, 2012 2:27 pm   Subject: Can't understand error reporting
Hi, I need help understanding how error reporting works.

I'm trying to use a class for manage error reporting.

In php code I wrote in the first lines:


require_once(CLASSES.'PhpErrorHand ...
  Topic: Notice: function call 'register_function'...
gianiaz

Replies: 14
Views: 44225

PostForum: Smarty 3   Posted: Sat Nov 20, 2010 6:46 pm   Subject: Notice: function call 'register_function'...
thank you Smile
  Topic: Notice: function call 'register_function'...
gianiaz

Replies: 14
Views: 44225

PostForum: Smarty 3   Posted: Sat Nov 20, 2010 5:55 pm   Subject: Notice: function call 'register_function'...
Sorry but I didn't understand....

I wrote this code:



$smarty = new Smarty();

function test() {
echo 'test';
}

$smarty->register->templateFunction&# ...
  Topic: Upgrading to smarty 3
gianiaz

Replies: 1
Views: 4001

PostForum: General   Posted: Thu Nov 18, 2010 5:15 pm   Subject: Upgrading to smarty 3
Hi, I wrote a cms based on smarty 2 and I want to upgrade to smarty 3.

Smarty 3 is fully compatible with the smarty 2 syntax?

I am very happy of smarty 2, there's a real motive to switch to ver ...
  Topic: Understanding naming convention in smarty cache
gianiaz

Replies: 1
Views: 4620

PostForum: General   Posted: Thu Jul 30, 2009 5:08 pm   Subject: Understanding naming convention in smarty cache
sorry... it was my fault, I was passing a wrong path. Embarassed
  Topic: Understanding naming convention in smarty cache
gianiaz

Replies: 1
Views: 4620

PostForum: General   Posted: Thu Jul 30, 2009 4:37 pm   Subject: Understanding naming convention in smarty cache
Hi, I'have some headache with smarty caching.

I have a cached page and I want to delete the cached version, but when I cal cache passing the same path I've passed to the display method and the sam ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT
Jump to:  


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