Hello, i got WARNING error for static routes, when i use extra params!
Warning : array_flip(): Can only flip STRING and INTEGER values! in path.to.volt.phtml on line 11 Example:
<?php
/*
* id, title, ident
*/
$categories = Model\Categories::find();
#static route, category is object
foreach ($categories as $category) {
$router->add('/'.$category->ident, ['category' => $category])->setName('static_route.' . $category->id);
}
?>
Routes are generated, but with WARNING {{ link_to( [ 'for' : 'static_route.1' ], 'Show Invoice', 'class': 'edit-btn') }}
thanks :)