E
E
EVOSandru62015-02-23 11:52:54
Yii
EVOSandru6, 2015-02-23 11:52:54

How to get access to external actions in yii that are in a module?

Good afternoon,
My external actions are in the modules/crud/components folder . There is also an empty CrudModule . The module is included in config/main.php . But for some reason I simply write the code in the controller:

function actions(){
        return array(
            'index'=>array(
                'class'=>'DAdminAction',
                'view'=>'index',
                'ajaxView'=>'_grid'
            ),
    }

Then an error comes out stating that this class is not found, what to do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Tatarin, 2015-02-24
@EVOSandru6

write crud.components.DAdminAction
or write import for crud.components.* in config/main.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question