Note the upgraded forum! If you are experiencing issues logging in, you may need to reset your password which should send an email. If the email doesn't arrive, be sure to check your spam folder just in case.

Can't set Custom Module Table Actions Label

I have a custom module with following configuration.

$config['modules']['applications'] = array(
    'preview_path' => 'applications',
    'table_actions' => array(
        'PDF' => array(
            'func' => function ($fields) {
                return '<a href="' . site_url('applications/pdf/'. $fields['id']) . '" rel="noopener noreferrer" target="_blank">VIEW</a>';
            }
        ),
        'EDIT',
        'DELETE'
    )
);

When I goto my module's list page I don't see the PDF label, instead it is VIEW.

Comments

Sign In or Register to comment.