I have a route which matches a pattern and ends like this (a shorter version of it):
$data = array(
'template' => 'image',
);
site()->visit($page->uri(), 'en');
return array($page->uri(), $data);
die;
I’ve read some threads about it but not found a solid solution to it.
Questions
- How can I send the data in a route to a model?
- As a bonus, add how to do the same to a controller?
- Models are loaded first and then controllers inherit what comes out of that?