looking for CI4 tutor |
(04-16-2019, 03:55 PM)Entai Wrote:(04-11-2019, 10:57 AM)albertleao Wrote: Hey! I am talking for CodeIgnıter 4 Dev (It's similar with CI3) I strongly recommend you to start with CI4. Well, you have to check app/Config/Routes.php There should be some kind of route list. Here is my routes list. $routes->get('/', 'Posts::index'); $routes->get('/post/(egment)', 'Posts::index/$1'); $routes->get('/save', 'Posts::createPost'); $routes->get('/post/delete/(:num)', 'Posts::unPost/$1'); Well here, routes->get means that client can reach that route with only get protocol. First param is url and second param is your controller and method. You can add something like: PHP Code: $routes->get('/myurl', 'MyController::Hello'); add PHP Code: class MyController extends BaseController in your MyController. |
Messages In This Thread |
looking for CI4 tutor - by Entai - 04-11-2019, 09:44 AM
RE: looking for CI4 tutor - by albertleao - 04-11-2019, 10:57 AM
RE: looking for CI4 tutor - by Entai - 04-16-2019, 03:55 PM
RE: looking for CI4 tutor - by tweenietomatoes - 04-16-2019, 05:48 PM
RE: looking for CI4 tutor - by Entai - 04-17-2019, 06:19 AM
RE: looking for CI4 tutor - by InsiteFX - 04-11-2019, 01:33 PM
RE: looking for CI4 tutor - by Entai - 04-12-2019, 09:57 AM
RE: looking for CI4 tutor - by tweenietomatoes - 04-16-2019, 06:02 PM
|