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

Split Controller into ControllerBase and Controller like Models #12

Closed
schmunk42 opened this issue Jun 23, 2014 · 7 comments
Closed

Split Controller into ControllerBase and Controller like Models #12

schmunk42 opened this issue Jun 23, 2014 · 7 comments

Comments

@schmunk42
Copy link
Owner

  • useful for regenerating CRUDs AND extending Controllers if needed
  • move controller code into somthing like mikehaertl/xcrudcontroller (Yii1)
@motin
Copy link
Contributor

motin commented Oct 6, 2014

Or generate traits, or generate action classes...

@schmunk42
Copy link
Owner Author

You're right :)

But where to place the traits or actions?

  • vendor/...
  • generate trait or action and place it into application
  • something else?

@motin
Copy link
Contributor

motin commented Oct 7, 2014

From the top of my head: What about using providers for actions/traits as well?

@schmunk42
Copy link
Owner Author

Yeah, should be no problem, just modify the templates.

@pafnow
Copy link

pafnow commented Nov 2, 2014

Hi worked on this today and end up with a working solution using traits.
However, it's quite a big change compared to the current way giiant is working.

If you are interested, i will try to create a GIT repository so you can see the result.

NB: I also corrected a few things that were not working if no Search Model was chosen to be generated. I basically looked into original yii2-gii default templates and adjust the one of giiant.

@pafnow
Copy link

pafnow commented Nov 2, 2014

I think I did it 😄

https://github.com/pafnow/yii2-giiant

@schmunk42
Copy link
Owner Author

available on master

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

No branches or pull requests

4 participants