OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • Probem executing hello world
« previous next »
  • Print
Pages: [1]

Author Topic: Probem executing hello world  (Read 2677 times)

nikgreg99gmail.com

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
Probem executing hello world
« 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?
Logged

Fright

  • Hero Member
  • *****
  • Posts: 1777
  • Karma: 164
    • View Profile
Re: Probem executing hello world
« Reply #1 on: April 16, 2021, 06:38:08 pm »
Quote
Class 'OPNsense\HelloWorld\OPNsense\Base\IndexController' not found
Code: [Select]
class IndexController extends \OPNsense\Base\IndexControllerhttps://docs.opnsense.org/development/examples/helloworld.html?highlight=mvc#controller
Logged

fabian

  • Moderator
  • Hero Member
  • *****
  • Posts: 2769
  • Karma: 200
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: Probem executing hello world
« Reply #2 on: April 16, 2021, 08:53:53 pm »
Did you install the hello World plugin?
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • Probem executing hello world
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2