Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Search found 423 matches
Smarty Forum Index
Author Message
  Topic: Broke after updating Smarty 3.1.29 - [solved]
bimal

Replies: 3
Views: 5226

PostForum: Plugins   Posted: Fri Mar 11, 2016 6:29 pm   Subject: Fixed.
Thanks, I was able to continue when I modified my autoloader.
  Topic: Wrong link to download old versions of Smarty
bimal

Replies: 2
Views: 5733

PostForum: Feature Requests   Posted: Thu Mar 10, 2016 6:55 pm   Subject: Better to have those URLs in the Smarty home page.
http://www.smarty.net/ home page should better have the following download links instead of being generic:

Smarty 3.1.28 released
- https://github.com/smarty-php/smarty/releases/tag/v3.1.28

Sm ...
  Topic: Wrong link to download old versions of Smarty
bimal

Replies: 2
Views: 5733

PostForum: Feature Requests   Posted: Sun Mar 06, 2016 3:50 am   Subject: Wrong link to download old versions of Smarty
The new main website has wrong links to download the old versions of Smarty since 3.1.25. All the links point to same URL:

https://github.com/smarty-php/smarty/releases/latest

Would you please r ...
  Topic: Broke after updating Smarty 3.1.29 - [solved]
bimal

Replies: 3
Views: 5226

PostForum: Plugins   Posted: Sat Mar 05, 2016 10:35 pm   Subject: Broke after updating Smarty 3.1.29 - [solved]
Possibly the auto include feature stopped working after I updated to latest Smarty. My function {loginlink} was defined elsewhere as `function smarty_function_loginlink($params = array(), &$smarty ...
  Topic: Warnings over Smarty 3.1.16 codes (code cleanups suggestions
bimal

Replies: 0
Views: 6244

PostForum: Smarty 3   Posted: Sat Jan 11, 2014 7:11 pm   Subject: Warnings over Smarty 3.1.16 codes (code cleanups suggestions
I noticed that there are several warnings over the scripts in Smarty 3.1.16.
For example:

Variable 'saved_timestamp' might have not been defined
Variable 'scope_ptr' might have not been defined
...
  Topic: set dirs in include
bimal

Replies: 3
Views: 4298

PostForum: General   Posted: Fri Sep 07, 2012 11:18 pm   Subject: set dirs in include
Here is my working configuration for version 3.1-DEV:

- Full path assignment
- No method chaining (independent assignment)


require_once(__THIRD__.'/smarty/Smarty.class.php');
$smarty ...
  Topic: Some bad critics on smarty
bimal

Replies: 13
Views: 26571

PostForum: Article Discussions   Posted: Thu Sep 06, 2012 8:17 pm   Subject: Apply template engines correctly
Apply your template engines correctly, otherwise, it can create the problems and confusions. If you are comfortable to other kinds of template engines should not mean Smarty is difficult or should be ...
  Topic: Does not work with php output buffering function
bimal

Replies: 2
Views: 3784

PostForum: General   Posted: Thu Sep 06, 2012 7:57 pm   Subject: Check your error logs
Have you checked your php's own error log?
  Topic: set dirs in include
bimal

Replies: 3
Views: 4298

PostForum: General   Posted: Thu Sep 06, 2012 7:52 pm   Subject: This is not the way to configure your Smarty
No, This does not work at all.

Your line #3,4 will overwrite the configurations you have in smartyDirs.php, and it results as if you have no settings configured at all.

You probably wanted:
< ...
  Topic: Smarty vs Twig
bimal

Replies: 7
Views: 65044

PostForum: Article Discussions   Posted: Mon Aug 20, 2012 7:14 am   Subject: Templating Engines in PHP
Faben Potencier, the author of Twig benchmarked various other template engines here in the title: Templating Engines in PHP
http://fabien.potencier.org/article/34/templating-engines-in-php

Covers ...
  Topic: Tolerate sections in configLoad
bimal

Replies: 1
Views: 4002

PostForum: Bugs   Posted: Wed Aug 01, 2012 6:12 am   Subject: Tolerate sections in configLoad
Unfortunately, I found a code snippet:
$smarty->configLoad('configs.conf', true);
in some of my app.

The error I see is:
Warning: array_flip(): Can only flip STRING and INTEGER values ...
  Topic: {#CONFIGNAME#|modifier} works
bimal

Replies: 0
Views: 7504

PostForum: Tips and Tricks   Posted: Wed Jun 20, 2012 6:19 am   Subject: {#CONFIGNAME#|modifier} works
I was just wondering if I can use some modifiers with the config variables.
I was happy to find it working well.
The following independent code pieces result satisfactory.


{if #LIVE# eq 't ...
  Topic: Double pipes mistake - {'text'||print}
bimal

Replies: 1
Views: 5693

PostForum: Plugins   Posted: Thu Jun 07, 2012 11:26 am   Subject: Double pipes mistake - {'text'||print}
Probably it is the time to catch the double pipes as error.

{'text'||print}
The above link gives 1, (probably for true).

{'text'|print}
The above code might give error.

...
  Topic: Assign by referrence sometimes makes life easier
bimal

Replies: 0
Views: 6104

PostForum: Tips and Tricks   Posted: Wed Apr 18, 2012 8:35 am   Subject: Assign by referrence sometimes makes life easier
Take an example:

$page_details = array(
// Data loaded somewhere from the database
'template_file' => 'admin.php',
...
);

$smarty->assign('page', $page_details); ...
  Topic: Rendering string as template (.tpl file)
bimal

Replies: 1
Views: 8762

PostForum: General   Posted: Sat Mar 17, 2012 6:25 am   Subject: Rendering string as template (.tpl file)
How can I render a string as normal template?
In my case, I have a $template PHP variable, that is the contents of a .tpl file stored in database or somewhere else.

To display that template, I nee ...
 
Page 1 of 29 Goto page 1, 2, 3 ... 27, 28, 29  Next
All times are GMT
Jump to:  


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