Welcome Guest, Not a member yet? Register   Sign In
parent construct
#1

How to fix the error?

Parse error: syntax error, unexpected 'parent' (T_STRING), expecting function (T_FUNCTION) in C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyProfileCI\application\controllers\Cpages.php on line 22
A PHP Error was encountered
Severity: Parsing Error
Message: syntax error, unexpected 'parent' (T_STRING), expecting function (T_FUNCTION)
Filename: controllers/Cpages.php
Line Number: 22
Backtrace:


Line 22:    parent::__construct();


controllers/cpages.php


PHP Code:
parent::__construct();
    {    
        
$this->load->helper('url'); //Just for the examples, this is not required thought for the library
    
}    

    
    public function 
index()
    {        
        
$this->load->view('index');
    } 



views/index.php


PHP Code:
<html lang="en">
    <
head>
        <
title>Gionda CMS</title>
        <
meta charset="UTF-8" />
 
       <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <
link rel="stylesheet/less" type="text/css" href="<?php echo base_url(); ?>assets/themes/less/bootstrap.less">
        <
script src="<?php echo base_url(); ?>assets/themes/js/less/less.js" type="text/javascript"></script>
        <
link rel="stylesheet" href="<?php echo base_url(); ?>assets/themes/style/fullcalendar.css" />    

        <
link rel="stylesheet" href="<?php echo base_url(); ?>assets/themes/style/delta.main.css" />
        <
link rel="stylesheet" href="<?php echo base_url(); ?>assets/themes/style/delta.grey.css"/>
        
        <
link rel="stylesheet" href="<?php echo base_url(); ?>assets/themes/style/add.css"/>
        
    </
head


How to fix the error above?
" If I looks more intelligence please increase my reputation."
Reply


Messages In This Thread
parent construct - by davy_yg - 05-16-2016, 08:14 AM
RE: parent construct - by arma7x - 05-16-2016, 08:26 AM
RE: parent construct - by Narf - 05-16-2016, 08:30 AM
RE: parent construct - by InsiteFX - 05-16-2016, 01:47 PM
RE: parent construct - by arma7x - 05-16-2016, 03:01 PM
RE: parent construct - by davy_yg - 05-16-2016, 04:08 PM
RE: parent construct - by arma7x - 05-16-2016, 04:37 PM
RE: parent construct - by cartalot - 05-16-2016, 04:37 PM
RE: parent construct - by JayAdra - 05-16-2016, 05:19 PM
RE: parent construct - by arma7x - 05-17-2016, 01:17 AM
RE: parent construct - by JayAdra - 05-17-2016, 02:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB