Author |
Message |
Topic: Smarty 3.0 Alpha 1: Proof of Concept |
mitchenall
Replies: 93
Views: 249011
|
Forum: Smarty 3 Posted: Thu Nov 05, 2009 5:01 pm Subject: Smarty 3.0 Alpha 1: Proof of Concept |
$smarty = Smarty::getInstance();
PS:Yeah i know i can easy write singleton wrapper myself, but it would be nice to have this feature by default
Please no!
As you said, you could easily writ ... |
Topic: NewBie asks -SO what next? |
mitchenall
Replies: 3
Views: 7554
|
Forum: Installation and Setup Posted: Sat Oct 24, 2009 2:47 am Subject: NewBie asks -SO what next? |
if you have know knowledge of "templating", why do you think you need it? |
Topic: Smarty DB Calls get extranious (and unwanted) content |
mitchenall
Replies: 3
Views: 5364
|
Forum: General Posted: Sat Oct 03, 2009 6:11 pm Subject: Smarty DB Calls get extranious (and unwanted) content |
I'm guessing there's an error_log() or two in that mysql_goquery() function, and that's what displaying at the command line. |
Topic: SWFObject in Smarty |
mitchenall
Replies: 4
Views: 6641
|
Forum: General Posted: Sat Sep 19, 2009 11:04 pm Subject: Re: SWFObject in Smarty |
Has anyone successfully installed SWFObject in Smarty? I am stuck trying to customize a website for someone and this works in plan HTML but crashes in Smarty. Looking for a concrete example of using ... |
Topic: New to Smarty and I have a question |
mitchenall
Replies: 2
Views: 5956
|
Forum: General Posted: Sat Sep 19, 2009 4:41 pm Subject: New to Smarty and I have a question |
The code is so awful and difficult to read that I expect nobody wants to spend the time looking at it. If you were hiring me to do it, the first thing I'd do is throw this code away and start again.
... |
Topic: Help to show all row and field from Database using foreach |
mitchenall
Replies: 4
Views: 7033
|
Forum: General Posted: Sat Sep 19, 2009 4:14 pm Subject: Re: Help to show all row and field from Database using forea |
Is there any mistake in the code?
Yes. Why on earth have you created this as a subclass of Smarty? What is tClass? What is it actually representing? |
Topic: exclude all middile initials with or without a per |
mitchenall
Replies: 5
Views: 15498
|
Forum: Tips and Tricks Posted: Tue Sep 08, 2009 12:04 pm Subject: exclude all middile initials with or without a per |
Seeing as there is no standard to how people write their names, neither of the above is correct.
What about people with double-barrelled names? What about people with multiple middle initials? Wo ... |
Topic: Problems while coding a poll with smarty |
mitchenall
Replies: 6
Views: 8704
|
Forum: General Posted: Tue Sep 08, 2009 11:36 am Subject: Re: The looping example |
You should probably use {section} for looping within the template, in your case. Smarty does not have while loops for now.
If you're making the array with the correct number of elements, why both ... |
Topic: Can some one please tell why |
mitchenall
Replies: 1
Views: 13752
|
Forum: Add-ons Posted: Mon Sep 07, 2009 11:33 pm Subject: Can some one please tell why |
Does it render OK? Did you ask google? Or perhaps a Google Friend Connect related forum? |
Topic: [plugin] modifier 'Default' is not implemented ? |
mitchenall
Replies: 4
Views: 11106
|
Forum: Installation and Setup Posted: Mon Sep 07, 2009 4:54 pm Subject: [plugin] modifier 'Default' is not implemented ? |
Could you please specify which file I find this in? Can't seem to find it.
Well, the error is in your index.tpl file according to the message, so that would be a good place to start. |
Topic: [plugin] modifier 'Default' is not implemented ? |
mitchenall
Replies: 4
Views: 11106
|
Forum: Installation and Setup Posted: Mon Sep 07, 2009 4:01 pm Subject: [plugin] modifier 'Default' is not implemented ? |
Maybe the new install is on a case-sensitive file-system. Do a find'n'replace on your templates to replace
|Default:
with
|default:
|
Topic: CSS Align center ?? simple request - NO ?? |
mitchenall
Replies: 3
Views: 9432
|
Forum: General Posted: Mon Sep 07, 2009 12:53 pm Subject: CSS Align center ?? simple request - NO ?? |
As you said, this is a CSS issue. Perhaps try a forum dedicated to the discussion of CSS, e.g.
http://groups.google.com/group/css-design |
Topic: Sending Smarty variabel to external javascript file |
mitchenall
Replies: 2
Views: 6705
|
Forum: General Posted: Mon Sep 07, 2009 8:55 am Subject: Re: Sending Smarty variabel to external javascript file |
What you're doing wont work because you're moving smarty code into a static file which isn't handled by smarty.
If you're rendering the entire page this way, why not include something in the HTML o ... |
Topic: for-loop problem |
mitchenall
Replies: 3
Views: 5991
|
Forum: General Posted: Fri Sep 04, 2009 3:23 pm Subject: for-loop problem |
Then you need to use {section}{/section}
http://smarty.net/manual/en/language.function.section.php |
Topic: for-loop problem |
mitchenall
Replies: 3
Views: 5991
|
Forum: General Posted: Fri Sep 04, 2009 11:56 am Subject: for-loop problem |
Well, as you want a list of years, why not use the {html_select_date} plugin...
http://smarty.net/manual/en/language.function.html.select.date.php |
|