Author |
Message |
Topic: truncate string error? |
yarco
Replies: 2
Views: 9091
|
Forum: Smarty 3 Posted: Thu Mar 01, 2012 4:15 am Subject: truncate string error? |
Which version of Smarty are you using? Which charset / encoding are you working with?
==============
found in Smarty.class.php
* @version 3.1.7
* SVN: $Id: Smarty.class.php 4518 2011-1 ... |
Topic: truncate string error? |
yarco
Replies: 2
Views: 9091
|
Forum: Smarty 3 Posted: Wed Feb 29, 2012 5:55 pm Subject: truncate string error? |
Dont know what's going on...
It's ok when dealing Chinese, but except these characters:
Alewijnse Marine Systems
I dont know why this string can not be truncated in:
{$node.content|stripslas ... |
Topic: sugguest: add object support in $smarty->assign |
yarco
Replies: 0
Views: 5499
|
Forum: Smarty 3 Posted: Sun Jul 10, 2011 4:09 am Subject: sugguest: add object support in $smarty->assign |
We could do foreach on an object, so if:
$obj->name = 'yarco';
$obj->gender = 'male';
i would like smarty to assign it as an array.
$smarty->assign($obj);
// as $smarty-& ... |
Topic: Smarty 3.0 Beta 1 Released |
yarco
Replies: 2
Views: 21175
|
Forum: Smarty 3 Posted: Fri Nov 06, 2009 12:41 pm Subject: Smarty 3.0 Beta 1 Released |
恭喜恭喜. <= that means congratulations.
(From China)
As a Chinese, i feel very sorry to say that we do nothing but enjoy the result.
You, westner, done a lot of th ... |
Topic: {indent} |
yarco
Replies: 2
Views: 9344
|
Forum: Smarty 3 Posted: Fri Jul 17, 2009 7:36 am Subject: {indent} |
oh? if such functions would be included in 3th plugin, i think GeShi should also be included too.
{GeShi}
// php code here...
{/GeShi}
|
Topic: what about the cache? |
yarco
Replies: 1
Views: 7097
|
Forum: Smarty 3 Posted: Fri Jul 17, 2009 7:30 am Subject: what about the cache? |
I see someone do a customer function nocache and use it like this:
{nocache}
// something we don't want to cache
{/nocache}
or
{cache expire=86400}
// something we cache it one day
{/cache ... |
Topic: feture request: condition(or some other keyword) compile |
yarco
Replies: 3
Views: 10807
|
Forum: Smarty 3 Posted: Wed Jul 08, 2009 3:30 am Subject: feture request: condition(or some other keyword) compile |
1. That is just like switch/case vs if/else.
Although we could use if/else instead of switch/case, we still have switch/case keywords(in php).
2. The smarty kernel support
or settings in configur ... |
Topic: feture request: condition(or some other keyword) compile |
yarco
Replies: 3
Views: 10807
|
Forum: Smarty 3 Posted: Tue Jul 07, 2009 8:38 am Subject: feture request: condition(or some other keyword) compile |
Though i could do it use if/else keywords, what i've said here is not the logical of views.
For example:
I would like to add google analyze script in my product version page, but don't want it in ... |
Topic: It should be a mistake... |
yarco
Replies: 1
Views: 7557
|
Forum: Smarty 3 Posted: Tue May 19, 2009 10:14 am Subject: It should be a mistake... |
look:
http://smarty-php.googlecode.com/svn/branches/Smarty3Alpha/development/lexer/internal.configfileparser.php
It is a config file parser. So it should be generated from internal.configfileparse ... |
Topic: feature request: function which could loading js/css files |
yarco
Replies: 27
Views: 46612
|
Forum: Smarty 3 Posted: Tue Mar 31, 2009 2:25 am Subject: feature request: function which could loading js/css files |
Thanks, toicontien, for you words.
Creating "widgets" for web sites has become very common, that is...
That's what i'm talking about. And your reply is so brilliant that i want to paste th ... |
Topic: feature request: function which could loading js/css files |
yarco
Replies: 27
Views: 46612
|
Forum: Smarty 3 Posted: Mon Mar 30, 2009 8:18 am Subject: feature request: function which could loading js/css files |
You can use this plugin as all other smarty2 plugins also with smarty3
I know. But if smarty3 would includ this feature, it would be better.
I don't need to download another file and pay attension t ... |
Topic: feature request: function which could loading js/css files |
yarco
Replies: 27
Views: 46612
|
Forum: Smarty 3 Posted: Mon Mar 30, 2009 8:09 am Subject: feature request: function which could loading js/css files |
Very good. that's it.
What about smarty3 to include this feature?
Or smarty3 could automatically do this.
(Is there anybody who would like to keep js/css code in html body?) |
Topic: feature request: function which could loading js/css files |
yarco
Replies: 27
Views: 46612
|
Forum: Smarty 3 Posted: Mon Mar 30, 2009 6:03 am Subject: feature request: function which could loading js/css files |
I don't get what you are asking for. Putting js/css in templates is pretty straight forward.
A function which could load css/js and put the result into <head> tag.
Though js/css could be add ... |
Topic: It seems smarty3 add lots of powerful and great features |
yarco
Replies: 1
Views: 7730
|
Forum: Smarty 3 Posted: Mon Mar 30, 2009 3:16 am Subject: It seems smarty3 add lots of powerful and great features |
So it also needs a powerful and great document.
|
Topic: {literal} |
yarco
Replies: 4
Views: 11234
|
Forum: Smarty 3 Posted: Mon Mar 30, 2009 3:10 am Subject: {literal} |
great!
So does that mean i don't need to redifine smarty delimiters to "{{" and "}}"? |
|