Welcome Guest, Not a member yet? Register   Sign In
What is this helper do?
#1

[eluser]solid9[/eluser]
Hi guys

I just got the codes from this link below,
http://codeigniter.com/wiki/Add_Edit_Views

The helper codes,
Code:
function field($validation, $database = NULL, $last = ''){
$value = (isset($validation)) ? $validation : ( (isset($database)) ? $database : $last);
return $value;
}

Let me try to guess.
If $validation is set then do nothing
else if $database is not set do $last.

What is the use of $database if it is already auto-loaded?
And what the hell is $last do?

So in you opinion what does the codes do?

Thanks in advanced.


Messages In This Thread
What is this helper do? - by El Forum - 03-25-2012, 01:14 AM
What is this helper do? - by El Forum - 03-25-2012, 02:11 AM
What is this helper do? - by El Forum - 03-25-2012, 02:34 AM
What is this helper do? - by El Forum - 03-25-2012, 02:53 AM
What is this helper do? - by El Forum - 03-25-2012, 07:06 AM
What is this helper do? - by El Forum - 03-25-2012, 08:58 AM
What is this helper do? - by El Forum - 03-25-2012, 09:07 AM
What is this helper do? - by El Forum - 03-25-2012, 09:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB