-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I ran the application, but the field does not work? #16
Comments
Hello, To track field changes add AuditFieldBehavior to your CActiveRecord behaviors() functions. class Post extends CActiveRecord
{
public function behaviors()
{
return array(
'AuditFieldBehavior' => array(
// Path to AuditFieldBehavior class.
'class' => 'audit.components.AuditFieldBehavior',
// Set to false if you just want to use getDbAttribute and other methods in this class.
// If left unset the value will come from AuditModule::enableAuditField
'enableAuditField' => null,
// Any additional models you want to use to write model and model_id audits to. If this array is not empty then
// each field modifed will result in an AuditField being created for each additionalAuditModels.
'additionalAuditModels' => array(
'Post' => 'post_id',
),
// A list of values that will be treated as if they were null.
'ignoreValues' => array('0', '0.0', '0.00', '0.000', '0.0000', '0.00000', '0.000000', '0000-00-00', '0000-00-00 00:00:00'),
),
);
}
} Let me know if it's still not working. |
i ran the application /audit and all buttons display i.e. error,field,log,request but when I click the buttons the requested page does not open. |
Hello @chiragjindal, This is really difficult to debug with so little information. Add me to skype (username cornernote) and I will help you via teamviewer. |
Could someone help me??Please
The text was updated successfully, but these errors were encountered: