Model::delete
Execute Logical Delete the record by specified primary ID
Description
public void Model::delete( mixed $id )
Arguments
Name | Data type | Default | Remarks |
---|---|---|---|
$id | mixed | Deleting target Primary ID |
Example
Controller
$model = new Model(false, array(
'table' => 'cms_news',
'id' => 'news_id',
'visible' => 'visible',
));
$model->delete(1);