Welcome Guest, Not a member yet? Register   Sign In
Timezone settings problem in codeigniter
#11

[eluser]danmontgomery[/eluser]
What's the error in your apache error log when it throws the 500 Internal Server Error?
#12

[eluser]InsiteFX[/eluser]
Try adding these to your index.php at the top under the php tag!
Code:
date_default_timezone_set('Asia/Dubai');  // change to your country/city !
/*
|---------------------------------------------------------------
| DEFAULT INI SETTINGS
|---------------------------------------------------------------
|
| Hosts have a habbit of setting stupid settings for various
| things. These settings should help provide maximum compatibility
| for PyroCMS
|
*/

    // Let's hold Windows' hand and set a include_path in case it forgot
    set_include_path(dirname(__FILE__));

    // Some hosts (was it GoDaddy? complained without this
    @ini_set('cgi.fix_pathinfo', 0);

    // PHP 5.3 will complain without this
    if (ini_get('date.timezone') == '')
    {
        date_default_timezone_set('GMT');
    }

InsiteFX
#13

[eluser]abdel[/eluser]
I was able to fix the problem by changing my model's name. I had my controller, model and view as hello.php. I just renamed my model to Xyz_model and the file name to xyz_model.php and Called the model using
Code:
$this->load->('Xyz_model');

And everything started to work fine! Everybody thanks for your help in debugging it! In the end it was just a naming conflict!




Theme © iAndrew 2016 - Forum software by © MyBB