⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

GC 1.6 and Codeigniter 3.1.6 version is not working



likhon3k
  • profile picture
  • Member

Posted 19 December 2017 - 15:34 PM

Hello...

After a long time. I was happy to see GC 1.6 version and same for ci 3.1.6 version. But whenever I tried to use this two at a time I faced "Parse error: syntax error, unexpected '[' in D:\xampp\htdocs\code316\application\libraries\Grocery_CRUD.php on line 597" error. I tried to solve but failed. GC 1.5.9 version working well but GC 1.6.0 was not working.

 

I have attached the Picture.[attachment=1269:19-12-2017 9-23-10 PM.jpg]

 

 

I need the solution. Please....TIA.

 


Amit Shah
  • profile picture
  • Member

Posted 20 December 2017 - 04:59 AM

well, you are using an older version of PHP which is not supporting array declaration as like this:

$arr = []

That is the reason  / issue. If possible, upgrade the version and it should be solved. If not, then u may need to modify wherever there are [ ] for array declaration / usage to array( ) ...

 

Happy GCing :)