CRUD Buster - Quick code creation for CRUD operations |
[eluser]spheroid[/eluser]
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! http://codeigniter.com/wiki/CRUD_Buster/
[eluser]CheekyGeek[/eluser]
Anybody try this and get to to work? When I install everything and try http://localhost/CI/index.php/crud/ I get Code: Parse error: syntax error, unexpected T_STRING, expecting T_FUNCTION in /Library/WebServer/Documents/CI/system/application/controllers/crud.php on line 4
[eluser]CheekyGeek[/eluser]
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 Code: Class 'MY_Controller' not found ?
[eluser]spheroid[/eluser]
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: Code: 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. Anyone? |
Welcome Guest, Not a member yet? Register Sign In |