Talk:Smarty
From Wikipedia, the free encyclopedia
Contents |
[edit] Smarty lacking features ?
Smarty lacks some features like date formating (strftime) and support for MySQL or other RDBMS. I would use vLIB or TBS (TinyButStrong). Just my two cents. --ClausVB 20:11, 3 November 2005 (UTC)
- Smarty has date formatting (via strftime) with the date_format modifier. Read the manual! As for RDBMS integration, you can collect your database records and assign them as an array to the template, which can then be looped over and displayed with {foreach}. This is a template engine, there is no reason to integrate RDBMS access directly.
- If you're so sure about this, please edit the article directly. Getting a username would also be a good idea. Rufous 17:06, 11 January 2006 (UTC)
[edit] The cleanup tag
I don't get it: who placed a cleanup tag on the article and why? There's no discussion on the talk page about this.
I would remove it myself, but I'm new to wiki and thus afraid to blunder. Kaarjuus 21:03, 25 January 2006 (UTC)
Removed the cleanup tag. Kaarjuus 23:22, 1 February 2006 (UTC)
[edit] take out "a lot"
in the opening. Its not good grammar.
- You know, it is the Wikipedia, where you can not only read articles, but edit them, too... ;) —Preceding unsigned comment added by TonyV (talk • contribs) 13:57, 20 October 2007 (UTC)
[edit] why does the "see also" point to unrelated framework applications?
There is no mention in any of the items as to their relation to Smarty; further, in all cases, each of the items listed do substantially different things than Smarty -- even though some of them contain Smarty as a component.
[edit] Smarty template Editors
What do you think about a part concerning the Smarty editors? I have written one: Smarty-Mode. Deboutv 14:10, 21 November 2006 (UTC)
[edit] Rewrite
I propose re-writing the second and third paragraphs to look like this:
Tags are directives for Smarty that are enclosed by delimiters. These directives can be variables, denoted by a dollar sign ($), functions, or logical or control flow statements. Smarty allows PHP programmers to define functions that can be accessed using Smarty tags.
This compartmentalization allows the presentation of a web page to change separately from the back-end, thus allowing applications to be developed in a more organized fashion. Using this development model, designers are hidden from the back-end coding and PHP programmers are hidden from the presentation coding. —The preceding unsigned comment was added by Pkrecker (talk • contribs) 22:40, 7 December 2006 (UTC).
[edit] Criticisms
I wonder whether it would be worthwhile mentioning some of the criticisms of Smarty. Namely that it's resource hungry for what most people use it for. —The preceding unsigned comment was added by Streety06 (talk • contribs) 22:05, 29 March 2007 (UTC).
- I would think thats reasonable, as long as you also put the counter-argument of the compilation step only happening once, when a template-file has changed. A link to PHP#Source_code_Encoders.2C_Optimizers_and_Accelerators would also be useful as a mention of best-practices for PHP in general which also speeds the general use. AlisterBulman
-
- -rant starts here- And I think that criticism does not need criticism. Smarty templates aren't any type of business solution. Embedding another "language" into templates and the additional php code is just a really huge waste of time. Is this a big difference for the user/!programmer: '<?php echo $var ?>' vs '{var}' ? -rant ends here- 193.151.115.16 15:06, 1 September 2007 (UTC)
- Do you have any citations of this? I'm not disagreeing, but if an application takes up so much as one extra CPU cycle, there will always be someone saying that it is "resource hungry." That's an extremely vague criticism. Do you have an article to point to about some project that failed because of it? Or some site that compares pages rendered using Smarty vs. pages rendered some other templating system or by raw php? I'm sorry, but just posting a criticism that says "it's resource hungry for what most people use it for" seems extremely subjective to me, and without something to back up the claim, sounds like it's just someone who happens to not like it. --TonyV 14:00, 20 October 2007 (UTC)
The use of {php} tags within templates are not normally needed and not recommended[1]. I don't believe it is good practice to promote them in the article when better, and safer options exist, like plug-in functions. AlisterBulman
[edit] Is it only for dummies??
I have been reading on CMS and Template management for a reasonable time. Here I found that there is no real information is given for a novice or someone who wants to use it on its personal website.
I found some missing sections as well. Such as Feature List, History, Usability, Compatibility, Critique, and most important some links to articles which can explain some one 'What to use?', 'Why to use?', and 'How to find resources?' If some one has the information I purely encourage the person to edit this page. Anyone having a suggestion or criticism please raise here.[sorry for not so good English] Dkcreatto 22:23, 14 August 2007 (UTC)
[edit] Removed commercial link
I removed the link to the NuSphere page on configuring PhpED for use with Smarty. It's not about Smarty itself, but about configuring a third-party commercial IDE for use with Smarty. As such, I don't think it's appropriate to have in the article, as it could be viewed as advertising a product. --TonyV 13:54, 20 October 2007 (UTC)
[edit] Which two files are they
It is not apparent what files, nor their purpose, are being referred to in the phrase "Since Smarty separates PHP from HTML, you have two files:" -- SEWilco (talk) 17:00, 10 December 2007 (UTC)