Remove controller's name from url. Codeigniter

laravel 5.8 remove controller
php artisan remove model
what is controller in laravel
how to rename controller in laravel
implicit controller in laravel
php controller
get controller path laravel
laravel root controller

can someone help me with this. I want to remove controller name from the url like this

www.site-name.com/controller_name/controller_functions/controller_arguments

to this

www.site-name.com/controller_arguments

for instance:

www.site-name.com/blog/display/blog-title

to this:

www.site-name.com/blog-title

Below is my controller class

 class Blog extends CI_Controller {

       public function index() {

         $data['blogs_data'] = $this->Blog_model->get_blogs();

         $data['main_view'] = "blog/blog_layout";

         $this->load->view('layouts/main', $data);
      }

       public function blog_display($page_url) {
        $data['blog_data'] = $this->Blog_model->get_blog($page_url);

        $data['main_view'] = "blog/blog_detail_layout";

        $this->load->view('layouts/main', $data);
       }
 }

as your can see from my controller the URL of my site to display blog going to be like this www.website-name.com/blog/blog_display/($page_url) <== whatever the $page_url going to be. Now, what I want is to be like this www.website-name.com/($page_url) <= so straight to the $page_url.

Thanks


Go to application->config->routes.php

Then you can set a route to "blog/display/blog-title" as "blog-title"

Add the below line to your routes.php file

$route['blog-title'] = 'blog/display/blog-title';

You can replace "blog/display/blog-title" to "blog-title" then.

Undoing Things in Rails, Scroll down to the bottom controller section. Click on the "three selection dots" to the right of the controller name you would like to edit. Choose "Remove Serial Number" to remove controller from the account. Next, choose "Delete" to remove controller from the account. Scroll down to the bottom controller section. Click on the "three selection dots" to the right of the controller name you would like to edit. Choose "Remove Serial Number" to remove controller from the account. Next, choose "Delete" to remove controller from the account. The controller will now be removed from you account.


define route in routes.php file.

route['controller_arguments']='controller_name/controller_functions';

on which onclick you are showing this url.define there this.

<a href="<?php echo base_url(); ?>controller_arguments">
                            </a>

Delete a Laravel Model with its Relations, Delete Controller. Track View > Controllers Toolbar > (Delete Controller) Track View > Highlight a controller track in the Controller window. > Edit menu > Controller submenu > Delete. Now whenever I connect an original controller this fake driver takes it's place, making it impossible to work properly. If I uninstall this driver in the "Device Manager" there's no "Delete" option and it will come back to life once I reconnect the controller.


I imagine that your slugs are generated so you can't just write all your slugs into your routes.

In you specific case you need something like this in your routes:

$route['(:any)] = 'blog/display/$1';

Do bare in mind that your routes are used from top to bottom. So if you have this route as your first one the rest of your site might not work.

So in case of a entire blog stucture you might want something like:

$route[''] = 'blog/index'; // For first page without pagination
$route['(:num)] = 'blog/index/$1'; // Blog article pagination (for second page and all other pages)
$route['(:any)] = 'blog/display/$1'; // Blog article detail

To avoid some problems in the future with having a route that is just a (:any) param, you might want to add an extra segment in that blog detail article.

Like so:

$route['detail/(:any)] = 'blog/display/$1'; // Blog article detail

For more information about this subject take a quick look at the docs here: Codeigniter routing system

This page describes how to uninstall the Controller software and associated files from a platform using the Enterprise Console. Here is the steps for remove controller name from HomeController. Step 1: Create the route constraint. public class RootRouteConstraint<T> : IRouteConstraint { public


. You can then edit the file and run rake db:migrate again. In Big Picture settings under "Add / Test" find your controller and press Deregister account. Thanks! How about all settings and made configurations. I see no option to 'reset' or remove settings anywhere. The same goes of course for ALL Steam Cloud files. Could Valve take a look at this finally? I mean it's been at least 3 years since Steam


Simply ensure the controller that you want to delete shows at the very top, then select Controller Settings > Remove Controller > check the box > press Remove (​  Turn over the DualShock 4 controller and locate the small hole near the left shoulder button. The hole for the reset button is on the back of the PS4 controller. Unfold one end of the paper clip and insert it to push the button buried inside the hole. Hold down this button for about 5 seconds.


You can forcefully delete only the last controller in the node. Remember the following points while deleting controllers: Do not attempt to delete  When I try to regist my controller, steam ask something to me such as mapping infomation of my xinput controller. I put random botton or skip for all mapping. After that controller was not working normally but repeating down. I tried to remove personal setting and delete related files I found from other discussions but it wasnt working.