Welcome Guest, Not a member yet? Register   Sign In
Not sending my POST data - Extending Lang, Config
#15

[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;


Messages In This Thread
Not sending my POST data - Extending Lang, Config - by El Forum - 03-07-2012, 05:25 PM
Not sending my POST data - Extending Lang, Config - by El Forum - 03-08-2012, 04:43 AM
Not sending my POST data - Extending Lang, Config - by El Forum - 03-08-2012, 09:28 AM
Not sending my POST data - Extending Lang, Config - by El Forum - 03-08-2012, 11:35 AM
Not sending my POST data - Extending Lang, Config - by El Forum - 03-08-2012, 04:53 PM
Not sending my POST data - Extending Lang, Config - by El Forum - 03-08-2012, 09:03 PM
Not sending my POST data - Extending Lang, Config - by El Forum - 03-08-2012, 09:04 PM
Not sending my POST data - Extending Lang, Config - by El Forum - 03-08-2012, 09:11 PM
Not sending my POST data - Extending Lang, Config - by El Forum - 03-08-2012, 09:19 PM
Not sending my POST data - Extending Lang, Config - by El Forum - 03-08-2012, 09:22 PM
Not sending my POST data - Extending Lang, Config - by El Forum - 03-08-2012, 09:30 PM
Not sending my POST data - Extending Lang, Config - by El Forum - 03-08-2012, 09:35 PM
Not sending my POST data - Extending Lang, Config - by El Forum - 03-08-2012, 09:47 PM
Not sending my POST data - Extending Lang, Config - by El Forum - 03-09-2012, 11:47 AM
Not sending my POST data - Extending Lang, Config - by El Forum - 03-09-2012, 03:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB