Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

block plugins showing error

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Tips and Tricks
View previous topic :: View next topic  
Author Message
timir_deep17
Smarty n00b


Joined: 09 Jul 2009
Posts: 1

PostPosted: Mon Jul 27, 2009 11:02 am    Post subject: block plugins showing error Reply with quote

I write a block

require_once("system/formManager.class.php");
function smarty_block_is_form_field_required($params,&$smarty){
if (formManager::_is_required($params['field'])){

return true;
}else{

return false;
}
}


function _is_required() return true or false;

then i wrote {is_form_field_required field="City"}yes{/is_form_field_required}

but it showing an error like this

Fatal error: Only variables can be passed by reference in C:\xampp\htdocs\realestatenew\templates_c\%%5A^5AC^5ACA0973%%input_form_HomesForSale.tpl.php on line 11

plese help me out in further progress
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Tips and Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


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