This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

lasellers3297
lasellers3297

Is there an equivalent for October that is aware of all front end pages, plugins, misc routes.php scattered about? Someway to tell what October thinks the routes should be? That would be useful for debugging issues.

that0n3guy
that0n3guy

Not tested, but can you do this: http://stackoverflow.com/a/18395300

Is that what your asking?

grrnikos
grrnikos

This works fine for me.

<?
function onStart() {
    $routeCollection = Route::getRoutes();

    foreach ($routeCollection as $value) {
        echo $value->getPath();
        echo "<br>";
    }
}
?>
lasellers3297
lasellers3297

That sort of works, on the frontend anyway. What I was talking about though was a complete list of all possible routes, cms, backend, etc. I was having an issue earlier that having a route list would have made debugging easier. Sorted it out without though.

1-4 of 4

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.