Welcome Guest, Not a member yet? Register   Sign In
How to use common library
#1

[eluser]Unknown[/eluser]
I made a common.php library in application/libraries/common.php

Here is my function...


function is_odd( $int )
{
return( $int & 1 );
}

Does this already exist in CI? What a good way to browse the preexisting functions?

I want to call this function in my view file in a foreach loop. Is that good practice?




Theme © iAndrew 2016 - Forum software by © MyBB