leocavalcante/siler

Call to undefined function Siler\Route\get()

Closed this issue · 0 comments

I've installed Siler using composer and I am trying to do the default Hello World request. I'm getting this error:
Fatal error: Uncaught Error: Call to undefined function Siler\Route\get() in E:\xampp\htdocs\schelettw\app\controllers\GameController.php on line 35

And this is the content of the file that's giving the error

<?php
namespace App\Controllers;


use App\Models\Scores;
use Core\Controller;
use Core\FH;
use Core\H;
use Core\Router;
use Core\Session;


use Siler\Functional as λ; // Just to be cool, don't use non-ASCII identifiers ;)
use Siler\Route;
.
.
.


    public function rankingsAction() {
        Route\get('/', λ\puts('Hello World'));

        $scoresModel = new Scores();
        $this->view->easy = $scoresModel->findByDifficulty('easy');
        $this->view->medium = $scoresModel->findByDifficulty('medium');
        $this->view->hard = $scoresModel->findByDifficulty('hard');
        $this->view->render('game/rankings');
    }