Matt S Sun Apr 17 17:52:35 -0400 2011

Subject: Global callbacks

Hey guys

Just about to start using php AC, and I have a quick question that I hope you can answer.
If I was to make a global callbacks similar to the ones in the documentation, what would be the proper way to do this? So I don't have to repeat myself every time. Example of use: a log of all actions made in the app.

Thanks for you time!

Yoan B Mon Apr 18 09:39:22 -0400 2011

“a log of all actions made in the app”? PHP AR uses is open to query logging with you can use it too to log everything you want from “the app”.

You really should define “the app”.

Jaggi noyb Mon Aug 01 11:29:21 -0400 2011

To get around a lot of my issues I've had I created an extra class. So my models are currently:

MyTable extends CustomModel{}

CustomModel extends ActiveRecord\Model{}

Then I can do my extra things in the custom model. Doing this I've added custom functionality like truncate, multi inserts and row level caching.

Clay vanSchalkwijk Wed Sep 07 16:54:12 -0400 2011


I'm interested in your custom model. Could you share what you've done with multi-inserts and row level caching?