[eluser]JanDoToDo[/eluser]
I was wondering if the model gets the post data, or whether i have to assign the post data to a variable in the controller and then pass that to the model. i.e.
Can i do this:
(pseudo)
class model
funtion add
$name = this> input> post(name)
this >db> insert($name)
// ALTERNATIVELY
or do i need to do this
(now in the controller)
load> model >(addmodel)
$name = this> input> post(name)
this> addmodel> add_entry($name)