How do I track my parent find function call in beforeFind() for CakePHP -


I am currently using KKPHP to filter my search queries based on the current logged in user. At the moment it feels good and everything is working smoothly, only one problem is that I should know where the function was started so that I can apply different query filters based on the parent search function call; Is there anyway to do this?

It seems like adding one of your models to your controllers / verbs is a bad idea.

Instead of trying to create a custom method in your model, you can find whatever signatures you need, and just find it from within and return its results as necessary.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -