Home Programming ZEND zend framework - my first steps

zend framework - my first steps

E-mail Print
Share/Save/Bookmark
After few days reviewing CakePHP (take a look my pre-review here and quickstart here) we decided to use Zend framework instead. This decision was made today after a job interview with new programmer. He already has experience in Zend development (his blog post - Slovenian language only). This said it should be clear that decision was based on existent knowledge and not which product is better.

Zend tutorials & stuff

blog tutorial

How to break code into modules

Database abstraction layer

To use Zend Db with PDO and MySQL on Win platform I used
$user = 'test'; $pass = 'testPass'; 	 
try{
 Zend_Loader::loadClass("Zend_Db");
$params = array ('dbname' => 'testDb', 'username'=>$user, 'password'=>$pass);
$dbh = Zend_Db::factory('PDO_MYSQL', $params);
} catch (PDOException $e)
{
 $e->getMessage();
}

$firstQuery = $dbh->query("SELECT * FROM users");
$results = $firstQuery->fetchAll();

print_r($results); //to see what we have stored in db

Blueprint CSS

CSS framework, which aims to cut down on your CSS development time. It gives you a solid CSS foundation to build your project on top of, with an easy-to-use grid, sensible typography, and even a stylesheet for printing.
Hits: 1483
Comments (0)Add Comment

Write comment

busy
Last Updated ( Wednesday, 12 November 2008 20:08 )  

Sponsored Links

My friends

Bookingpoint
partner websites

Donate

Do you find content useful? Please donate so I can cover my hosting expenses! Thanks!