Welcome Guest, Not a member yet? Register   Sign In
Codeigniter 3 HMVC default_controller
#5

(01-09-2015, 03:19 AM)sintakonte Wrote: if you can call home/sayhello directly in your browser with the desired result

you can create a default controller in CIs controllers folder

something like



PHP Code:
class DefaultController extends CI_Controller
{

 public function 
landingpage()
 {
 echo 
modules::run("home/sayhello");
 }


and in your routes php


Code:
$route['default_controller'] = 'DefaultController/landingpage';

Shy Thankyou very much sintakonte, works but with extends MX_Controller. For this time is the one way. Thanks again.
Reply


Messages In This Thread
Codeigniter 3 HMVC default_controller - by dts - 01-08-2015, 09:37 AM
RE: Codeigniter 3 HMVC default_controller - by dts - 01-09-2015, 04:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB