The Prado PHP Framework looks very interesting, but before I dive in, I am wondering if MongoDB can be used as the database for Prado without any issues?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Prado is based on Apache Tapestry, a Java Framework. Tapestry does not have a MongoDB library (unless recently added)
Being PHP, Prado can work with MongoDB, but one must do some PHP configuration since the Mongo PHP Driver is a third-party library and there is no specific Prado library for MongoDB.
First, configure MongoDB, install the MongoDB PHP Driver, then create a Prado class to interact it (the same with Apache Tapestry). The amount of issues encountered will be in regards to the class you create and how well it bridges Prado with MongoDB.
Standard PHP code looks like this:
While Prado looks like a great concept, I would recomend using a more established framework such as Cake, Zend, or CodeIgniter. In addition there is Morph, a higher level of abstraction for PHP and MongoDB: http://code.google.com/p/mongodb-morph
Hope this helps.