CodeIgniter Forums

Full Version: function recursiva!....
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]01munrra[/eluser]
hello!!!...

I tell them, have any idea how to make a recursive function with IC??

El Forum

El Forum

[eluser]01munrra[/eluser]
yes, but at the level of codeigniter? you have?

El Forum

[eluser]skunkbad[/eluser]
Do you want to learn how to make a recursive function in a class? There's really no difference between a recursive function in CI vs procedural programming, with the exception that you can hold values in class members. If you are just looking for a tutorial on how to make a basic recursive function, then you should try Google.

El Forum

[eluser]Reneesh T K[/eluser]
We can see a sample recursive function for getting childs of a category in

http://myphplibrary.blogspot.in/2011/07/listing-subcategories-or-chilld.html