Webeks.net - freelance programming
freelance programming - php, Joomla, Zend ...
Home :: Articles :: Programming :: PHP :: Zend framework - my first steps

Zend framework - my first steps

Written by Miha

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.


blog comments powered by Disqus