Skip to content
Snippets Groups Projects
Commit 7b9929e4 authored by Brett Bieber's avatar Brett Bieber
Browse files

Add a few convenience global vars

parent ec39028e
Branches
Tags
No related merge requests found
......@@ -28,6 +28,7 @@ $catalog = new Controller($router->route($_SERVER['REQUEST_URI'], $_GET));
// Now render what the user has requested
$savvy = new OutputController($catalog->options);
$savvy->addGlobal('catalog', $catalog);
$savvy->addGlobal('controller', $catalog);
$savvy->addGlobal('course_search_driver', new CourseSearch\DBSearcher());
echo $savvy->render($catalog);
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment