|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
timir_deep17 Smarty n00b
Joined: 09 Jul 2009 Posts: 1
|
Posted: Mon Jul 27, 2009 11:02 am Post subject: block plugins showing error |
|
|
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 |
|
|
|
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
|