Welcome Guest, Not a member yet? Register   Sign In
__construct() { issue for PHP4 and PHP5. maybe an another reason…
#1

[eluser]artlover[/eluser]
Hi friends,

I have weird issue with CodeIgniter,

here is a start part of my controller
Code:
class Home extends Controller
{
    /**
    * Constructor
    */
    public function __construct() {
        parent::Controller();

    }

...

everything is working fine at localhost, but when I try same at server, I come cross with an error like below:

Code:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home3/blabla/public_html/blablabla/applications/frontend/controllers/home.php on line 22

I researched and people say it is about PHP4.. it should be PHP5. but my server has PHP5 on. what can be the reason?

appreciate helps! thanks a lot!


Messages In This Thread
__construct() { issue for PHP4 and PHP5. maybe an another reason… - by El Forum - 08-05-2009, 06:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB