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 16 matches
Smarty Forum Index
Author Message
  Topic: Smarty Extension (ServiceProvider) for Silex framework
FractalizeR

Replies: 3
Views: 25248

PostForum: Frameworks   Posted: Sun Dec 04, 2011 11:02 pm   Subject: Smarty Extension (ServiceProvider) for Silex framework
Thanks Wink
  Topic: Smarty Extension (ServiceProvider) for Silex framework
FractalizeR

Replies: 3
Views: 25248

PostForum: Frameworks   Posted: Wed Oct 19, 2011 10:10 am   Subject: Smarty Extension (ServiceProvider) for Silex framework
Hi.

I've just commited Smarty Service Provider for [url=http://silex.sensiolabs.org/]Silex framework:

https://github.com/FractalizeR/Silex_SmartyServiceProvider
  Topic: SERVER_NAME variable is used in demo
FractalizeR

Replies: 2
Views: 9539

PostForum: Smarty 3   Posted: Wed Apr 27, 2011 4:01 pm   Subject: SERVER_NAME variable is used in demo
before you create a smarty object, simply do this...

$_SERVER['SERVER_NAME'] = 'my value';

Hacky; but functional?

Well, yes. That's a solution.
  Topic: SERVER_NAME variable is used in demo
FractalizeR

Replies: 2
Views: 9539

PostForum: Smarty 3   Posted: Sat Apr 23, 2011 6:10 pm   Subject: SERVER_NAME variable is used in demo
Hello.

The demo uses {$smarty.server.SERVER_NAME} in template. But this variable is not set in PHP CLI mode.

So, if you write some tests, utilizing Smarty bundled demo templates or you run demo ...
  Topic: feature request:(not very important)i18n keywords
FractalizeR

Replies: 4
Views: 12862

PostForum: Smarty 3   Posted: Thu Jun 11, 2009 6:36 am   Subject: feature request:(not very important)i18n keywords
No...I mean the keywords of smarty...not the content it contains.

BTW, I think gettext is good for c program but not good for php -- it too complex.

However, many famous products are using it. W ...
  Topic: new {function} tag allows recursion
FractalizeR

Replies: 16
Views: 29885

PostForum: Smarty 3   Posted: Thu Jun 11, 2009 6:25 am   Subject: new {function} tag allows recursion
This {function} looks like Smarty becomes something like PHP inside PHP... Not just a template engine, but a complete language already. Don't know if that is good or... ? Smile
  Topic: Smarty 3.0 Alpha 1: Proof of Concept
FractalizeR

Replies: 93
Views: 250161

PostForum: Smarty 3   Posted: Wed Jun 10, 2009 1:20 pm   Subject: Smarty 3.0 Alpha 1: Proof of Concept
http://smarty-php.googlecode.com/svn/branches/Smarty3Alpha/README - this file is absent. First post in the thread should be corrected to
http://smarty-php.googlecode.com/svn/branches/Smarty3Alpha/dis ...
  Topic: Smarty 3.0: initial discussion
FractalizeR

Replies: 172
Views: 535106

PostForum: Smarty Development   Posted: Wed Jun 10, 2009 10:48 am   Subject: Smarty 3.0: initial discussion
Is that possible to create a subforum for Smarty3 disscussion? This topic became just a huge mess of information and new users are unlikely to join a conversation because that requires reading a whole ...
  Topic: Class constants (again!) work around
FractalizeR

Replies: 4
Views: 18982

PostForum: General   Posted: Sat Dec 22, 2007 10:15 am   Subject: Class constants (again!) work around
Yes, exactly. I just pointed out a small mistake Wink
  Topic: Class constants (again!) work around
FractalizeR

Replies: 4
Views: 18982

PostForum: General   Posted: Fri Dec 21, 2007 3:45 pm   Subject: Class constants (again!) work around
function smarty_modifier_const($object, $constName) {
$class = new ReflectionClass($object);
return $class->getConstant($constName);
}

Isn't there a small mistake? ReflectionClass constr ...
  Topic: PHP "switch .. case .. default" operator implement
FractalizeR

Replies: 6
Views: 19071

PostForum: Plugins   Posted: Thu Mar 29, 2007 10:00 am   Subject: PHP "switch .. case .. default" operator implement
Ok Smile So, one that needs can easily do it yourself. I just needed that operator for my internal needs and published files here. Of course, result is the simpliest ever. So, can be polished many times ...
  Topic: PHP "switch .. case .. default" operator implement
FractalizeR

Replies: 6
Views: 19071

PostForum: Plugins   Posted: Wed Mar 28, 2007 6:57 pm   Subject: PHP "switch .. case .. default" operator implement
Because PHP operator should be compiler function, not text block or something.

With compiler plugins, you only get functions -- not blocks. You'd have to do that yourself. So registering "/cas ...
  Topic: PHP "switch .. case .. default" operator implement
FractalizeR

Replies: 6
Views: 19071

PostForum: Plugins   Posted: Wed Mar 28, 2007 6:30 pm   Subject: PHP "switch .. case .. default" operator implement
Because PHP operator should be compiler function, not text block or something.
  Topic: PHP "switch .. case .. default" operator implement
FractalizeR

Replies: 6
Views: 19071

PostForum: Plugins   Posted: Sun Mar 11, 2007 12:34 am   Subject: PHP "switch .. case .. default" operator implement
Here is my implementation of PHP switch operator based on compiler plugins.

Usage is quite simple:

{switchstart var=$test}
{switchcasestart value="apple"}
bbbbbbb ...
  Topic: Smarty itself works, but caching doesn't despite of settings
FractalizeR

Replies: 5
Views: 9586

PostForum: General   Posted: Sat Nov 01, 2003 1:49 pm   Subject: Smarty itself works, but caching doesn't despite of settings
Thanks a lot, Sirs!
As I supposed, the problem was stupid and the solution is very easy. Thanks a lot again.

I am replacing '//' with '/' because I develop site under Windows and target platfom is ...
 
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