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

Giiant crud generator gen wrong view path #19

Closed
yiqing opened this issue Sep 11, 2014 · 1 comment
Closed

Giiant crud generator gen wrong view path #19

yiqing opened this issue Sep 11, 2014 · 1 comment

Comments

@yiqing
Copy link

yiqing commented Sep 11, 2014

the gii can determine the right path of the crud views .but giiant seems perform a wrong action !

even though i use this extension in yii2(i rewrite it for yii2):
WebApplicationEndBehavior

@larry-tx
Copy link

I'm having the same problem. Specifically, I've tried setting the View Path to app\views, backend\views, and several other options, as well as leaving it blank. When I leave it blank, I end up with a new folder directly under C:\ (I'm using a local host with the path C:\xampp\htdocs\site; boy is that way off!) If I use backend\views, the code generation message shows that all the views were generated under backend\views, but they are no where to be found. I mean, I did an extensive search for them, and they are truly no where to be found. This would be a great extension ...

Addendum: I finally got it to work by putting the full path (C:\xampp\htdocs\site\backend\views) in the View Path field, but then it ignored my EditorProvider setting (just created a text area field on _form).

If you tried that kind of path on the models, controllers, etc. it would totally bomb out. Could we get this a little more consistent?

Also, here's what I've entered for the EditorProvider:

\Yii::$container->set(
        'schmunk42\giiant\crud\providers\EditorProvider',
        [
            'columnNames' => ['description']
        ]
    );

I've tried putting it in the config (main.php) for both backend and common, as well as main-local.php for both. Nothing seems to work. (Yes, there is a column named description in the model.)

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

2 participants