#1
Just installed Trongate V2 and followed the video tutorial "Build a Task Manager with Native PHP". After editing the Task controller adding function manage() with echo 'Hello'; in the body and writing "http://localhost/task_manager_app/tasks/manage" in the url I get the error:

class Tasks extends Trongate { public function manage() { echo 'Hello'; } }
Fatal error: Uncaught Error: Class "Tasks" not found in D:\xampp\htdocs\prova2\engine\Core.php:160 Stack trace: #0 D:\xampp\htdocs\prova2\engine\Core.php(71): Core->invoke_controller_method() #1 D:\xampp\htdocs\prova2\engine\Core.php(30): Core->serve_controller() #2 D:\xampp\htdocs\prova2\public\index.php(5): Core->__construct() #3 {main} thrown in D:\xampp\htdocs\prova2\engine\Core.php on line 160

any suggestion?
#2
Thanks for Your reply. What You suggested is already in my code.
TASK_MANAGER_APP
...
modules
tasks
#3
Thanks for Your reply. What You suggested is already in my code.
TASK_MANAGER_APP
...
modules
tasks
Tasks.php
-------------------------
File Tasks.php
class Tasks extends Trongate {
public function manage() {
echo 'hello';
}
}
---------------------------
I tested the 'stallone' project I have in htdocs archive for V1 and
http://localhost/stallone/store_items/show/1 on Trongete V1 works fine
#4
Hi guys,

Great suggestion, DC - look forward to the upload feature on the forum.

Just an obvious observation:

- The URL "http://localhost/task_manager_app/tasks/manage" doesn't make sense with the error message you shared.


'D:\xampp\htdocs\prova2' - did you set the BaseURL in config to `http://localhost/task_manager_app/` first, as `prova2' should not be in the error message > 'D:\xampp\htdocs\task_manager_app' should be, assuming `task_manager_app` is the folder name of your T2 app.
#5
Hello,
With the Task manager controller file, I added this to the top on the file:

I did this so entry point without manage directs to manage. So I can just enter http://localhost/tasks/