[CONTROLLER] Show dummy notices in main/all
This commit is contained in:
parent
8e30b9423b
commit
423129486c
@ -31,8 +31,6 @@
|
|||||||
namespace App\Controller;
|
namespace App\Controller;
|
||||||
|
|
||||||
use App\Core\Controller;
|
use App\Core\Controller;
|
||||||
use App\Core\Event;
|
|
||||||
use App\Util\Common;
|
|
||||||
|
|
||||||
class NetworkPublic extends Controller
|
class NetworkPublic extends Controller
|
||||||
{
|
{
|
||||||
@ -43,10 +41,9 @@ class NetworkPublic extends Controller
|
|||||||
|
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
Event::handle('Test', ['foobar']);
|
return [
|
||||||
|
'_template' => 'network/public.html.twig',
|
||||||
Common::config('url', 'shortener');
|
'notices' => ['some notice', 'some other notice', 'some other more diferent notice'],
|
||||||
|
];
|
||||||
return ['_template' => 'network/public.html.twig'];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -15,6 +15,12 @@
|
|||||||
{% block body %}{% endblock %}
|
{% block body %}{% endblock %}
|
||||||
{% block javascripts %}{% endblock %}
|
{% block javascripts %}{% endblock %}
|
||||||
|
|
||||||
<h1>Imagine some notices here</h1>
|
{% if notices is defined %}
|
||||||
|
{% for notice in notices %}
|
||||||
|
<div> {{notice}} </div>
|
||||||
|
{% endfor %}
|
||||||
|
{% else %}
|
||||||
|
No notices here.
|
||||||
|
{% endif %}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user