Welcome Guest, Not a member yet? Register   Sign In
user validation_errors(); in smarty template
#2

I fix this problem, I created this smarty's plugin that it can read the function Wink

functions.validation_errors.php
PHP Code:
<?php

function smarty_function_validation_errors($params,&$smarty) {
if (!
function_exists('validation_errors')) {
//return error message in case we can't get CI instance
if (!function_exists('get_instance')) return "Can't get CI instance";
$CI= &get_instance();
$CI->load->helper('form');
}

return 
validation_errors(); 
}
?>
Reply


Messages In This Thread
RE: user validation_errors(); in smarty template - by StratoKyke - 04-28-2015, 08:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB