Welcome Guest, Not a member yet? Register   Sign In
Is a beforeFind on a Model a bad idea?
#6

(06-30-2020, 12:02 PM)kilishan Wrote: For things like searching and filtering for an index page you can always chain methods together.

Thanks. By creating the BaseModel and then extending all my models from that base I think the code is pretty clean and contained in the Model to offload the Controllers.
Reply


Messages In This Thread
Is a beforeFind on a Model a bad idea? - by tgix - 06-29-2020, 10:29 PM
RE: Is a beforeFind on a Model a bad idea? - by tgix - 06-30-2020, 12:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB