A few questions

thread: 2 messages  |  last: about 3 years ago  |  started: monday, october 27, 2008, 10:46 am pdt


#1  |  wambaloo (TOulouse) France
Monday, October 27, 2008, 10:46 AM PDT

Hi there !

I just discover QCodo because I made an audit for a big application developped in Morocco and using QCodo framework. I know Symfony framework which is most different than QCodo, so I have a few questions to ask because I'm a little bit lost in the poor content of documentation I found.

My first question is : how can I log all the SQL request ? the schema on this application is not the same as I saw on your documentation so I think they customized everything and so nothing is undertandable. So, how can I log all SQL request in a file in simply one line ?

Second question : I saw that Qcodo and the application relied to are dependant, they are in the same folder and the ORM generated is located on the QCodo folder. So, if I have an update of QCodo to do, what would be the impact on my application ?

And my last question is : where can I found a complete documentation, with examples, and methods to understand the structure, customize it and understand all the objects generated and all the fundamentals functionnalities ? I tryied to look for the API documentation which is not complete and most of the classes or function don't have any comments.

Thanks a lot in advance, I hope some help will guide me :)

#2  |  VexedPanda (Calgary, AB) Canada
Monday, October 27, 2008, 12:27 PM PDT

1) If you want to log all DB hits, you're going to want to customize the appropriate /includes/qcodo/_core/database/*Database.class.php file, and add the needed code to the Q*Database::Query call.

The better option may be to turn on Profiling, and view a nice output of the queries done per page hit with pointers to the offending code.

2) Updating QCodo is painless via the included update script, and most files are designed with you overriding them in mind, so that they are not touched during an update.

3) The Examples Site (link above) is definitely the best place to gain understanding of QCodo.



Copyright © 2005 - 2012, Quasidea Development, LLC
This open-source framework for PHP is released under the terms of The MIT License.