NextDom\Helpers\PrepareView::getContentFromRoute
Load routes file and show content depends of the route
Signature
private function getContentFromRoute(string
$routesFile,
string
$routeCode,
[array&
$pageData = NULL] )
Parameters
$routesFile
— string- Name of the route file in src directory
$routeCode
— string- Code of the route
$pageData
— array- Array with the content to pass to the render
Returns
- string|null
- Content of the route