Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Fatal error: Uncaught Error: Class 'TaskController' not found in /Users/xyz/var/www/html/crud/index.php:7 Stack trace: #0 {main} thrown in /Users/xyz/var/www/html/crud/index.php on line 7
- /index.php
- <?php
- require dirname(__DIR__).'/vendor/autoload.php';
- use App\http\Controllers\TaskController;
- new TaskController();
- _____________________________________________
- src/http/Controllers/Controller.php
- <?php
- namespace App\http\Controllers;
- abstract class Controller
- {
- public function __construct()
- {
- echo "test";
- }
- public function index (){}
- public function create (){}
- public function store (){}
- public function show (){}
- public function edit (){}
- public function update (){}
- public function delete (){}
- }
- _____________________________________________
- src/http/Controllers/TaskController.php
- <?php
- namespace App\http\Controllers;
- class TaskController extends Controller
- {
- public function index (){}
- public function create (){}
- public function store (){}
- public function show (){}
- public function edit (){}
- public function update (){}
- public function delete (){}
- }
- _____________________________________________
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement