Closed cawa87 closed 8 years ago
When I'm tring to use filters:
public function init() { $this->getHeader('name')->getCell()->addDecorator('closure', array( 'closure' => function ($context, $record) { return $record->name ; } )); }
I've have error: ZfTable\Decorator\DecoratorPluginManager::get was unable to fetch or create an instance for cellclosure
Full table class - https://gist.github.com/CawaKharkov/6c72ca5bf741fa8f2573
Use 'callable' instead of 'closure'.
Official documentation is wrong on these pages, 'closure' is used instead of 'callable':
When I'm tring to use filters:
I've have error: ZfTable\Decorator\DecoratorPluginManager::get was unable to fetch or create an instance for cellclosure
Full table class - https://gist.github.com/CawaKharkov/6c72ca5bf741fa8f2573