Welcome Guest, Not a member yet? Register   Sign In
Parse error and all my code is good help me plz
#1

[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
#2

[eluser]Aimadj[/eluser]
resolved tks all
#3

[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.
#4

[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




Theme © iAndrew 2016 - Forum software by © MyBB