Welcome Guest, Not a member yet? Register   Sign In
function and method with CI controller
#1

[eluser]ranjitbd[/eluser]
what is the difference between function and method with CI controller
#2

[eluser]jedd[/eluser]
[quote author="ranjitbd" date="1251381015"]what is the difference between function and method with CI controller[/quote]

Within a controller, none.

A function is just a .. well, it's a function. The PHP.net site would describe this much better than I could, and with fewer words I suspect.

A method is what we call a function that exists within a class. (And since a controller is a class ...)

It's kind of like the distinction between an attribute and a variable ... Wink




Theme © iAndrew 2016 - Forum software by © MyBB