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

Search found 31 matches
Smarty Forum Index
Author Message
  Topic: Why "Smarty" team do not update website design?
CrazyTemplate

Replies: 22
Views: 4543

PostForum: General   Posted: Sat Jul 07, 2018 10:53 am   Subject: Why "Smarty" team do not update website design?
Based on your childish reply, I now understand why smarty.net looks so horrible.

I wish you all the best, in your future endeavours.
  Topic: Why "Smarty" team do not update website design?
CrazyTemplate

Replies: 22
Views: 4543

PostForum: General   Posted: Sat Jul 07, 2018 10:10 am   Subject: Why "Smarty" team do not update website design?
I have to agree with the OP. The smarty.net website is horrible.

If you see it without an ad blocker like uBlock Origin, then the smarty website looks like a fake/hacked site with all sorts of horr ...
  Topic: Nyx - static website page generator (based on Smarty)
CrazyTemplate

Replies: 2
Views: 3225

PostForum: General   Posted: Sun Oct 16, 2016 9:05 am   Subject: Nyx - static website page generator (based on Smarty)
I've updated Nyx and added a feature to pre-compress css and javascript files with GZIP. Thus, serving static content faster on web servers that have been setup to serve compressed content (like Apach ...
  Topic: Nyx - static website page generator (based on Smarty)
CrazyTemplate

Replies: 2
Views: 3225

PostForum: General   Posted: Tue Jun 14, 2016 5:22 pm   Subject: Nyx - static website page generator (based on Smarty)
I've added a new feature, now Nyx may execute rsync to upload the generated site to the server automatically.
  Topic: Smarty speed benchmark
CrazyTemplate

Replies: 23
Views: 14091

PostForum: General   Posted: Thu Feb 18, 2016 6:30 pm   Subject: Smarty speed benchmark
v.laios, please don't feed the local troll Wink

he is just another mean little person who replies to everyone that they are just wrong, without giving answers. just ignore him.

*edit*
I forgot to ...
  Topic: My smarty-gettext 'Hello world' sample is not working
CrazyTemplate

Replies: 2
Views: 3335

PostForum: General   Posted: Mon Feb 15, 2016 9:52 pm   Subject: My smarty-gettext 'Hello world' sample is not working
First of all, download and start using Smarty v3.

You are probably not loading Smarty correctly, take a look how I do it, here:
https://github.com/noumenia/nyx/blob/master/library/templatefactory. ...
  Topic: Array Tree Variables
CrazyTemplate

Replies: 5
Views: 2877

PostForum: General   Posted: Mon Feb 15, 2016 9:47 pm   Subject: Array Tree Variables
It is not very clear what your array looks like, but I'll give it a try anyway:

$array['cart'][3]['sku']

But it may be wrong since you didn't post the entire thing. Try again but without any bra ...
  Topic: Select Boxes and Radio Button Value Setting
CrazyTemplate

Replies: 7
Views: 5376

PostForum: General   Posted: Mon Feb 15, 2016 7:29 pm   Subject: Select Boxes and Radio Button Value Setting
{html_options} only create <option> tags to the best of my knowledge.

Apparently not. When the "name=" argument is used, it generates a full select.

Quote from the docs:

The f ...
  Topic: Select Boxes and Radio Button Value Setting
CrazyTemplate

Replies: 7
Views: 5376

PostForum: General   Posted: Mon Feb 15, 2016 2:42 pm   Subject: Select Boxes and Radio Button Value Setting
I believe that the {html_options} function creates the ENTIRE select tag, so what you write would generate:

<select>... <select></select></select>

which is broken html.
...
  Topic: Foreach - Do something when value changes ??
CrazyTemplate

Replies: 5
Views: 3065

PostForum: General   Posted: Mon Feb 15, 2016 2:36 pm   Subject: Foreach - Do something when value changes ??
So you currently have something like this?


{foreach $VAR as $V}

{if $V != $PREVIOUS}

do something

{else}

do something else
...
  Topic: Nyx - static website page generator (based on Smarty)
CrazyTemplate

Replies: 2
Views: 3225

PostForum: General   Posted: Fri Feb 12, 2016 2:59 pm   Subject: Nyx - static website page generator (based on Smarty)
There are loads of static page generators, all of them based on some sort of templating engine. But none of them supported Smarty.

So... I had some free time and I coded my own in PHP and Smarty.
...
  Topic: Consider tidy 5.0 for {strip}
CrazyTemplate

Replies: 2
Views: 4287

PostForum: Smarty Development   Posted: Wed Feb 03, 2016 1:34 am   Subject: Consider tidy 5.0 for {strip}
Many years ago we used 'tidy' which is an HTML parser/cleaner/optimizer/minifier. Unfortunately, at around 2008 the project died away and web standards moved on to HTML5, which is not supported by tid ...
  Topic: Complex child template includes with cache
CrazyTemplate

Replies: 4
Views: 3008

PostForum: General   Posted: Thu Nov 05, 2015 10:23 pm   Subject: Complex child template includes with cache
Thank you for your quick reply!

I did read, but I think I don't quite understand some details and I'm getting confused about inheritance.

The {include} function as per the documentation example ...
  Topic: Complex child template includes with cache
CrazyTemplate

Replies: 4
Views: 3008

PostForum: General   Posted: Thu Nov 05, 2015 9:28 pm   Subject: Complex child template includes with cache
Hello,

I have a complex template structure and I would appreciate some help with caching.

I load a main template (which has a header and a footer) via:


$subTemplate = "homepage.html&qu ...
  Topic: Does not clear cache...
CrazyTemplate

Replies: 4
Views: 3563

PostForum: General   Posted: Wed Jul 09, 2014 5:17 pm   Subject: Does not clear cache...
Could it be that I load Smarty from different directory locations?

the site runs like: domain.com/product.php
which loads Smarty with:
$smarty = new Smarty();
$smarty->setTemplateDir(array('. ...
 
Page 1 of 3 Goto page 1, 2, 3  Next
All times are GMT
Jump to:  


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