Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Dedicated server web hosting provided by Guru-host.eu.
Search found 337 matches
Smarty Forum Index
Author Message
  Topic: Issues with HTML Element Names and Values.
bimal

Replies: 2
Views: 185

PostForum: Feature Requests   Posted: Thu Jul 15, 2010 8:13 pm   Subject: I have upgraded it
I have the upgraded version of Smarty, and later one works Smile

However, I am converting to underscores as well for better management, and no such conflicts.

Thanks U. T.
  Topic: Issues with HTML Element Names and Values.
bimal

Replies: 2
Views: 185

PostForum: Feature Requests   Posted: Thu Jul 15, 2010 6:32 pm   Subject: Issues with HTML Element Names and Values.
I can write HTML Element as:
<input type="text" name="subdomain-name" value="{$smarty.post.subdomain-name}">
I can use $_POST['subdomain-name'] successfully.

Y ...
  Topic: Template display {section} instead of proper data
bimal

Replies: 1
Views: 160

PostForum: General   Posted: Wed Jul 14, 2010 10:18 am   Subject: Few things
Clear the compiled files and give a try again. To be safe, just backup your complied files.

It looks that your server environment has changed. Try to error_reporting(E_ALL) and see the PHP's error ...
  Topic: install question about paths and file paths
bimal

Replies: 2
Views: 191

PostForum: General   Posted: Tue Jul 13, 2010 9:32 pm   Subject: just tell it once where your template_c is.
Location of templates_c (I mean, $smarty->compile_dir's default value) is always relative to your PHP scripts. It does not read the directory path from its own.

So, to be safe, you can always us ...
  Topic: Variable from PHP and comiling problem.
bimal

Replies: 4
Views: 316

PostForum: Tips and Tricks   Posted: Tue Jul 13, 2010 8:38 pm   Subject: Thats not true.
Few comments:
{$if} is NOT a part of Smarty related things.
You are confusing with {if}, or mistyped it.

Anything you put in $content should appear as {$Code}.
So, I guess, your PHP's value of $ ...
  Topic: HTTP Header Redirect
bimal

Replies: 2
Views: 338

PostForum: General   Posted: Sat Jul 10, 2010 9:53 pm   Subject: add a different line
Your problem is not related to Smarty.
But this may help you:

You need to a add some more lines in your .htacces to point old link to new one. Try:


RewriteCond %{QUERY_STRING} id=&# ...
  Topic: How to use SMARTY variables in JavaScript
bimal

Replies: 12
Views: 3269

PostForum: Tips and Tricks   Posted: Fri Jul 09, 2010 1:22 pm   Subject: use them in function call.
You can pass things like {$user.name} in your js function all.

eg. (the javascript function)
function showConfigTool(user_name)
{
// write no literal tags.
// wirte no smarty v ...
  Topic: How to use SMARTY variables in JavaScript
bimal

Replies: 12
Views: 3269

PostForum: Tips and Tricks   Posted: Thu Jul 08, 2010 10:01 pm   Subject: use unobtrusive scripting
Instead, use:
<script src="showConfigTool.js"></script>

Use debug in opera or in firefox. Once you execute a javascript buggy page, they will report you the exact error messa ...
  Topic: Loose and strong email address ecurity
bimal

Replies: 0
Views: 163

PostForum: Tips and Tricks   Posted: Thu Jul 08, 2010 11:01 am   Subject: Loose and strong email address ecurity
I am referring two plugins here, <?php
$smarty->assign('email', 'email@domain.tld');
?>

Loosely protected email address, by replacing dot and at signs. TPL:
{$email|email&# ...
  Topic: Regular Expressions within the templates
bimal

Replies: 4
Views: 339

PostForum: Tips and Tricks   Posted: Wed Jul 07, 2010 4:32 pm   Subject: Use a file full with functions
Yes - every call to different modifiers or any other plugins will impact the performance. Access to every single extra fill will slow down.

One tweak would be to include a single big function funct ...
  Topic: Regular Expressions within the templates
bimal

Replies: 4
Views: 339

PostForum: Tips and Tricks   Posted: Wed Jul 07, 2010 12:04 pm   Subject: Use this within the php codes only
If you think, it should be done within the php code, you are right. I just wanted to show the hidden power of the template tags.

If you need multiple themes, just format the $word variable within t ...
  Topic: Regular Expressions within the templates
bimal

Replies: 4
Views: 339

PostForum: Tips and Tricks   Posted: Wed Jul 07, 2010 11:59 am   Subject: Regular Expressions within the templates
Say, I have a word, "batch-scripts", and I want to print it as "Batch Scripts". I would like regular expressions replace a dash into space, and apply ucwords() behaviour.

It is ...
  Topic: Secure way to pass value from HTML to php
bimal

Replies: 4
Views: 414

PostForum: General   Posted: Wed Jul 07, 2010 6:49 am   Subject: Use the other ways
First, few suggestions:

* Do not use {php}...{/php} tags. Instead, do them within your real php codes.
* New version of Smarty works without needs of having to write {literal} tags.
* window.open ...
  Topic: WHY OH WHY
bimal

Replies: 3
Views: 522

PostForum: Testimonials   Posted: Sun Jul 04, 2010 10:04 pm   Subject: There is a need
I would just say - if there weren't the needs, Smarty would not have come.
It is how you use it. You learned the syntaxes already does not mean that the client too should learn it.

Money paid to f ...
  Topic: callable modifier
bimal

Replies: 4
Views: 254

PostForum: General   Posted: Sun Jul 04, 2010 9:08 pm   Subject: Yes, even shorter
Yes - thanks for the reminder.
Now the code is even shorter, and as exactly as what I wanted for.

Smile
 
Page 1 of 23 Goto page 1, 2, 3 ... 21, 22, 23  Next
All times are GMT
Jump to:  


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