Sorry for newbie question, but is there an example on how to insert and get data from the database via controller logic? If using
$this->filter() is that sufficient enough to insert into the database directly, or should an additional method be called to help with sanitize input prior to insert into the database (i.e. prevent sql injection)?
Cheers!
$this->filter() is that sufficient enough to insert into the database directly, or should an additional method be called to help with sanitize input prior to insert into the database (i.e. prevent sql injection)?
Cheers!
Last edited: