Welcome Guest, Not a member yet? Register   Sign In
looking for CI4 tutor
#8

(04-16-2019, 05:48 PM)tweenietomatoes Wrote:
(04-16-2019, 03:55 PM)Entai Wrote:
(04-11-2019, 10:57 AM)albertleao Wrote: Hey!

Good luck on your journey. I'd recommend playing around with it yourself then asking questions when you run into speed bumps. You'll learn quicker and better that way.

I play ... a lot! ... just uploaded my work into infinityfree ... but keeps telling me ERROR 404!!

the site is http://datacode.epizy.com/ 

the controller is login by default in config, the base url is as show above, I had put mod rewrite for hide index.php and put that to '' in the config ... 

... I am lost Tongue

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/(Confusedegment)', '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 
{

public function 
hello() 
{
}




in your MyController.
thx your for your response!  I will change to CI4!
Reply


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



Theme © iAndrew 2016 - Forum software by © MyBB