Welcome Guest, Not a member yet? Register   Sign In
Beginner issue: I can't get any controllers to work.
#10

[eluser]oddvalue[/eluser]
The URL I'm trying to access is 'http://dev.oddvalue.co.uk/index.php/blog/' as per the example and this is my config file:
Code:
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH a trailing slash:
|
|    http://example.com/
|
*/
$config['base_url']    = "http://dev.oddvalue.co.uk/";

/*
|--------------------------------------------------------------------------
| Index File
|--------------------------------------------------------------------------
|
| Typically this will be your index.php file, unless you've renamed it to
| something else. If you are using mod_rewrite to remove the page set this
| variable so that it is blank.
|
*/
$config['index_page'] = "index.php";

/*
|--------------------------------------------------------------------------
| URI PROTOCOL
|--------------------------------------------------------------------------
|
| This item determines which server global should be used to retrieve the
| URI string.  The default setting of "AUTO" works for most servers.
| If your links do not seem to work, try one of the other delicious flavors:
|
| 'AUTO'            Default - auto detects
| 'PATH_INFO'        Uses the PATH_INFO
| 'QUERY_STRING'    Uses the QUERY_STRING
| 'REQUEST_URI'        Uses the REQUEST_URI
| 'ORIG_PATH_INFO'    Uses the ORIG_PATH_INFO
|
*/
$config['uri_protocol']    = "AUTO";

/*
|--------------------------------------------------------------------------
| URL suffix
|--------------------------------------------------------------------------
|
| This option allows you to add a suffix to all URLs generated by CodeIgniter.
| For more information please see the user guide:
|
| http://ellislab.com/codeigniter/user-guide/general/urls.html
*/

$config['url_suffix'] = "";

/*
|--------------------------------------------------------------------------
| Default Language
|--------------------------------------------------------------------------
|
| This determines which set of language files should be used. Make sure
| there is an available translation if you intend to use something other
| than english.
|
*/
$config['language']    = "english";

/*
|--------------------------------------------------------------------------
| Default Character Set
|--------------------------------------------------------------------------
|
| This determines which character set is used by default in various methods
| that require a character set to be provided.
|
*/
$config['charset'] = "UTF-8";

/*
|--------------------------------------------------------------------------
| Enable/Disable System Hooks
|--------------------------------------------------------------------------
|
| If you would like to use the "hooks" feature you must enable it by
| setting this variable to TRUE (boolean).  See the user guide for details.
|
*/
$config['enable_hooks'] = FALSE;


/*
|--------------------------------------------------------------------------
| Class Extension Prefix
|--------------------------------------------------------------------------
|
| This item allows you to set the filename/classname prefix when extending
| native libraries.  For more information please see the user guide:
|
| http://ellislab.com/codeigniter/user-guide/general/core_classes.html
| http://ellislab.com/codeigniter/user-guide/general/creating_libraries.html
|
*/
$config['subclass_prefix'] = 'MY_';


/*
|--------------------------------------------------------------------------
| Allowed URL Characters
|--------------------------------------------------------------------------
|
| This lets you specify with a regular expression which characters are permitted
| within your URLs.  When someone tries to submit a URL with disallowed
| characters they will get a warning message.
|
| As a security measure you are STRONGLY encouraged to restrict URLs to
| as few characters as possible.  By default only these are allowed: a-z 0-9~%.:_-
|
| Leave blank to allow all characters -- but only if you are insane.
|
| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
|
*/
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
I havn't included the whole thing because a) it's too long and b) the rest of the settings havn't been changed.


Messages In This Thread
Beginner issue: I can't get any controllers to work. - by El Forum - 10-16-2009, 02:06 PM
Beginner issue: I can't get any controllers to work. - by El Forum - 10-16-2009, 02:34 PM
Beginner issue: I can't get any controllers to work. - by El Forum - 10-16-2009, 04:03 PM
Beginner issue: I can't get any controllers to work. - by El Forum - 10-16-2009, 05:32 PM
Beginner issue: I can't get any controllers to work. - by El Forum - 10-16-2009, 06:15 PM
Beginner issue: I can't get any controllers to work. - by El Forum - 10-16-2009, 06:40 PM
Beginner issue: I can't get any controllers to work. - by El Forum - 10-16-2009, 06:57 PM
Beginner issue: I can't get any controllers to work. - by El Forum - 10-16-2009, 08:30 PM
Beginner issue: I can't get any controllers to work. - by El Forum - 10-16-2009, 10:00 PM
Beginner issue: I can't get any controllers to work. - by El Forum - 10-17-2009, 06:06 AM
Beginner issue: I can't get any controllers to work. - by El Forum - 10-17-2009, 08:56 AM
Beginner issue: I can't get any controllers to work. - by El Forum - 10-17-2009, 10:11 AM
Beginner issue: I can't get any controllers to work. - by El Forum - 10-17-2009, 10:50 AM
Beginner issue: I can't get any controllers to work. - by El Forum - 10-17-2009, 10:54 AM
Beginner issue: I can't get any controllers to work. - by El Forum - 10-17-2009, 10:58 AM
Beginner issue: I can't get any controllers to work. - by El Forum - 10-17-2009, 11:47 AM
Beginner issue: I can't get any controllers to work. - by El Forum - 10-17-2009, 03:54 PM



Theme © iAndrew 2016 - Forum software by © MyBB