mirror of
https://github.com/SophiaAtkinson/steamwidgets-web.git
synced 2025-06-27 16:47:42 -07:00
Initial commit
This commit is contained in:
42
app/controller/index.php
Normal file
42
app/controller/index.php
Normal file
@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Index controller
|
||||
*/
|
||||
class IndexController extends BaseController {
|
||||
const INDEX_LAYOUT = 'layout';
|
||||
|
||||
/**
|
||||
* Perform base initialization
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct(self::INDEX_LAYOUT);
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles URL: /
|
||||
*
|
||||
* @param Asatru\Controller\ControllerArg $request
|
||||
* @return Asatru\View\ViewHandler
|
||||
*/
|
||||
public function index($request)
|
||||
{
|
||||
//Generate and return a view by using the helper
|
||||
return parent::view(['content', 'index']);
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles URL: /generator
|
||||
*
|
||||
* @param Asatru\Controller\ControllerArg $request
|
||||
* @return Asatru\View\ViewHandler
|
||||
*/
|
||||
public function generator($request)
|
||||
{
|
||||
//Generate and return a view by using the helper
|
||||
return view('generator', []);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user