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

(This post was last modified: 01-09-2015, 03:20 AM by sintakonte.)

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';
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 sintakonte - 01-09-2015, 03:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB