Welcome Guest, Not a member yet? Register   Sign In
organizing private functions
#1

[eluser]Insteps[/eluser]
I have books, authors, sellers controllers. In controllers I have some private functions like
Code:
_setBookByAuthor($a) {
...
}

The function calls a common model function, and some helper functions for text manipulations and sets appropriate output in an array.

Incidentally this function became a bit generic and could be used from all controllers.

Is there a way of defining these kind of functions once so maintenance becomes easier?

Thanks.


Messages In This Thread
organizing private functions - by El Forum - 09-14-2008, 06:55 AM
organizing private functions - by El Forum - 09-14-2008, 07:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB