WebLauncher / php-framework

WebLauncher Framework
0 stars 0 forks source link

Models: Map post data to model columns #6

Closed mihaivarga closed 9 years ago

mihaivarga commented 9 years ago

Add $this->map($map_array='',$from='post') to map POST / GET parameters for easy model usage by mapping form inputs name to database fields.

$map - will be the array to map data to columns if not provided $this->columns() will be used $from - 'post' or 'get' (default: post)