[eluser]Kristories[/eluser]
.htaccess
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
#The base of the project.
RewriteBase /
#Removes access to the system and application folders.
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ index.php?/$1 [L]
RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ index.php?/$1 [L]
#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn't true it sends the
#request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#Exclude the following files and directories.
RewriteCond $1 !^(index\.php|assets|robots\.txt)
#Rewrite all requests to index.php.
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
# If we don't have mod_rewrite installed, all 404's
# can be sent to index.php, and everything works as normal.
ErrorDocument 404 index.php
</IfModule>
If you use HMVC modular extention.. Change :
MY_Config.php
Code:
require APPPATH."third_party/MX/Config.php";
class MY_Config extends MX_Config {
MY_Lang.php
Code:
require APPPATH."third_party/MX/Lang.php";
class MY_Lang extends MX_Lang {
If you use HMVC modular extention and using form validation, this will allow your callback methods to function properly..
Create MY_Form_validation
Code:
class MY_Form_validation extends CI_Form_validation {
public $CI;
}
Load form_validation
Code:
$this->load->library('form_validation');
$this->form_validation->CI =& $this;