Author |
Message |
Topic: Namespace support |
TakingSides
Replies: 1
Views: 4372
|
Forum: General Posted: Mon Apr 30, 2012 9:16 am Subject: Namespace support |
HI All,
a few months ago I said I was going to release a framework which makes use of the Smarty library. After a release candidate which I felt could be improved, anyway more to the subject of Sma ... |
Topic: clearCompiledTemplate question |
TakingSides
Replies: 1
Views: 4423
|
Forum: General Posted: Wed Oct 19, 2011 3:24 pm Subject: clearCompiledTemplate question |
Hello Community.
I have a quick question about the clearCompiledTemplate() method. I have a multiple language framework which means i can place tags inside my templates such as ## TTL_HOMEPAGE_WELC ... |
Topic: Extended Plugins (Widgets) |
TakingSides
Replies: 1
Views: 16219
|
Forum: Plugins Posted: Thu Sep 29, 2011 9:19 am Subject: Extended Plugins (Widgets) |
I have been working on a Lightweight PHP Framework (soon to be released into the open source community). There are many reasons for using Smarty, but two absolute advantages of using Smarty are:
1. ... |
Topic: Information about compiled hashes |
TakingSides
Replies: 2
Views: 5486
|
Forum: General Posted: Mon Sep 26, 2011 9:29 pm Subject: Information about compiled hashes |
Yep, that would make sense... A nice simple way to keep things unique. I did notice a topic a while ago about sha1() vs md5() in terms of speed etc. I won't re-raise the thread but thanks for the expl ... |
Topic: Information about compiled hashes |
TakingSides
Replies: 2
Views: 5486
|
Forum: General Posted: Mon Sep 26, 2011 9:19 pm Subject: Information about compiled hashes |
Can anyone explain the process to how these filename hashes are generated? (Since i'm very intrigued).
I have several templates called view.tpl inside a directory called: /lib/_widgets/<name> ... |
Topic: Issue with parsing variables |
TakingSides
Replies: 3
Views: 7357
|
Forum: General Posted: Mon Sep 26, 2011 7:11 pm Subject: Issue with parsing variables |
Thanks, I totally forget in Smarty 3, that $smarty (aka $template) was NOT the smarty object, but actually the template object (containing the smarty instance).
your solution was infact the answer ... |
Topic: Issue with parsing variables |
TakingSides
Replies: 3
Views: 7357
|
Forum: General Posted: Mon Sep 26, 2011 4:31 pm Subject: Issue with parsing variables |
Good Afternoon,
Just before I explain my problem with example code, allow me to briefly explain the file structure I currently have in place
../lib/_classes -> All Framework classes are here
... |
Topic: Issue with parsing variables |
TakingSides
Replies: 3
Views: 7357
|
Forum: General Posted: Mon Sep 26, 2011 4:28 pm Subject: Issue with parsing variables |
(see comment because i cannot post my thread here without a post doesn't exist error) |
Topic: Multiple/Styles : Suggestions of Best Practice? |
TakingSides
Replies: 19
Views: 201369
|
Forum: General Posted: Tue Aug 16, 2011 9:57 am Subject: Multiple/Styles : Suggestions of Best Practice? |
Awesome, was this a new feature in Smarty3? I upgraded my site from smarty2 to smarty3, i think that's why some of the work-arounds are "old" or "long-winded"
I shall be using t ... |
Topic: Multiple/Styles : Suggestions of Best Practice? |
TakingSides
Replies: 19
Views: 201369
|
Forum: General Posted: Tue Aug 16, 2011 8:50 am Subject: Multiple/Styles : Suggestions of Best Practice? |
no, second parameter of display is the cache_id, third is the compile_id: $smarty->display('index.tpl', null, 'en_GB');
That makes sense, However one thing has just crossed my mind...
... |
Topic: Multiple/Styles : Suggestions of Best Practice? |
TakingSides
Replies: 19
Views: 201369
|
Forum: General Posted: Tue Aug 16, 2011 8:38 am Subject: Multiple/Styles : Suggestions of Best Practice? |
You only need one compile_dir, one template_dir, one cache_dir and one config_dir. Since the different theme names are right in the filepath, Smarty does all the work internally to keep things separat ... |
Topic: Multiple/Styles : Suggestions of Best Practice? |
TakingSides
Replies: 19
Views: 201369
|
Forum: General Posted: Tue Aug 16, 2011 8:04 am Subject: Multiple/Styles : Suggestions of Best Practice? |
I thought I would extend this topic with some further information.
You only need one compile_dir, one template_dir, one cache_dir and one config_dir. Since the different theme names are right in th ... |
Topic: Tracing, Error Logs and Exception Handling |
TakingSides
Replies: 2
Views: 7108
|
Forum: General Posted: Mon Aug 15, 2011 8:37 pm Subject: Tracing, Error Logs and Exception Handling |
Thanks dude,
Technically I don't want Smarty's templates (compiled or otherwise) to throw errors therefore I wanted them turned off. Having said that I do not see a big issue with E_WARNING/E_ERROR ... |
Topic: Tracing, Error Logs and Exception Handling |
TakingSides
Replies: 2
Views: 7108
|
Forum: General Posted: Mon Aug 15, 2011 8:16 pm Subject: Tracing, Error Logs and Exception Handling |
Hi,
I have created my own tracing methods which will write messages to a log file while PHP does not display any on-screen errors.
However, i cannot avoid the Smarty errors which are thrown, ann ... |
Topic: Some bad critics on smarty |
TakingSides
Replies: 13
Views: 36415
|
Forum: Article Discussions Posted: Wed Apr 27, 2011 3:44 pm Subject: Some bad critics on smarty |
Smarty is the most powerful, extensible yet lightweight template engine you will ever come across.
I've used a number of template engines, and the say i visited http://smarty.php.net many years ago ... |
|