Skip to content
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

Open
vinao opened this issue Jun 17, 2014 · 3 comments
Open

I ran the application, but the field does not work? #16

vinao opened this issue Jun 17, 2014 · 3 comments

Comments

@vinao
Copy link

vinao commented Jun 17, 2014

Could someone help me??Please

@cornernote
Copy link
Owner

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.

@chiragjindal
Copy link

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.
Maybe it is not redirecting to that page?

@cornernote
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants