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 30 matches
Smarty Forum Index
Author Message
  Topic: using registerClass with function throws Smarty Compiler err
Jerc

Replies: 3
Views: 10698

PostForum: Bugs   Posted: Mon Oct 26, 2015 7:01 am   Subject: using registerClass with function throws Smarty Compiler err
Thanks for the reply.

I'll assign variables in tpl or php and use them.
  Topic: using registerClass with function throws Smarty Compiler err
Jerc

Replies: 3
Views: 10698

PostForum: Bugs   Posted: Fri Oct 23, 2015 7:59 am   Subject: using registerClass with function throws Smarty Compiler err
I'm not sure if this is a "Smarty Compiler: Syntax error in template" or i don't know how to var_dump a DateTime object.

Case 1 (working: entire array and item on position 0 is printed)
...
  Topic: {cycle} possible bug?
Jerc

Replies: 2
Views: 7887

PostForum: Bugs   Posted: Fri Aug 07, 2015 5:48 am   Subject: {cycle} possible bug?
I knew that there is a trick.

Thanks for your solution.
  Topic: {cycle} possible bug?
Jerc

Replies: 2
Views: 7887

PostForum: Bugs   Posted: Thu Aug 06, 2015 11:40 am   Subject: {cycle} possible bug?
I'm not sure if this is a bug or I am doing something wrong. I tried to control the cycle with 'advance' attribute. I set it to true when I want to change the color, but this happens on next iteration ...
  Topic: {extends} wrong template
Jerc

Replies: 3
Views: 8167

PostForum: Bugs   Posted: Tue Apr 07, 2015 9:51 am   Subject: {extends} wrong template

tpl/demo1/sub/home.tpl
{extends file="home.tpl"}
{block name="customText"}demo1/sub/home.tpl{/block}
should solve the problem.

Thanks for th ...
  Topic: {extends} wrong template
Jerc

Replies: 3
Views: 8167

PostForum: Bugs   Posted: Thu Apr 02, 2015 7:42 am   Subject: {extends} wrong template
I found very odd bug or i missed something in the templates.

Files:
tpl/demo1/home.tpl
<p>demo1/home.tpl</p>
<p>{block name="customText"}Custom Text @ demo1 ...
  Topic: {strip}, |strip as configuration
Jerc

Replies: 2
Views: 20879

PostForum: Feature Requests   Posted: Thu Oct 23, 2014 1:02 pm   Subject: {strip}, |strip as configuration
It works.
I only had to fix few JS lines (replace { } with {ldelim}{rdelim}).

This is my function:
function smarty_prefilter_stripFilter($source, $template)
{
// copied from sm ...
  Topic: {strip}, |strip as configuration
Jerc

Replies: 2
Views: 20879

PostForum: Feature Requests   Posted: Wed Oct 22, 2014 7:26 am   Subject: {strip}, |strip as configuration
All our templates starts and ends with {strip}{/strip} tag. When I have to debug something I have remove {strip}{/strip} and |strip tags from the template. It takes a lot of time to find whats wrong w ...
  Topic: Static function, unknown modifier
Jerc

Replies: 2
Views: 8194

PostForum: Bugs   Posted: Mon May 26, 2014 5:38 am   Subject: Static function, unknown modifier
It's working!
Thanks.
  Topic: Static function, unknown modifier
Jerc

Replies: 2
Views: 8194

PostForum: Bugs   Posted: Fri May 23, 2014 1:03 pm   Subject: Static function, unknown modifier
I have a tiny problem with my template and I'm not sure if this is a Smarty bug or I just made a mistake in the code.

PHP

// class
namespace WK;
class Utf {
public static toUtf($st ...
  Topic: {strip}{block}..
Jerc

Replies: 2
Views: 9014

PostForum: Bugs   Posted: Mon May 13, 2013 12:13 pm   Subject: {strip}{block}..
I think {block} tag should be stripped in extended file. Example:

This is my head.tpl file:
{strip}
<div id="header">
{block name="headerNavigation" ...
  Topic: Extended: html_select_date, html_select_time
Jerc

Replies: 0
Views: 6207

PostForum: Plugins   Posted: Sat Feb 23, 2013 9:17 am   Subject: Extended: html_select_date, html_select_time
Hi.

I needed to extend html_select_date and html_select_time. So, I'll share my work with you. I haven't tested it all, but it is working on my cases.

html_select_time:
hour_selected / Type: St ...
  Topic: Themes
Jerc

Replies: 2
Views: 10311

PostForum: Smarty Development   Posted: Fri Jun 15, 2012 5:35 am   Subject: Themes
It's working now.

Many thanks!
  Topic: Themes
Jerc

Replies: 2
Views: 10311

PostForum: Smarty Development   Posted: Wed Jun 13, 2012 2:38 pm   Subject: Themes
Hi.

Maybe you guys could solve my problem or give me the best solution.
I would like to achieve something like Drupal Theme system.

I have created default design:
/themes/default/
with files: ...
  Topic: html_select_date, extra parameters
Jerc

Replies: 6
Views: 10127

PostForum: Bugs   Posted: Fri May 25, 2012 6:06 am   Subject: html_select_date, extra parameters
Many thanks for very quick fix.
 
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