0

i am using codeigniter framework for development .

I used a class Users.php as the base class. all other classes are derived fro this class like class ads extends Users.

For this i added this code in config file

 function __autoload($class="Users")
 {
 if(strpos($class, 'CI_') !== 0)
  {
  @include_once( APPPATH . 'controllers/'. $class . EXT );
  }
 }

it was working fine in my localhost when i was using windows ....now i just installed ubuntu 12.o4 and try lo load my page ...but it is showing blank

please help me

thank you

2
  • 1
    enable error_reporting in index.php. Then you can see the error. May be case sensitive issue. Commented Jan 22, 2014 at 5:31
  • yes it was case sensitive issue .... Commented Jan 22, 2014 at 6:38

1 Answer 1

1

I think It may be file name problem. You should use

class User extends CI_Controller {.....

in your User.php file.. In short Class name should exact match with your file name. Because linux OS is case sensitive..

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.