Where to place functions that work with database |
Create a class or two that encapsulates your business rules. Put them in the Library folder. Then you can use them in your controller and keep your controllers slim.
Simpler is always better
|
Messages In This Thread |
Where to place functions that work with database - by pcasalegno - 05-07-2019, 01:13 PM
RE: Where to place functions that work with database - by donpwinston - 05-07-2019, 05:05 PM
RE: Where to place functions that work with database - by pcasalegno - 05-07-2019, 07:44 PM
RE: Where to place functions that work with database - by php_rocs - 05-07-2019, 07:01 PM
RE: Where to place functions that work with database - by pcasalegno - 05-07-2019, 07:46 PM
RE: Where to place functions that work with database - by MGatner - 05-14-2019, 07:56 AM
|