Using Zend Framework checked the Gdata package and found no google maps support:
So i decided to create a Zend_Gdata_Maps subpackage, and here it is:
Download Zend_Gdata_Maps!
Installation: Just uncompress it outside The Zend Framework folder
See the Examples provided on Zend/Gdata/Maps/Examples
yeah, the examples are *practical* and *usefull* you wont find any useless gibberish on them
Run the example within your console OUTSIDE the ZF folder!
/path/to/php Zend/Gdata/Maps/Examples/example.php
Once youre used to it, use it in your project as any other library.
There's lot to be done yet! I'm sure there are a thousand of bugs.
Looking up for people who care to create a Google Maps Gdata Subpackage :)
Cheers!
Juan.-
martes, 16 de junio de 2009
lunes, 8 de junio de 2009
Zend Framework 1.8 PDO_MYSQL
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!
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!
jueves, 4 de junio de 2009
Cannot map the project with svn provider
So i began using eclipse ganymede seriously lately, downloaded and installed the subclipse plugin, checked out a project from our existing project repository, everything seemed to be cool, until i wanted to checkout a different project in the same server.
Apparently the subclipse plugin was using the same data of my previous repository, which as I stated, was hosted in the same server.
QUICK FIX! (it works)
I tricked eclipse by adding an alias to the host in my /etc/hosts file, simple as:
200.xxx.xxx.xxx otherproject.mycompany.com
So, when importing the project, i used this alias, and then i was prompted again with username and password for the other repository that i needed to checkout.
Tried googling for this one altough found a lot of noise and nothing concrete.
Comments?
Apparently the subclipse plugin was using the same data of my previous repository, which as I stated, was hosted in the same server.
QUICK FIX! (it works)
I tricked eclipse by adding an alias to the host in my /etc/hosts file, simple as:
200.xxx.xxx.xxx otherproject.mycompany.com
So, when importing the project, i used this alias, and then i was prompted again with username and password for the other repository that i needed to checkout.
Tried googling for this one altough found a lot of noise and nothing concrete.
Comments?
Suscribirse a:
Entradas (Atom)