/**
  * handles structure request
  *
  * @param (string) structure slug
  * @param (string) slug
  */
 public function structureTreeRecord($structureSlugs, $slug)
 {
     // Add snippets, since this is a Frontend route.
     $this->app['htmlsnippets'] = true;
     $contenttype = $this->getContenttypeBySlug($slug);
     $frontend = new Bolt\Controllers\Frontend();
     return $frontend->record($this->app, $contenttype, $slug);
 }
Exemple #2
0
 public function testNormalBeforeHandler()
 {
     $app = $this->getApp();
     $request = Request::create('/');
     $app['request'] = $request;
     $app['config']->set('general/maintenance_mode', false);
     $controller = new Frontend();
     $response = $controller->before($request, $app);
     $this->assertNull($response);
 }