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

Search found 25 matches
Smarty Forum Index
Author Message
  Topic: Outputfilter executed twice
Hpatoio

Replies: 0
Views: 3729

PostForum: Bugs   Posted: Wed Dec 13, 2006 2:23 pm   Subject: Outputfilter executed twice
Hello.

I've extended Smarty in my framework.

Here the display method

...
if (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER ['HTTP_X_REQUESTED_WITH' ...
  Topic: Does a variable exist?
Hpatoio

Replies: 1
Views: 3031

PostForum: General   Posted: Thu Mar 17, 2005 11:12 am   Subject: Does a variable exist?
Try with

{if isset($my_var)}
var is set !!! Very Happy
{else}
var is NOT set !!! Sad
{/if}

Ciao
  Topic: Does smarty have a "isset" function?
Hpatoio

Replies: 2
Views: 4004

PostForum: General   Posted: Wed Jan 05, 2005 8:23 am   Subject: Re: Does smarty have a "isset" function?
I was looking through the documentation, and it doesn't look like you have one...is this correct? I just want to test to see whether a smarty variable has been set or not within the template. Thanks ...
  Topic: RSS Feed Available
Hpatoio

Replies: 12
Views: 68347

PostForum: General   Posted: Thu Dec 23, 2004 8:29 am   Subject: Re: RSS Feed Available
Hello, is a couple of day I get an error when I try to read Smarty RSS feed.

I use "Sage" (http://sage.mozdev.org/) as reader.

If I open the "page" directly with FF I get:

XML Parsing Error& ...
  Topic: Cache based on version_date
Hpatoio

Replies: 2
Views: 3274

PostForum: General   Posted: Fri Oct 29, 2004 12:18 pm   Subject: Re: Cache based on version_date
hello,
you'd have to use your own cache-handler functions, then you know where you store that info and thus should know how to retrieve it Smile


I don't know what you mean, how do I call my custom_ ...
  Topic: Cache based on version_date
Hpatoio

Replies: 2
Views: 3274

PostForum: General   Posted: Fri Oct 29, 2004 8:10 am   Subject: Cache based on version_date
Hello.

- I have a page that list the content of a table and when the user click on "detail" the detail page is displayed Very Happy (hard to guess)

The point is that the "detail page" makes a lot of m ...
  Topic: Config_load and sections
Hpatoio

Replies: 2
Views: 3877

PostForum: General   Posted: Thu Jun 24, 2004 10:49 am   Subject: Config_load and sections
Hej, just a question

If in the functions config_load I do NOT specify any section like :
$smarty->config_load('my.conf');
Are ALL the section loaded and assigned to vars ?

I'm quite ...
  Topic: generic database template resource example
Hpatoio

Replies: 7
Views: 35341

PostForum: Tips and Tricks   Posted: Wed May 05, 2004 9:09 am   Subject: decleared twice ?
Hej boots ... I was just looking at your DB resource example.

But, is it right to have the function smarty_resource_userdb_timestamp twice ? Shocked

Ciao

/Simone
  Topic: www.4evs.net
Hpatoio

Replies: 0
Views: 5914

PostForum: Showcase   Posted: Sun Feb 29, 2004 7:39 pm   Subject: www.4evs.net
Well, you said wanted to know sites that use Smarty ?

www.4evs.net is a website I've developed for people involved in EVS - European Voluntary Service

I hope you'll like it !! Very Happy

Ciao ciao ...
  Topic: How do I access my properties ?
Hpatoio

Replies: 3
Views: 4837

PostForum: General   Posted: Fri Nov 07, 2003 9:49 am   Subject: How do I access my properties ?


the usual way, of course:

$smarty->assign('a', $smarty->a);
$smarty->assign('b', $smarty->b);



Ok, but I thought was possible to access directly my propriety in the .tpl file ...
  Topic: How do I access my properties ?
Hpatoio

Replies: 3
Views: 4837

PostForum: General   Posted: Thu Nov 06, 2003 8:38 pm   Subject: How do I access my properties ?
if I extend smarty class like :

class Smarty_MY extends Smarty {

var $a = "";
var $b = "";

function Smarty_MY() {
global $Root;

// Class Constru ...
  Topic: Smarty and SPAW-editor
Hpatoio

Replies: 18
Views: 28299

PostForum: General   Posted: Thu Oct 16, 2003 10:31 am   Subject: Smarty and SPAW-editor
do you still have the zip package???

I'll look for it this evening ... Rolling Eyes

Did you do something like that too ?? Or ...

Ciao ...
  Topic: Smarty and SPAW-editor
Hpatoio

Replies: 18
Views: 28299

PostForum: General   Posted: Thu Jun 26, 2003 1:43 pm   Subject: Finally ...
Hej ... ok, sorry if I've been away 4 a while ... Sad
I wanted to test my works before to spread it ... and now I think to have a stable and multi-domain version of SPAW Smile

I'm going to write t ...
  Topic: Smarty and SPAW-editor
Hpatoio

Replies: 18
Views: 28299

PostForum: General   Posted: Thu Jun 19, 2003 9:03 am   Subject: Finally
I've been toying with the SPAW control (thanks for pointing it out johannes -- SPAW is pretty cool) and have implemented a Smarty custom plugin function to wrap it. It works -- in degrees -- but I am ...
  Topic: Smarty and SPAW-editor
Hpatoio

Replies: 18
Views: 28299

PostForum: General   Posted: Tue Jun 17, 2003 2:40 pm   Subject: I'm trying too ... :|

In particular, I am trying to keep all of the server-side Spaw code base out of my web root and then I want to put the client libraries and resources (js, css, img files) in directories of my choosi ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT
Jump to:  


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