Hello,
I am trying to set up a simple use case for Aura.view.
The legacy code currently in use also uses Aura Sql and to use it, the files are included in a base model file with require_once and seem to work fine.
To start small I downloaded a zip of View and call the files into page and followed the docs, putting everything but the content of the browse.php in one file.
I get no errors until I try to invoke the view with:
$output = $view->__invoke();
Here is the error:
HP Fatal error: Uncaught exception 'Aura\View\Exception\HelperNotFound' with message 'escape' in /Applications/XAMPP/xamppfiles/htdocs/aura_work/src/View/HelperRegistry.php:99
Stack trace:
#0 /Applications/XAMPP/xamppfiles/htdocs/aura_work/src/View/HelperRegistry.php(54): Aura\View\HelperRegistry->get('escape')
#1 [internal function]: Aura\View\HelperRegistry->__call('escape', Array)
#2 [internal function]: Aura\View\HelperRegistry->escape()
#3 /Applications/XAMPP/xamppfiles/htdocs/aura_work/src/View/AbstractView.php(208): call_user_func_array(Array, Array)
#4 /Applications/XAMPP/xamppfiles/htdocs/aura_work/templates/views/browse.php(3): Aura\View\AbstractView->__call('escape', Array)
#5 /Applications/XAMPP/xamppfiles/htdocs/aura_work/templates/views/browse.php(3): Aura\View\View->escape()
#6 /Applications/XAMPP/xamppfiles/htdocs/aura_work/src/View/TemplateRegistry.php(279): require('/Applications/X...')
#7 /Applications/XAMPP/xamppfiles/htdocs/aura_work/src/View/View.php(58): Aura\View\View->Aura\View\{closure}(Array)
#8 /A in /Applications/XAMPP/xamppfiles/htdocs/aura_work/src/View/HelperRegistry.php on line 99
Your help is appreciated,
- D