Something wrong with Session library in CI 2.1.3 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Something wrong with Session library in CI 2.1.3 (/showthread.php?tid=56509) |
Something wrong with Session library in CI 2.1.3 - El Forum - 12-26-2012 [eluser]GabrielGem[/eluser] Greetings dear CI commumity ! I'm new here and have a question. I have a problem with session library. First of all, I create new library with that easy code: Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); Then I write 'auth' variable to autoload, then open my index page and get this warnings: Code: A PHP Error was encountered But... If I put this library in the project based on CI 2.1.2 this library initialized perfect! w/o any errors and warnings. My Auth library not working on 2.1.3 Please help. Something wrong with Session library in CI 2.1.3 - El Forum - 12-26-2012 [eluser]InsiteFX[/eluser] Maybe you should use PHP5 Constructor's. Code: class Auth { Also if your going to use the session library you should autoload it. Something wrong with Session library in CI 2.1.3 - El Forum - 12-26-2012 [eluser]coolfactor[/eluser] Something is sending output prior to the Session library is being invoked. Make sure you don't have *any* whitespace outside of <?php and ?> tags that should not be there. Something wrong with Session library in CI 2.1.3 - El Forum - 12-26-2012 [eluser]GabrielGem[/eluser] Very glad to see you replies, thanks.! I'll check your recomendations Something wrong with Session library in CI 2.1.3 - El Forum - 12-26-2012 [eluser]GabrielGem[/eluser] Thanks, coolfactor! I'm so stupid )) there is a whitespace in the file. I convert file to UTF-8 without BOM and works fine for now without any warnings! It's so easy. Many thanks! |