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 107 matches
Smarty Forum Index
Author Message
  Topic: Smarty 3.0 Alpha 1: Proof of Concept
mitchenall

Replies: 93
Views: 248427

PostForum: 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: 7544

PostForum: 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: 5356

PostForum: 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: 6634

PostForum: 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: 5949

PostForum: 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: 7027

PostForum: 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: 15459

PostForum: 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: 8689

PostForum: 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: 13705

PostForum: 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: 11089

PostForum: 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: 11089

PostForum: 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: 9419

PostForum: 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: 6691

PostForum: 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: 5979

PostForum: 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: 5979

PostForum: 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
 
Page 1 of 8 Goto page 1, 2, 3, 4, 5, 6, 7, 8  Next
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP