php - Phalcon 5 cannot load assets
one text
My repository
I just started on Phalcon, so the issue might be unrelated to Phalcon's version.
I created a new Phalcon 5.0.0RC4 repository and am following the steps on the phalcon 5 docs to add assets to my index page.
IndexController.php
<?php
use Phalcon\Mvc\Controller;
class IndexController extends Controller
{
public function indexAction()
{
$this->assets->addCss('css/global.css');
$this->assets->addJs('js/global.js');
}
}
index.phtml
<html>
<head>
<?php $this->assets->outputCss(); ?>
</head>
<body >
// a lot of stuff here
<?php $this->assets->outputJs(); ?>
</body>
</html>
Overall structure:
.
?��?�??�? blindhawk
?�??�??�? app
?�� ?�??�??�? controllers
?�� ?�� ?��?�??�?IndexController.php
?�� ?��?�??�? views
?�� ?��?�??�?Index
?�� ?��?�??�?index.phtml
?��?�??�? public
?�??�??�? css
?�� ?��?�??�?global.css
?�??�??�? img
?�??�??�? index.php
?��?�??�? js
?��?�??�?global.js
My index output
My index page on the inspector (Elements)
<!-- I removed the rest of the page code -->
<link rel="stylesheet" type="text/css" href="/css/global.css">
<script type="application/javascript" src="/js/global.js"></script>
Each containing this (Sources)
Exception: CssController handler class cannot be loaded
Exception: JsController handler class cannot be loaded
And no error output on the Console. How can I fix this?
Source