Category : routes

I am working on an existing project on CodeIgniter and there was a need to create new routes. Existing routes work correctly, but new ones give a 404 error. Even when I make a copy of the route and controller, I also get a 404 error. $route[‘offer/list’] = "offer/list_offers"; $route[‘offer/list1’] = "offer/list_offerss"; Second is copy. ..

Read more

I wish to access the $route variable generated in my controller from an included file in my twig templates and after many attempts I am failing to do so. I define the $route variable at the controller like this: $route = $request->attributes->get(‘_route’); Then I send the variables to my twig template return $this->render(‘destinations/index.html.twig’, [ ‘route’ ..

Read more

hello i’m new to laravel and maybe this is silly for you guys out here. in laravel 8 routing web.php i’ve created a route like this: Route::get(‘/’, function () { return view(‘login’); }); Route::post(‘/auth’, ‘[email protected]’); Route::get(‘/home’, function () { if (session()->has(‘username’)) return view(‘home’); else return redirect(‘/’); }); Route::post(‘/editprofile’, ‘[email protected]_profile’); what i want to ask is, ..

Read more