dancrew32 / marcel

The PHP 5.4 MVC with Shoes On: ActiveRecord, User/Session, Generators, SCSS, (Twitter Bootstrap) Integration, Workers, Cron Management, Image Manipulation, Caching, Git Management, Mail & Mail Parsing, OCR, Scraping, Selenium, Mustache, Markdown, Phone & Text Messaging, WebSockets, BitTorrent and much more!
5 stars 0 forks source link

use variable naming convention for private form builder automation #51

Open dancrew32 opened 11 years ago

dancrew32 commented 11 years ago

based on the variable suffix, determine form group placement and order.

eg for each get_defined_vars explode pop suffix switch on suffixes ternary each with null on group

dancrew32 commented 11 years ago

$form->groupify(get_defined_vars());

dancrew32 commented 11 years ago

for groupify, use on group form method http://php.net/call_user_func_array

dancrew32 commented 11 years ago

do it like call_user_func_array([$form "group"], [$thing_group, $thing_field, $thing_help]);