c::set('routes', array(
array(
'pattern' => 'my/awesome/url',
'action' => function() {
$data = array(
'foo' => 'bar'
);
return array('some/page', $data);
}
)
));
```
How can I get the data within the template? oO
Nothing I tried seems to work.
You should be able to access the data using the $foo
variable in that case.
1 Like
Ahhh, thanks! Why didn’t I think of that