I'm quite new to php and trying to test my php script online and came across 'FATAL ERROR syntax error, unexpected 'is' (T_STRING) on line number 12'. What can be done to fix this error? I'm trying to test the php online so I can work out how to add payment apis.
The PHP
defined('BASEPATH') OR exit('No direct script access allowed');
class Processing extends CI_Controller {
public function __construct(){
parent::__construct();
if($this->session->userdata("userID") == "")
{
$this->session->set_flashdata("processloginredirect",1);
redirect(base_url());
exit;
}
}
public function index()