Example to insert into database

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!

Читать далее...
 
Активность
Пока что здесь никого нет
Назад
Верх Низ