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

Research: Separate forms from controllers #6334

Closed
chillu opened this issue Nov 24, 2016 · 2 comments
Closed

Research: Separate forms from controllers #6334

chillu opened this issue Nov 24, 2016 · 2 comments
Assignees

Comments

@chillu
Copy link
Member

chillu commented Nov 24, 2016

  • Use existing FormFactory work in asset-admin to create a core API
  • Allow form action handling outside of controllers (through FormAction closures?)j
  • Identify forms without controller URLs (through injector references?)
  • Create a generic FormFactory which reads/writes from a single model
  • Outline how to implement more sophisticated FormFactory uses (e.g. saving to multiple models)
  • Decide how to pass in context (no direct controller references)
  • Decide how to deal with Form constructor (allow null for $controller argument?)
  • Validate approach through a controller similar to existing LeftAndMain->schema() endpoint (no dependency on GraphQL implementation)

Outcome: RFC for required PHP API additions and changes

@tractorcow
Copy link
Contributor

I've started drafting up this RFC at tractorcow#19.

@tractorcow
Copy link
Contributor

Published at #6362

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

2 participants