CodeIgniter Forums
Parse error and all my code is good help me plz - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Parse error and all my code is good help me plz (/showthread.php?tid=20313)



Parse error and all my code is good help me plz - El Forum - 07-05-2009

[eluser]Aimadj[/eluser]
controller :

Code:
<?php


class Static extends Controller
{

    function Static()
    {
        parent::Controller();    
        //load language page
        $this->lang->load('admin', 'arabic');
    }
    
    function index()
    {
        $this->load->view('admin/statics_index', $data);
    }
}

view :
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
&lt;html &gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;title&gt;Untitled Document&lt;/title&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;/body&gt;
&lt;/html&gt;

error :
Code:
Parse error: parse error, expecting `T_STRING' in C:\wamp\www\Work 262\system\application\controllers\modir\static.php on line 4



Parse error and all my code is good help me plz - El Forum - 07-05-2009

[eluser]Aimadj[/eluser]
resolved tks all


Parse error and all my code is good help me plz - El Forum - 07-06-2009

[eluser]TheFuzzy0ne[/eluser]
For anyone else who's interested in knowing what the problem was, it's that "static" is a reserved PHP word, which would have no doubt been causing problems.


Parse error and all my code is good help me plz - El Forum - 07-19-2009

[eluser]Aimadj[/eluser]
[quote author="TheFuzzy0ne" date="1246886273"]For anyone else who's interested in knowing what the problem was, it's that "static" is a reserved PHP word, which would have no doubt been causing problems.[/quote]

yes, I'm now this but in write the code I'm less many mistake