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

Search found 16 matches
Smarty Forum Index
Author Message
  Topic: smarty3 and gettext
jebediah

Replies: 14
Views: 26620

PostForum: Smarty 3   Posted: Sun Dec 02, 2012 1:40 pm   Subject: smarty3 and gettext
not a problem Smile. Glad if it's working now...

If you've got ANY comments, I'd really greatly appreciate if you could let me know so I can improve the system.

I really do think that easy i18n su ...
  Topic: smarty3 and gettext
jebediah

Replies: 14
Views: 26620

PostForum: Smarty 3   Posted: Sun Dec 02, 2012 1:30 pm   Subject: smarty3 and gettext
Hi U.Tews,

thanks a lot for trying to checkout the sources.

You've got 2 options to get the sources.

Nr 1. SVN

The command to checkout from SVN is

svn checkout http://smarty-gettext ...
  Topic: smarty3 and gettext
jebediah

Replies: 14
Views: 26620

PostForum: Smarty 3   Posted: Sat Dec 01, 2012 3:42 pm   Subject: smarty-gettext
Hi there,

I found the i18n support of Smarty (not per see, but as the whole process) a bit lacking. That's why I've implemented and released a smarty-gettext project that enables full i18n support ...
  Topic: Problems with gettext
jebediah

Replies: 3
Views: 4679

PostForum: General   Posted: Sat Dec 01, 2012 3:42 pm   Subject: smarty-gettext
Hi there,

I found the i18n support of Smarty (not per see, but as the whole process) a bit lacking. That's why I've implemented and released a smarty-gettext project that enables full i18n support ...
  Topic: best way to build a multi-language site with smarty
jebediah

Replies: 210
Views: 569891

PostForum: Tips and Tricks   Posted: Sat Dec 01, 2012 3:42 pm   Subject: smarty-gettext
Hi there,

I found the i18n support of Smarty (not per see, but as the whole process) a bit lacking. That's why I've implemented and released a smarty-gettext project that enables full i18n support ...
  Topic: Code executed twice
jebediah

Replies: 9
Views: 11531

PostForum: General   Posted: Sun Aug 05, 2012 12:17 pm   Subject: Code executed twice
Hi there,

also, some browsers trigger a request to retrieve the favicon that's displayed in the address bar/on the tab pages.

Depending on you web-server URL matching/rewrite and caching rules y ...
  Topic: custom compiler and caching
jebediah

Replies: 5
Views: 5140

PostForum: General   Posted: Sun Aug 05, 2012 10:51 am   Subject: custom compiler and caching
Actually, the whole system is easier to manage using a custom function as opposed to a custom compiler.

i.e. use
$smarty->registerPlugin('function', 'action', 'custom_function_action', true ...
  Topic: assign variable globally in smarty action
jebediah

Replies: 2
Views: 3127

PostForum: General   Posted: Sun Aug 05, 2012 10:20 am   Subject: Re: assign variable globally in smarty action
P.P.S: does anyone know the reason why the following does not work:


function get_current_user($params, &$smarty){
while($smarty->parent!=null)
$smarty = ...
  Topic: assign variable globally in smarty action
jebediah

Replies: 2
Views: 3127

PostForum: General   Posted: Sun Aug 05, 2012 10:18 am   Subject: assign variable globally in smarty action
Hello everyone,

I've got the following 'setup':

index.tpl

{include file='header.tpl'}
{$user.username}
{include file='footer.tpl'}


header.tpl

{g ...
  Topic: custom compiler and caching
jebediah

Replies: 5
Views: 5140

PostForum: General   Posted: Sun Aug 05, 2012 10:02 am   Subject: custom compiler and caching

If it can be cached you must register it as such.
$smarty->registerPlugin('compiler', 'action', 'custom_compiler_action', true);

Hi U.Tews,

I feel really, really stupid now. That ...
  Topic: custom compiler and caching
jebediah

Replies: 5
Views: 5140

PostForum: General   Posted: Wed Aug 01, 2012 8:28 am   Subject: custom compiler and caching
Two notes:

1. you did set $smarty->setCompileCheck(false); . So Smarty will not detect template source changes and not recompile the template automatically

2. Smarty will never detect modifi ...
  Topic: custom compiler and caching
jebediah

Replies: 5
Views: 5140

PostForum: General   Posted: Fri Jul 27, 2012 7:37 am   Subject: custom compiler and caching
Hello everyone,

I have a question wrt a custom compiler plugin.

We've got a custom compiler tag at the beginning of each template executing the code necessary to assign the Smary variables for t ...
  Topic: Avoid caching of compiler plugin
jebediah

Replies: 3
Views: 2775

PostForum: General   Posted: Sat May 26, 2012 11:29 am   Subject: Avoid caching of compiler plugin
Hi U.Tews,

thanks loads for your reply.

I've tried that and unfortunately it does not work... Sad

Any other ideas/suggestions?

Thanks,
Jeb
  Topic: Avoid caching of compiler plugin
jebediah

Replies: 3
Views: 2775

PostForum: General   Posted: Fri May 25, 2012 3:59 pm   Subject: Avoid caching of compiler plugin
Hello dear community,

I'm using Smarty v.3.1.8 and have written a custom compiler plugin under the name of 'do_something'.


function do_something($params, &$compiler){
$smar ...
  Topic: smarty compiler function
jebediah

Replies: 3
Views: 7818

PostForum: Plugins   Posted: Sat Jan 28, 2012 3:45 pm   Subject: smarty compiler function
Hi U.Tews,

thanks a lot for this. I'm indeed trying to implement an include functionality following the functional design principle.

I was just trying to give a minimal example and sorry for not ...
 
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