$cache
$cache : \CodeIgniter\Cache\CacheInterface
Instance of the current Cache Instance
Class Cell
A simple class that can call any other class that can be loaded, and echo out it's result. Intended for displaying small blocks of content within views that can be managed by other libraries and not require they are loaded within controller.
Used with the helper function, it's use will look like:
viewCell('\Some\Class::method', 'limit=5 sort=asc', 60, 'cache-name');
Parameters are matched up with the callback method's arguments of the same name:
class Class {
function method($limit, $sort)
}
Alternatively, the params will be passed into the callback method as a simple array if matching params are not found.
class Class {
function method(array $params=null)
}
$cache : \CodeIgniter\Cache\CacheInterface
Instance of the current Cache Instance
__construct(\CodeIgniter\Cache\CacheInterface $cache)
Cell constructor.
\CodeIgniter\Cache\CacheInterface | $cache |
Loading…