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 14 matches
Smarty Forum Index
Author Message
  Topic: Custom Cache ID's can not be replicated again.
Dice

Replies: 0
Views: 3289

PostForum: General   Posted: Wed Aug 01, 2012 3:44 pm   Subject: Custom Cache ID's can not be replicated again.
Currently I am using smarty on a website that has 100,000 and thousands of articles, so i decided to play with the ability to having caching on the pages, with the cache_id being an MD5 of the current ...
  Topic: Moving controller calls into template
Dice

Replies: 0
Views: 12974

PostForum: Tips and Tricks   Posted: Wed Jun 27, 2012 12:44 pm   Subject: Moving controller calls into template
I am aware that smarty advertises the separation between logic and style though i had an idea which could technically improve a system i am creating.

Many systems share the same controller for all ...
  Topic: filemtime() error at smarty_resource.php on line 352
Dice

Replies: 2
Views: 4711

PostForum: General   Posted: Fri Jun 15, 2012 2:54 pm   Subject: filemtime() error at smarty_resource.php on line 352
Call Thanks worked well.
  Topic: filemtime() error at smarty_resource.php on line 352
Dice

Replies: 2
Views: 4711

PostForum: General   Posted: Fri Jun 15, 2012 1:50 pm   Subject: filemtime() error at smarty_resource.php on line 352
Hi all,

So i am currently getting the following error because a templates in my directory does not exist.

This is because i use a fallback method along with a custom error handler.

My templat ...
  Topic: Declaring a variable late in the template
Dice

Replies: 7
Views: 10101

PostForum: General   Posted: Thu Apr 26, 2012 11:08 am   Subject: Declaring a variable late in the template
You can't assign variables from a subtemplate to a subtemplate which is already rendered. That's impossible.Ok no problemo ill try it with a postfilter Smile
  Topic: Declaring a variable late in the template
Dice

Replies: 7
Views: 10101

PostForum: General   Posted: Wed Apr 25, 2012 4:05 pm   Subject: Declaring a variable late in the template
Template code and its subtemplates are rendered in the order they appear.

If you assign a varibale with root scope in a subtemplate it can be seen by all subtemplate rendered afterwards but ofcaus ...
  Topic: Declaring a variable late in the template
Dice

Replies: 7
Views: 10101

PostForum: General   Posted: Tue Apr 24, 2012 8:48 am   Subject: Declaring a variable late in the template
No it's not possible to use a variable before it's declared.

Perhaps you should have a closer look into template inheritance

http://www.smarty.net/inheritanceIs there anyway to do this while kee ...
  Topic: print out value of assign from plugin before plugin is calld
Dice

Replies: 2
Views: 8810

PostForum: Plugins   Posted: Mon Apr 23, 2012 4:18 pm   Subject: Re: print out value of assign from plugin before plugin is c
Hi,

I am trying to develop an advertising system around smarty. So i came up with a plugin which when spitted out on the page looks like this:

{load_ad id=c4ca4238a0b923820dcc509a6f75849b&# ...
  Topic: print out value of assign from plugin before plugin is calld
Dice

Replies: 2
Views: 8810

PostForum: Plugins   Posted: Mon Apr 23, 2012 3:27 pm   Subject: print out value of assign from plugin before plugin is calld
Hi,

I am trying to develop an advertising system around smarty. So i came up with a plugin which when spitted out on the page looks like this:

{load_ad id=c4ca4238a0b923820dcc509a6f75849b&# ...
  Topic: error in sysplugins\smarty_internal_data.php on line 291
Dice

Replies: 3
Views: 10356

PostForum: Bugs   Posted: Mon Aug 22, 2011 4:38 am   Subject: error in sysplugins\smarty_internal_data.php on line 291
Hi i noticed that using {$filter|default:""} doesn't supress the notice error. Can you give this a test and tell me if this is true?
  Topic: error in sysplugins\smarty_internal_data.php on line 291
Dice

Replies: 3
Views: 10356

PostForum: Bugs   Posted: Wed Aug 17, 2011 7:08 am   Subject: error in sysplugins\smarty_internal_data.php on line 291
Hi,

My template appears to be running fine however, whenever i load this template i get the following error twice:

PHP Notice: Undefined variable: filters in C:\xxxxxxxxx\smarty_3\s ...
  Topic: Change {include file=''} to {include template=''}
Dice

Replies: 5
Views: 7100

PostForum: General   Posted: Tue May 11, 2010 4:13 am   Subject: Change {include file=''} to {include template=''}
Why do you need to make changes to the compiler?Well since its database driven it doesn't make much sense to say include file, so it use easier terminology i use get template Smile
  Topic: Change {include file=''} to {include template=''}
Dice

Replies: 5
Views: 7100

PostForum: General   Posted: Tue May 11, 2010 1:33 am   Subject: Change {include file=''} to {include template=''}
Why not use a custom template resource?

Yup, I've already got this set up + have changed the default resource to db: so now i don't need to call db: when calling templates.

I've went ahead and m ...
  Topic: Change {include file=''} to {include template=''}
Dice

Replies: 5
Views: 7100

PostForum: General   Posted: Tue May 11, 2010 1:22 am   Subject: Change {include file=''} to {include template=''}
Hey guys,

I'm currently looking at Smarty_Compiler.class.php

Lines 969-1045 refer to the {include} function. I've went ahead and made the changes and it seems like its working. However are there ...
 
Page 1 of 1
All times are GMT
Jump to:  


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