Author |
Message |
Topic: Outputfilter executed twice |
Hpatoio
Replies: 0
Views: 5131
|
Forum: 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: 4762
|
Forum: General Posted: Thu Mar 17, 2005 11:12 am Subject: Does a variable exist? |
Try with
{if isset($my_var)}
var is set !!!
{else}
var is NOT set !!!
{/if}
Ciao |
Topic: Does smarty have a "isset" function? |
Hpatoio
Replies: 2
Views: 6057
|
Forum: 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: 135064
|
Forum: 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: 5169
|
Forum: 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
I don't know what you mean, how do I call my custom_ ... |
Topic: Cache based on version_date |
Hpatoio
Replies: 2
Views: 5169
|
Forum: 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 (hard to guess)
The point is that the "detail page" makes a lot of m ... |
Topic: Config_load and sections |
Hpatoio
Replies: 2
Views: 5518
|
Forum: 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: 41695
|
Forum: 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 ?
Ciao
/Simone |
Topic: www.4evs.net |
Hpatoio
Replies: 0
Views: 8125
|
Forum: 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 !!
Ciao ciao
... |
Topic: How do I access my properties ? |
Hpatoio
Replies: 3
Views: 7154
|
Forum: 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: 7154
|
Forum: 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: 36987
|
Forum: 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 ...
Did you do something like that too ?? Or ...
Ciao ... |
Topic: Smarty and SPAW-editor |
Hpatoio
Replies: 18
Views: 36987
|
Forum: General Posted: Thu Jun 26, 2003 1:43 pm Subject: Finally ... |
Hej ... ok, sorry if I've been away 4 a while ...
I wanted to test my works before to spread it ... and now I think to have a stable and multi-domain version of SPAW
I'm going to write t ... |
Topic: Smarty and SPAW-editor |
Hpatoio
Replies: 18
Views: 36987
|
Forum: 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: 36987
|
Forum: 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 ... |
|