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

Model Form and Database creation #1

Open
dantestopp opened this issue Nov 18, 2015 · 1 comment
Open

Model Form and Database creation #1

dantestopp opened this issue Nov 18, 2015 · 1 comment

Comments

@dantestopp
Copy link
Owner

The user should be able to define an array with information for each model.
Based on this information hulk should generate database tables, forms and form validation.

Example:

class example{

  public $_filleable = [
     "username" => [
         "type" => "Varchar(20)",
         "required" => true
     ],
     "role" => [
         "type" => "Int(10)",
         "required" => true,
         "form" => [
             "type" => "select",
             "options" => [
                 ["name" => "Admin", "value" => 30],
                 ["name" => "User", "value"=>10]
             ]
         ]
     ]
  ]

}
@KCreate
Copy link

KCreate commented Sep 16, 2016

k

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