If you think out something put it here
http://aikiframework.org/wiki/Aiki_forms_2

We can remove aiki_forms table and put forms into a widget

(form( add {
   "table": "aiki_users",
   "pkey": "userid",
   "username": {"label": "Your Name:", "field": "username"},
   "password": {"label": "Your Password:", "field": "username"},
   "confirm_password": {"label": "Confirm Password", <<< HOW TO REF>>},
   "recaptcha": { ??? }
})form)

maybe instead of "form" "database", but if we have UPDATE/DELETE/INSERT
in (sql( who will need those? If users know SQL why force them to use
such a beast?

I think that only thing is needed in forms it it's server side part the
html forms users can do themself.

(if( $_POST['submit'] == 'add' &&
     $aiki->forms->fields_set('name', 'password') {

   (sql( INSERT INTO aiki_users (username, password) 
            VALUES('POST[name]', 'POST[password]') {

        <p>Your account was created successfully</p>
   )sql)

}else{

   <form method="post">
     <input name="user"/>
     <input name="password"/>
     <input type="submit" name="add" value="create user"/>
   </form>

})if)


On Thu, 19 Jan 2012 21:10:25 +0800
Jon Phillips <[email protected]> wrote:

> And they need a rewrite. In building a site they are by far the
> biggest and slowest piece. We need real CRUD bad. I'm thinking about
> now and how we can attack.
> 
> [email protected]
> http://fabricatorz.com
> +1.415.830.3884
> +86.187.1003.9974

-- 
Jakub Jankiewicz
twitter: @jcubic
www: http://jcubic.pl

_______________________________________________
Mailing list: https://launchpad.net/~aikiframework-devel
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help   : https://help.launchpad.net/ListHelp

Reply via email to