How to create a new index inside a subdirectory in codeigniter
Tech-Today

How to create a new index inside a subdirectory in codeigniter


I am using codeigniter framework in my php project and I have a requirement like this:

When the url is */admin/, the application should call the index.php inside the admin folder.

Folder structure:
+codeigniter app
+application
+controller
+index.php (the application's default)
+admin (the admin's index.php should be here)
+index.php
+config

Looking at the codeigniter's documentation on URI Routing, this can be achieve by adding this line on: application/config/routes.php


$route['admin'] = 'admin/index';


I love codeigniter!




- How To Run A Wildfly Server Inside Docker
Before we begin you must configure docker, I am using Ubuntu so I followed the guide here: https://docs.docker.com/engine/installation/linux/ubuntulinux/. Choose the appropriate OS that applies to you. Let's do this in sequence: Checkout and...

- Web Development
WordpressConfigure Custom Wordpress PermalinkZencartHow to add a customize product admin fields in zencart by editing/adding extra codesJoomlaHow to install/setup/configure joomla to run in a xampp setup. This avoids the technical detail of manually installing...

- Send Email Using Codeigniter In 1and1 Server
I get a timeout at first try. Using the default mail type from codeigniter will not, to use the built in email feature from codeigniter we have to change protocol into smtp: Like this: $config['mailtype'] = 'html'; $config['protocol']...

- Flexigrid's On Row Click - How To Implement Rowclick Action Of Flexigrid Using Codeigniter's Library
The objective of this writing is to update the flexigrid library so that it can handle the rowClick event. To do this we need to download the latest version of flexigrid's library here: http://flexigrid.eyeviewdesign.com/, extract and setup accordingly...

- Allowing Url Query String In Codeigniter
As we all know codeigniter uses segment-based as url, example: Just like these: classname/methodname/parameter1/paramenter2, index.php/index/login/user/password Unfortunately, I was developing a web application that would accept payments via paypal. And...



Tech-Today








.