Add ViewHelper in view for injecting some basic classes in views
This commit is contained in:
4
app/Template/index.php
Normal file
4
app/Template/index.php
Normal file
@ -0,0 +1,4 @@
|
||||
<?php /** @var $this \Ardent\Undercurrent\View\BaseView */ ?>
|
||||
<?php $this->extends = '/base.php' ?>
|
||||
|
||||
Hello <a href="<?= $this->helper->getRoute(\App\Controller\HelloWorldController::class, 'hello') ?>">index</a>!
|
Reference in New Issue
Block a user