Welcome Guest, Not a member yet? Register   Sign In
Parse error: syntax error, unexpected T_FUNCTION,
#1

[eluser]Evollution[/eluser]
http://www.fifago.com/demo2/index.php/main


Code:
<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');
class Main extends MY_Controller
function __construct()
    {
    parent::__construct();
    $this->load->helper('url');
    $this->load->helper('form');
    }
    function index()
    {
        $this->load->module_path( 'modules' );
        $this->load->module('admincp');
    }

Error Parse error: syntax error, unexpected T_FUNCTION, expecting '{' in demo2/application/controllers/main.php on line 3
#2

[eluser]sean_THR[/eluser]
You don't have opening or closing braces {} for your class.
#3

[eluser]Evollution[/eluser]
Fatal error: Call to a member function GET_ARTICLE_BY_ID() on a non-object in /home/fifagoc1/public_html/demo2/application/controllers/news.php on line 52


poate trebuie sa fac load la vreo librarie ?
#4

[eluser]Cristian Gilè[/eluser]
We need some code to help you.

Cristian Gilè
#5

[eluser]Evollution[/eluser]
it was a mistake .. the real article is here :

http://ellislab.com/forums/viewthread/177613/

i wanna do so that when i acces site/index.php/news/$row->$id acces news content with id ...

if you know how can i do this pls help me

Twisted1919 -> created a script but when i acces http://www.fifago.com/demo2/index.php/news/3 (3=news id) it is redirecting to http://www.fifago.com/demo2/index.php/news ..




Theme © iAndrew 2016 - Forum software by © MyBB