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 124 matches
Smarty Forum Index
Author Message
  Topic: cache, compile_check and force_compile
Dasher

Replies: 6
Views: 9770

PostForum: General   Posted: Tue May 29, 2007 12:49 pm   Subject: cache, compile_check and force_compile
You'll have to list the environment and versions you are using for people to understand your environment before they can answer.

On Windows Vista Ultimate (x64), PHP 5.2.2 (CGI using FastCGI), IIS ...
  Topic: non array values for from in foreach
Dasher

Replies: 3
Views: 12833

PostForum: Feature Requests   Posted: Mon May 28, 2007 11:43 am   Subject: non array values for from in foreach
The problem line appears to be in Smarty_Compiler.class.php:1203 in function _compile_foreach_start - where the code:

if (isset($name)) {
$foreach_props = ...
  Topic: Smarty 3.0: initial discussion
Dasher

Replies: 172
Views: 535349

PostForum: Smarty Development   Posted: Mon May 28, 2007 9:28 am   Subject: Smarty 3.0: initial discussion
damn spam again on the dummy website.

I've cleared it out - but it might be worth using some kind of wiki spam checker.

Doesn't appear to be much activity on the wiki.
  Topic: foreach and false $from values
Dasher

Replies: 7
Views: 12891

PostForum: General   Posted: Mon May 28, 2007 9:27 am   Subject: foreach and false $from values
As {foreach} should only work on arrays - I would guess that it would be a good idea for anything other than an array to trigger the {foreachelse}.
  Topic: foreach and false $from values
Dasher

Replies: 7
Views: 12891

PostForum: General   Posted: Mon May 28, 2007 9:00 am   Subject: foreach and false $from values
tbh - I always return an empty array rather than false - so I wouldn't know if the functionality had changed in .18 from previous versions.

Personally I prefer to use empty arrays - but it's a matt ...
  Topic: foreach and false $from values
Dasher

Replies: 7
Views: 12891

PostForum: General   Posted: Mon May 28, 2007 7:33 am   Subject: foreach and false $from values
ah ok.

If you need $results to to be to false then what you have shown will work.

{if $results}
{foreach from=$results......}
..........
...
  Topic: MovieWallpapers.net
Dasher

Replies: 1
Views: 11743

PostForum: Showcase   Posted: Sun May 27, 2007 10:43 pm   Subject: MovieWallpapers.net
Cool. Congrats!
  Topic: Assigning variables between php and tpl
Dasher

Replies: 3
Views: 19082

PostForum: General   Posted: Sun May 27, 2007 10:41 pm   Subject: Assigning variables between php and tpl
It was only if you wanted to to change the field names or if it didn't matter.

Your example does:

$partyMess = $partyInfo[0]["PartyDescription"];

which then becomes ...
  Topic: Assigning variables between php and tpl
Dasher

Replies: 3
Views: 19082

PostForum: General   Posted: Sun May 27, 2007 7:20 pm   Subject: Assigning variables between php and tpl
Apart from the issue of changing the field names - why not:

$smarty->assign("partyInfo",$partyInfo[0]);
  Topic: Problems with template_c directory
Dasher

Replies: 4
Views: 9519

PostForum: Installation and Setup   Posted: Sun May 27, 2007 8:05 am   Subject: Problems with template_c directory
While developing you can make life a little easier for yourself by using:

$smarty->forcecompile = true;
$smarty->debugging = true;

This will force Smarty to regenerate everything everytim ...
  Topic: Easily changing templates
Dasher

Replies: 6
Views: 17280

PostForum: Tips and Tricks   Posted: Sun May 27, 2007 6:52 am   Subject: Easily changing templates
ok - cool.
  Topic: Easily changing templates
Dasher

Replies: 6
Views: 17280

PostForum: Tips and Tricks   Posted: Sun May 27, 2007 6:24 am   Subject: Easily changing templates
Ok. But an input field needs to have it's data validated, the information needs to be processed or stored - bypassing the PHP wouldn't be a good idea.

In a general sense there are slightly more el ...
  Topic: Easily changing templates
Dasher

Replies: 6
Views: 17280

PostForum: Tips and Tricks   Posted: Sun May 27, 2007 5:45 am   Subject: Easily changing templates
You'd probably end up creating a number of complex problems using JS to 'bolt on' functionality - not to mention the long term maintainence problems you'd create.

How, for instance, does the value ...
  Topic: Problems with template_c directory
Dasher

Replies: 4
Views: 9519

PostForum: Installation and Setup   Posted: Sun May 27, 2007 5:37 am   Subject: Problems with template_c directory
Don't worry - those strangly names files are supposed to be there. The templates_c is the directory containing the compiled smarty templates. A good overview is here (information about compiling can ...
  Topic: fetch + secure_dir + php 5.2.2
Dasher

Replies: 10
Views: 15172

PostForum: General   Posted: Sat May 26, 2007 4:22 pm   Subject: fetch + secure_dir + php 5.2.2
If you drop this around the problem area of your code - it might help diagnose the problem:

// assuming you've already assigned your smarty object
$directories = $smarty->secure_dir;
$filename ...
 
Page 1 of 9 Goto page 1, 2, 3, 4, 5, 6, 7, 8, 9  Next
All times are GMT
Jump to:  


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