Model::setOptions
Setting option parameter
Description
public self Model::setOptions( array $options )
Arguments
Name | Data type | Default | Remarks |
---|---|---|---|
$options | array | Option parameter |
Example
Controller
$model = new Model();
$model->setOptions(array(
'table' => 'cms_news',
'id' => 'news_id',
'visible' => 'visible',
));
// Same with the following
$model = new Model(false, array(
'table' => 'cms_news',
'id' => 'news_id',
'visible' => 'visible',
));