Welcome Guest, Not a member yet? Register   Sign In
Need help for Nested Directories..
#1

[eluser]web_developer[/eluser]
Hello I am using CI 2.0.2 version.

My Project structure is like below

| ROOT (www.xyz.com)
| system (Directory)
| application (Directory)
| install (Directory)
| index.php

install <-- is directory, and inside that I have put all folders of application like config,helper etc.. and "index.php" too

I have change the setting of install/index.php and it is like below change

$system_path = '../system';
$application_folder = '.';

in install/routes.php
$route['default_controller'] = "installer";

in install/config
$config['base_url'] = 'http://www.xyz.com/install';


in install/controller I have 2 method

index(); <-- http://www.xyz.com/install
step1(); <-- http://www.xyz.com/install/step1


now when I type http://www.xyz.com/install then index() method is working fine in browser
but when I type http://www.xyz.com/install/step1 then it's not working.. it is giving me 404 error page..

I want to know what setting I have to do? How can I prevent this error?
#2

[eluser]toopay[/eluser]
Code:
$config['base_url'] = 'http://www.xyz.com/install/';
And you need to include the controller name too. If necessary, configure each instalation step in router, like
Code:
$route['step1'] = 'controller_which_hold_function_step1/step1';




Theme © iAndrew 2016 - Forum software by © MyBB