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 15 matches
Smarty Forum Index
Author Message
  Topic: Recaptcha with smarty
androidworkz

Replies: 4
Views: 25954

PostForum: Smarty Development   Posted: Tue Sep 13, 2011 7:39 pm   Subject: Recaptcha with smarty
What would be so difficult about doing that?

register.php

require_once('recaptchalib.php');

// Get a key from https://www.google.com/recaptcha/admin/create
$publickey = "< ...
  Topic: Open the view in a folder
androidworkz

Replies: 2
Views: 9790

PostForum: Smarty Development   Posted: Tue Sep 13, 2011 7:25 pm   Subject: Open the view in a folder
Two issues here... first, I think you have to pass the absolute path. How I accomplished this was to create a class that extends smarty and my own "display" method that returns the full path ...
  Topic: how to loop a variable frim 1 to 10 using smarty.
androidworkz

Replies: 3
Views: 10698

PostForum: Smarty Development   Posted: Tue Sep 13, 2011 7:10 pm   Subject: how to loop a variable frim 1 to 10 using smarty.
Like this:

<style>
#stars img {
float: left;
margin-right: 2px;
}
</style>

<div id="stars">
{while $customer_review > 0} ...
  Topic: Another odd issue with 3.1 DEV
androidworkz

Replies: 5
Views: 9972

PostForum: Smarty Development   Posted: Mon Aug 15, 2011 12:50 pm   Subject: Another odd issue with 3.1 DEV
Thanks for the prompt reply.

Two things were apparently awry for me. First, as you mentioned, I needed to review the cache control section of the documentation better.

Secondly, it appears that ...
  Topic: 3.1 DEV Bug with caching
androidworkz

Replies: 2
Views: 6288

PostForum: Smarty Development   Posted: Sun Aug 14, 2011 11:23 pm   Subject: 3.1 DEV Bug with caching
I understand that... but it should be refreshing them if the file modified time changes right?

On another note, I am beginning to wonder if the server admin added something for security purposes th ...
  Topic: Another odd issue with 3.1 DEV
androidworkz

Replies: 5
Views: 9972

PostForum: Smarty Development   Posted: Sun Aug 14, 2011 9:33 pm   Subject: Another odd issue with 3.1 DEV
How I integrated Smarty is that I extended the class with my "View" class.


class View extends Smarty {

public $section = 'index';
public $sections = array();
...
  Topic: Another odd issue with 3.1 DEV
androidworkz

Replies: 5
Views: 9972

PostForum: Smarty Development   Posted: Sun Aug 14, 2011 4:31 pm   Subject: Another odd issue with 3.1 DEV
Ok... just for clarification, I removed 3.1 and replaced it with 3.0.8 and am seeing the same problem. Razz

This is a deal breaker if I can't address it.
  Topic: Another odd issue with 3.1 DEV
androidworkz

Replies: 5
Views: 9972

PostForum: Smarty Development   Posted: Sun Aug 14, 2011 4:23 pm   Subject: Another odd issue with 3.1 DEV
I have written my own MVC framework and integrated Smarty as the template engine. I have a page controller and a post controller which pulls the content from the database based on the page slug:

Fo ...
  Topic: 3.1 DEV Bug with caching
androidworkz

Replies: 2
Views: 6288

PostForum: Smarty Development   Posted: Sun Aug 14, 2011 1:35 pm   Subject: 3.1 DEV Bug with caching
If I set $caching to false, the current DEV version still caches the compiled template. I am not sure if I am misunderstanding how this is supposed to work or not but I thought I should report it.
  Topic: Limit Smarty Functions
androidworkz

Replies: 8
Views: 11375

PostForum: Smarty 3   Posted: Mon Aug 08, 2011 7:58 pm   Subject: Limit Smarty Functions
The SVN Smarty_3_1_DEV branch has some bugfixes and improvments compared to RC1.

It's very likely that this will become the official release in a few days.

Thanks, I have switched to that bran ...
  Topic: Limit Smarty Functions
androidworkz

Replies: 8
Views: 11375

PostForum: Smarty 3   Posted: Mon Aug 08, 2011 5:54 pm   Subject: Limit Smarty Functions
Ok I got that working... do you expect alot of changes to RC1 yet? I am just wondering if I should strictly avoid include RC1 in a production product... This isn't a product for distribution... so I h ...
  Topic: Limit Smarty Functions
androidworkz

Replies: 8
Views: 11375

PostForum: Smarty 3   Posted: Mon Aug 08, 2011 5:08 pm   Subject: Limit Smarty Functions
In Smarty 3.1 you have real sandboxing.

There you can fill in the security class $allowed_tags with the list of tags which are lowed or $disabled_tags with the list of tags which are not allowed. ...
  Topic: Limit Smarty Functions
androidworkz

Replies: 8
Views: 11375

PostForum: Smarty 3   Posted: Mon Aug 08, 2011 5:07 pm   Subject: Limit Smarty Functions
I wonder if I can use unregisterPlugin() to remove the smarty compiler functions in the security policy constructor.
  Topic: Limit Smarty Functions
androidworkz

Replies: 8
Views: 11375

PostForum: Smarty 3   Posted: Mon Aug 08, 2011 4:44 pm   Subject: Limit Smarty Functions
Thanks... yes, I understood how to create the security object...

Sorry I wasn't more clear. I want to know how to limit the compiler functions. So far, I have figured out that there isn't a feature ...
  Topic: Limit Smarty Functions
androidworkz

Replies: 8
Views: 11375

PostForum: Smarty 3   Posted: Mon Aug 08, 2011 4:02 pm   Subject: Limit Smarty Functions
I searched and found some old threads that addressed this issue but they had links to documentation that no longer exists and I can't find anything in the documentation... maybe I am looking in the wr ...
 
Page 1 of 1
All times are GMT
Jump to:  


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