Fuel Categories Class
This class extends the Fuel_module class.
Properties Reference
| Property | Default Value | Description |
|---|---|---|
| protected | ||
| module | N/A | |
Function Reference [+]
$this->fuel->categories->find_by_slug('$slug')
Returns a single category record object based on a slug value.
Returns
array
Parameters
(string) $slug the slug value to query on
$this->fuel->categories->find_by_context('$context')
Returns an array of categories record objects based on a context value.
Returns
array
Parameters
(string) $context the context to query on
$this->fuel->categories->options_list(['$key'='slug'], ['$val'='name'])
Returns an associative array with the keys being the categories slug value and the values (label), being the name of the category.
Returns
array
Parameters
(string) $key key for option (string) $val value for option