last day (14 days later) » 

2:27 PM
0
Q: How to access the routes in slim?

aircraftI get a slim demo, but I am not familiar to that, I can see in the routes.php there are many route in the file. Left is the dir structure, right is the routes.php. This is routes.php code: <?php // Routes use Psr\Http\Message\ServerRequestInterface as Request; use Psr\Http\Message\ResponseI...

 
@Mihai I have edited my question, there has my test in firefox.
@Mihai I m confused,could not understand less, could you give a example? and you see my /login2 I write to test, there is no need params ? I also test that. I m a iOSer, not so similiar to php.
@jmattheis it is not show.bro.i test that.
 
Does the first route work properly? What URL do you use to access the first route? (by 'the first route' i mean $app->get('/', ... ) route in the beginning of your routes.php file)
 
@krlv tell the truth, I don't know how to call the $app->get('/', ... ) route use chrome.
 
try localhost and localhost/index.php/
 
Oh, In my root dir, there is a index.php with nothing except a echo xx; should I remove it? if not remove, the broswer is request the root dir index.php
 
2:27 PM
As I can see from screenshot of your project, the web server's root dir is slim-todo-demo-master/public. Check public/index.php file - it should have code to initialize Slim framework, at least something like $app->run(); in the end of a file.
 
@krlv great, i access , you see my edit
Hi @krlv
nice to meet you
are you here
you today help me much
May I discuss with you ? and facebook you ?
 
2:53 PM
Hi @aircraft
nice to met you too
 
ho
hi
 
I don't have discuss account
 
are u in es european?
ok
don't have discuss account
what mean>
I am chinese, hey hey
 
I'm from Belarus but right now live and work in Estonia :)
 

last day (14 days later) »