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 9 matches
Smarty Forum Index
Author Message
  Topic: Smarty to create MS Word documents.
terryjohnson

Replies: 10
Views: 37726

PostForum: Tips and Tricks   Posted: Fri May 28, 2004 7:37 pm   Subject: Smarty to create MS Word documents.
The code sample in the first article sets the Smarty delimilters to escaped curly braces '\{' and '\}', which is what { and } become when you save the document as RTF.

I think adding an image to an ...
  Topic: Smarty to create MS Word documents.
terryjohnson

Replies: 10
Views: 37726

PostForum: Tips and Tricks   Posted: Sun May 16, 2004 1:37 am   Subject: Smarty to create MS Word documents.
Very Happy This is a great trick.

Does anyone know whether it can be made to work for PDFs?
  Topic: Short Form of IF - {$var ? 'foo' : 'bar'}
terryjohnson

Replies: 3
Views: 39893

PostForum: Feature Requests   Posted: Mon Mar 15, 2004 9:16 pm   Subject: Short Form of IF - {$var ? 'foo' : 'bar'}
If it is not already possible to do this (as an undocumented feature), please could it be added?

It would be very useful for translating boolean values into human-readable texts. For example:
...
  Topic: Passing session objects to smarty
terryjohnson

Replies: 0
Views: 7235

PostForum: Tips and Tricks   Posted: Tue Feb 10, 2004 2:42 am   Subject: Passing session objects to smarty
If your application caches several objects in the user session that you also need to pass to Smarty for display, you can do it at the same time as checking the session hasn't been corrupted or timed o ...
  Topic: Using sessions with smarty?
terryjohnson

Replies: 5
Views: 8523

PostForum: General   Posted: Wed Feb 04, 2004 9:18 pm   Subject: Session object method call work in foreach, but not alone?
I don't understand why $smarty.session.object->getData() does not work but this does:


{foreach item=object from=$smarty.session.objectarray}
{$object->getData()} ...
  Topic: new version of fsize_format
terryjohnson

Replies: 2
Views: 10938

PostForum: Plugins   Posted: Wed Jan 07, 2004 6:23 pm   Subject: new version of fsize_format
Great stuff, but for my installation I changed it to use nbsp rather than a whitespace between the number and the units, so it doesn't do nasty linebreaks when used in a table.
  Topic: Precompiled templates
terryjohnson

Replies: 4
Views: 5440

PostForum: General   Posted: Wed Jan 07, 2004 5:09 pm   Subject: Precompiled templates
OK I figured out how to do it by having a short php script in my development environment which can be passed template names as an argument:
<?php
/**
* Smarty Compile
**/
require_once( ...
  Topic: Precompiled templates
terryjohnson

Replies: 4
Views: 5440

PostForum: General   Posted: Sat Jan 03, 2004 8:57 pm   Subject: Precompiled templates
Turning off compile is a good feature, but what I was asking was whether it is possible to do something from the command prompt like:

[user lib]$ php Smarty_Compile.php ./templates/foo.tpl

so th ...
  Topic: Precompiled templates
terryjohnson

Replies: 4
Views: 5440

PostForum: General   Posted: Sat Jan 03, 2004 5:21 pm   Subject: Precompiled templates
Is it possible to pre-compile templates?

I know this defeats some of the advantages of Smarty, but it would make it easier to operate on a production site where safe_mode is on, which is the case ...
 
Page 1 of 1
All times are GMT
Jump to:  


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