Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE development » Bug Reports » can't have a database table called 'class' (for obvious reasons)
can't have a database table called 'class' [message #1943] Mon, 09 February 2009 10:46 Go to previous message
ikatz is currently offline  ikatz
Messages: 40
Registered: December 2007
Location: Durham, NH
Member
This problem seems pretty obvious in hindsight, but I created a table called "class", which causes Radicore to generate a class file with the name "class" -- a syntax error.

I would suggest adding some sort of check for table names that won't translate to PHP classes, when they are first imported into the dictionary. Or, rather than making a list of words that are reserved, it might be easier to just run "php -l" on each generated file.

I don't mind correcting my own naming errors (to fix my problem, I'm renaming "class" to "course"); my concern is that the Radicore application generates PHP scripts that don't parse.

 
Read Message
Read Message
Read Message
Previous Topic: Download of file where name contains spaces
Next Topic: Problem when ListView Total causes new page
Goto Forum:
  


Current Time: Sat Dec 28 20:23:18 EST 2024

Total time taken to generate the page: 0.69569 seconds