OPNsense Forum

English Forums => Development and Code Review => Topic started by: nikgreg99gmail.com on April 16, 2021, 06:31:37 PM

Title: Probem executing hello world
Post by: nikgreg99gmail.com on April 16, 2021, 06:31:37 PM
Running a little plugin I receive this error:  caught Error: Class 'OPNsense\HelloWorld\OPNsense\Base\IndexController' not found in /usr/local/opnsense/mvc/app/controllers/OPNsense/HelloWorld/IndexController.php:4 Stack trace: #0 [internal function]: unknown() #1 [internal function]: Phalcon\Loader->autoLoad('OPNsense\\HelloW...') #2 [internal function]: spl_autoload_call('OPNsense\\HelloW...') #3 [internal function]: Phalcon\Dispatcher->dispatch() #4 /usr/local/opnsense/www/index.php(72): Phalcon\Mvc\Application->handle() #5 {main} thrown in /usr/local/opnsense/mvc/app/controllers/OPNsense/HelloWorld/IndexController.php on line 4

What I have to do?
Title: Re: Probem executing hello world
Post by: Fright on April 16, 2021, 06:38:08 PM
QuoteClass 'OPNsense\HelloWorld\OPNsense\Base\IndexController' not found
class IndexController extends \OPNsense\Base\IndexController
https://docs.opnsense.org/development/examples/helloworld.html?highlight=mvc#controller
Title: Re: Probem executing hello world
Post by: fabian on April 16, 2021, 08:53:53 PM
Did you install the hello World plugin?