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

Search found 18 matches
Smarty Forum Index
Author Message
  Topic: truncate vs character_limit
carpii

Replies: 3
Views: 882

PostForum: General   Posted: Wed Jul 03, 2019 12:25 am   Subject: truncate vs character_limit
What do you mean by invoking character_limit?

There is no PHP function or ini setting called this.
Maybe you are using a framework which provides it, but even so I can't find any reference to i ...
  Topic: smarty 2.x - detect if array modifier was called with @
carpii

Replies: 2
Views: 608

PostForum: General   Posted: Fri Jun 14, 2019 4:33 am   Subject: smarty 2.x - detect if array modifier was called with @
Thanks, very helpful.

I ended up just adding a specific check in the compiler class..


if (substr($_modifier_name, 0, 1) == '@') {
$_map_array ...
  Topic: smarty 2.x - detect if array modifier was called with @
carpii

Replies: 2
Views: 608

PostForum: General   Posted: Wed Jun 12, 2019 12:22 pm   Subject: smarty 2.x - detect if array modifier was called with @
I have a simple modifier


public static function ArraySizeOf($array)
{
if (isset($array) && is_array($array))
{
return count($arra ...
  Topic: Other support place?
carpii

Replies: 3
Views: 720

PostForum: General   Posted: Wed Jun 12, 2019 12:19 pm   Subject: Other support place?
Theres an IRC channel, but I haven't used it and not sure how active it is these days

https://www.smarty.net/forums/viewtopic.php?t=1236
  Topic: Failing to understand Smarty::_realpath()
carpii

Replies: 8
Views: 2940

PostForum: General   Posted: Tue Jan 02, 2018 2:37 am   Subject: Failing to understand Smarty::_realpath()
The more I look at it the less I understand it Razz

From what I can see though, realpath is never called with false (only true or null).

There are some tests in libs/sysplugins/smarty_internal_te ...
  Topic: anyone using Smarty with build chain? sass/grunt/etc
carpii

Replies: 1
Views: 1155

PostForum: General   Posted: Sat Dec 30, 2017 12:06 am   Subject: anyone using Smarty with build chain? sass/grunt/etc
Ive been using Smarty for a long time, but have always hand coded my smarty and HTML templates and this just isnt cutting it anymore

I need to migrate to a proper build chain, using sass, and grunt ...
  Topic: Failing to understand Smarty::_realpath()
carpii

Replies: 8
Views: 2940

PostForum: General   Posted: Sat Dec 30, 2017 12:02 am   Subject: Failing to understand Smarty::_realpath()
I don't know. It looks like very strange code personally.

My guess is it is used by Smarty to grab an absolute path to a script or base template, when there are subtemplates included.

Try adding ...
  Topic: Using a modern build stack with Smarty
carpii

Replies: 5
Views: 3862

PostForum: General   Posted: Sun May 08, 2016 5:00 am   Subject: Using a modern build stack with Smarty
Mature or aged? Very Happy


Truthfully? A bit of both I guess Very Happy
the PHP code is actively maintained, but some of my smarty templates are quite legacy (HTML 4.01, some use nested tables for layout etc) ...
  Topic: Using a modern build stack with Smarty
carpii

Replies: 5
Views: 3862

PostForum: General   Posted: Fri May 06, 2016 9:27 am   Subject: Re: Using a modern build stack with Smarty
Humm, thats not really a solution Wink

Maybe if it were a simple blog site, I could swap it for a CMS, but its a large social site with many features and a mature codebase
  Topic: Using a modern build stack with Smarty
carpii

Replies: 5
Views: 3862

PostForum: General   Posted: Tue May 03, 2016 2:20 am   Subject: Using a modern build stack with Smarty
I love Smarty, and have used it for years. I intend to carry on using it too, because I love its performance and relatively simple architecture

But all my smarty templates are handcoded HTML
They ...
  Topic: Am I alone in still using Smarty 2.x?
carpii

Replies: 4
Views: 3544

PostForum: General   Posted: Wed Jan 13, 2016 5:11 am   Subject: Am I alone in still using Smarty 2.x?
Thankyou!

I plan to stick with Smarty 2.x for quite a few more years.
Its awesome to hear its still getting security patches, and hasn't been fully obsoleted by 3.x
  Topic: Am I alone in still using Smarty 2.x?
carpii

Replies: 4
Views: 3544

PostForum: General   Posted: Mon Dec 28, 2015 4:45 am   Subject: Am I alone in still using Smarty 2.x?
I wonder how many people here are still using Smarty 2.x?

I have a high traffic site, and a large PHP codebase.

It would be nice to be using latest Smarty, but I did spend some time looking int ...
  Topic: how to render smarty after a jquery ajax call
carpii

Replies: 3
Views: 9919

PostForum: General   Posted: Mon Jul 16, 2012 10:34 pm   Subject: how to render smarty after a jquery ajax call
This isnt really a smarty question.

Check your PHP code which handles the ajax request (and then asks smarty to render it).
Most likely this is where the problem lies
  Topic: how to upgrade from smarty 2 to 3 ?
carpii

Replies: 5
Views: 7058

PostForum: General   Posted: Wed Jul 11, 2012 7:27 pm   Subject: how to upgrade from smarty 2 to 3 ?
Thanks guys. I've deployed it to my dev server to start seeing what work is required. But Im confused by quite a few things.
I just have a few questions and would appreciate any help, thanks


1) ...
  Topic: how to upgrade from smarty 2 to 3 ?
carpii

Replies: 5
Views: 7058

PostForum: General   Posted: Wed Jul 11, 2012 12:56 am   Subject: how to upgrade from smarty 2 to 3 ?
I've been using Smarty 2 for maybe 6 years now, with great success.

Smarty 3 has been out for quite some time, and I want to start thinking about upgrading, but Im nervous about it Sad

As my site ...
 
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