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 61 matches
Smarty Forum Index
Author Message
  Topic: is there any database transaction support in PHP?
eadz

Replies: 2
Views: 5318

PostForum: General   Posted: Tue Apr 26, 2005 6:25 pm   Subject: is there any database transaction support in PHP?
Yes in PEAR ( pear.php.net )
  Topic: Assign within blocks
eadz

Replies: 2
Views: 4845

PostForum: General   Posted: Tue Mar 22, 2005 1:17 pm   Subject: Assign within blocks
Sweet!!! Works a treat!

Thanks a lot!
  Topic: Assign within blocks
eadz

Replies: 2
Views: 4845

PostForum: General   Posted: Tue Mar 22, 2005 12:30 pm   Subject: Assign within blocks
Hi,
I'm trying to make IF blocks.
e.g.

<?php
function smarty_block_myblock($params, $content, &$smarty, &$repeat) {
if(isset($content)) {
if( $params

I use it l ...
  Topic: Smarty validate without assign($_POST)
eadz

Replies: 3
Views: 12810

PostForum: Add-ons   Posted: Fri Mar 04, 2005 5:06 am   Subject: Smarty validate without assign($_POST)
encapsulate your post vars:

$smarty->assign('post',$_POST);

{$post.foo}

Will smarty validate still work if I do that?
  Topic: Smarty validate without assign($_POST)
eadz

Replies: 3
Views: 12810

PostForum: Add-ons   Posted: Fri Mar 04, 2005 4:42 am   Subject: Smarty validate without assign($_POST)
Hi,
SmartyValidate rocks!

One thing, is that you do $smarty->assign($_POST), which is kind of like global varibles... assigning all post varibles to a template.

This USUALLY won't cause a p ...
  Topic: PHP 4.3.10 Smarty not working ?
eadz

Replies: 10
Views: 15964

PostForum: General   Posted: Mon Dec 20, 2004 11:14 pm   Subject: PHP 4.3.10 Smarty not working ?
I called my hoster - Its not smarty's fault. They were still compiling zend optimizer.

after reboot - everything is working fine (Smarty 2.6.1)

Ah... maybe thats the problem they are talking ab ...
  Topic: PHP 4.3.10 Smarty not working ?
eadz

Replies: 10
Views: 15964

PostForum: General   Posted: Mon Dec 20, 2004 10:20 pm   Subject: PHP 4.3.10 Smarty not working ?
I got an error : illiegal ofset type in Smarty.class.php.. downgraded back to 4.3.9 no error. can the authors please please check 4.3.10 with smarty?
  Topic: bBlog - Smarty centric blogging software
eadz

Replies: 8
Views: 25057

PostForum: Showcase   Posted: Sun Apr 04, 2004 3:04 pm   Subject: bBlog - Smarty centric blogging software
Version 0.7 has been released!
0.7 has many many new features, improvements and fixes. Don't be scared by the version number, if we were microsoft we'd call it bBlog 2003. But we're not.
  Topic: Regex guru help needed : modifier.kses.php
eadz

Replies: 2
Views: 10861

PostForum: Plugins   Posted: Sat Jan 17, 2004 9:21 pm   Subject: Regex guru help needed : modifier.kses.php
ok then..
  Topic: how to eval smarty template code in php varible ?
eadz

Replies: 13
Views: 22338

PostForum: General   Posted: Sat Jan 17, 2004 8:48 am   Subject: how to eval smarty template code in php varible ?
I was thinking about the resource plugin..
If I could do
{include file="post:`$post.id` contents=`$post.body` timestamp=`$post.modified`}
that would mean it could compile the smarty tags in posts, ...
  Topic: Regex guru help needed : modifier.kses.php
eadz

Replies: 2
Views: 10861

PostForum: Plugins   Posted: Sat Jan 17, 2004 6:40 am   Subject: Regex guru help needed : modifier.kses.php



$template_tags = array(
"b" => array(),
"a" => array("title"=>array(),"href"=>array()),
"iframe" => array("width"=>array("maxval"=>200),"height"=>array("ma ...
  Topic: how to eval smarty template code in php varible ?
eadz

Replies: 13
Views: 22338

PostForum: General   Posted: Tue Jan 13, 2004 11:00 am   Subject: how to eval smarty template code in php varible ?
The code I posted above worked btw...

Hmm i seem to remember php's eval() was slow too. But we'll have to see. If peformance is a problem i can use the resource thing, but it'll mean quite a bit of ...
  Topic: bBlog - Smarty centric blogging software
eadz

Replies: 8
Views: 25057

PostForum: Showcase   Posted: Sun Jan 11, 2004 11:58 am   Subject: bBlog - Smarty centric blogging software
it would be cool, if your system will remberer, what I've checked and what I've typed in comments form. you can store my settings (name, email etc.) in cookies or sessions.

anyway, cool system Smile
...
  Topic: how to eval smarty template code in php varible ?
eadz

Replies: 13
Views: 22338

PostForum: General   Posted: Sun Jan 11, 2004 11:27 am   Subject: how to eval smarty template code in php varible ?
write a resource-plugin that fetches the posts from the db:

{include file="blogpost:$id"} . much better than eval Smile

see: http://smarty.php.net/manual/en/templates.from.elsewhere.php

The thin ...
  Topic: how to eval smarty template code in php varible ?
eadz

Replies: 13
Views: 22338

PostForum: General   Posted: Fri Jan 09, 2004 10:14 am   Subject: how to eval smarty template code in php varible ?
Hi,
I should have mentioned that I have the dummy template.. but It kind of seems silly to do that. I would prefer a pure php method..

The reason is so I can evaluate a blog post for smarty tags. ...
 
Page 1 of 5 Goto page 1, 2, 3, 4, 5  Next
All times are GMT
Jump to:  


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