Can't use costum library |
Hello,
I'm a newbie to this framework and I wanted to create a simple library and load it into a Controller. I created a library called "GmodServerAction.php" in "Libraries": PHP Code: <?php Now I'm loading it in my Home-Controller: PHP Code: <?php namespace App\Controllers; When I'm trying to open the Homepage it just says: Class 'App\Libraries\GmodServerAction\GmodServerAction' not found Any idea? (Btw I'm using XAMPP)
namespace = path
So change to: namespace App\Libraries; Learning CI4 from my works, from errors and how to fix bugs in the community Love CI & Thanks CI Teams
|
Welcome Guest, Not a member yet? Register Sign In |