So im still unsure how does the table objects work, do these get
generated from table schemas or is it manual, also where do they go
exactly, into the model directory ?
Dan Rossi wrote:
Bill Karwin wrote:
I recommnd against sending SQL statements to your browser output. It
would be better to use Zend_Log to output to a log file on the server.
Outputting SQL to the browser risks alerting attackers to your SQL
statements and database structure. They can use this information to
craft SQL injection attacks.
Even in debug mode ? This is for a debugging purposes, I believe there
isnt such a thing setup in Zend db.
Perhaps your project is internal only and not exposed to the internet,
or perhaps you intend to disable the SQL debugging output before you put
the app into production. But it is nevertheless a good habit to
establish, to use a log instead of outputting SQL to the browser.
Id use logs for error handling in production. This is purely for
debugging purposes.