• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CRUD Buster - Quick code creation for CRUD operations

I've developed a new library to quickly generate CRUD code. Just copy/paste the code into the new filenames specified and you're done!


Anybody try this and get to to work?
When I install everything and try http://localhost/CI/index.php/crud/
I get
Parse error: syntax error, unexpected T_STRING, expecting T_FUNCTION in /Library/WebServer/Documents/CI/system/application/controllers/crud.php on line 4

FYI, my T_String errors seem to have been due to invisible nbsp; characters in my files (no doubt picked up by copying/pasting the code from the wiki). Running a Search/Replace turning the invisible non-breaking spaces to regular spaces fixed that problem.

However, when I call the crud controller, I am now getting a
Class 'MY_Controller' not found
in applications/libraries. I think we are missing a file that we need to get this on any system other than the author's.


Try changing the MY_Controller to Controller. I have a "MY_Controller.php" file in my application/libraries folder.

[eluser]Bob Sawyer[/eluser]
After all of the above, I'm getting this:

Parse error: syntax error, unexpected $end in /system/libraries/CRUD_Buster.php on line 706

which is the last line of CRUD_Buster.php.

I've tried several different things, including visual scanning of the file, line-by-line, to see if I could find anything amiss (unclosed "if" statements, etc.) but haven't been able to find the problem.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.