Model::id
Get one record by specified primary ID
Description
public array Model::id( mixed $id )
Arguments
| Name | Data type | Default | Remarks | 
|---|---|---|---|
| $id | mixed | Target primary ID | 
Example
Controller
$model = new Model(false, array(
    'table'   => 'cms_news',
    'id'      => 'news_id',
    'visible' => 'visible',
));
$records = $model->id(1);