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 345 matches
Smarty Forum Index
Author Message
  Topic: Using a Smarty variable for another Smarty variable {$$var}
bimal

Replies: 5
Views: 394

PostForum: General   Posted: Sun Aug 08, 2010 5:11 pm   Subject: Steal smarty variable
Ok - I found, I didn't point to your problem correctly, earlier.

Here, you may take a look at how to steal a smarty variable:
http://www.smarty.net/forums/viewtopic.php?t=16230

Few months back ...
  Topic: How to sort this array ??
bimal

Replies: 2
Views: 290

PostForum: General   Posted: Sun Aug 08, 2010 4:02 pm   Subject: modify the source
ksort() is good option for PHP.

But I do not like to process data being dependent upon PHP only.
Alternatively, you can modify the source from where you build the array.

For example, if you use ...
  Topic: Using a Smarty variable for another Smarty variable {$$var}
bimal

Replies: 5
Views: 394

PostForum: General   Posted: Sun Aug 08, 2010 3:53 pm   Subject: different way to render
Do not use $$ within the template variables. It can be confusing to many users. You are within the template parser, not within <?php ... ?>.

Rather, you can try:

{assign var='dynamic' valu ...
  Topic: Suggestion : better concatenate
bimal

Replies: 1
Views: 346

PostForum: Feature Requests   Posted: Sun Aug 08, 2010 3:47 pm   Subject: nice
This sounds nice, but fits for modifiers only.
Several other kinds of plugins have &$smarty resource as one of the parameter. Sad

But concatenating the variables at once would be better than u ...
  Topic: CSS Compiler
bimal

Replies: 1
Views: 342

PostForum: Feature Requests   Posted: Sun Aug 08, 2010 3:39 pm   Subject: somebody needs to translate
Their documentation seems interesting, and their app is available for download at:
http://github.com/cloudhead/less/archives/master
Docs: http://lesscss.org/docs

I think, somebody has to translat ...
  Topic: Edit static templates
bimal

Replies: 3
Views: 335

PostForum: General   Posted: Thu Aug 05, 2010 4:26 pm   Subject: {include} service
Pain again - You can break your template's header/footers (the really reused contents) into different files. Then, you can have a single file which is NOT a part of your template, but you can edit the ...
  Topic: Cannot display the full table
bimal

Replies: 2
Views: 304

PostForum: General   Posted: Thu Aug 05, 2010 3:51 pm   Subject: Validate your HTML
This happens sometimes, due to human error - missing the correct HTML form. Make sure that your table's las column is good - bound with <td> and </td> tags.

Check your templates first. ...
  Topic: smarty messing with my html tag order
bimal

Replies: 2
Views: 263

PostForum: General   Posted: Thu Aug 05, 2010 3:46 pm   Subject: incomplete problem
Please send more details about your problem. Some PHP/Smarty codes, rather than the HTML output. Something is wrong while processing your data (may be looping through variables, or extracting the data ...
  Topic: Issues with HTML Element Names and Values.
bimal

Replies: 2
Views: 345

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: 345

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: 260

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: 244

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: 508

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: 510

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: 3606

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 ...
 
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