The Quickstart provided on the Zend framework page does not specify howto use PDO_MYSQL
and as you already have noticed it uses PDO_SQLITE.
However this is not the most common option for people who are going to build serious RDBM applications, so after wondering a coupple of minutes I just used this on my configuration file
application/configs/application.ini
[production]
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
includePaths.library = APPLICATION_PATH "/../library"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts"
resources.view[]=
resources.db.adapter = "PDO_MYSQL"
resources.db.params.host = "YOUR HOST GOES HERE USUALLY LOCALHOST"
resources.db.params.username = "DATABASE USERNAME DONT BE A NOOB AND USE ROOT"
resources.db.params.password = "YOUR USER'S PASSWORD"
resources.db.params.dbname = "DATABASE NAME"
resources.db.isDefaultTableAdapter = true
I gope this helps anybody out there ...
Cheers!
lunes, 8 de junio de 2009
Suscribirse a:
Enviar comentarios (Atom)
No hay comentarios:
Publicar un comentario