Today i will show you how to put together: Zend Framework, Doctrine and simple jQuery Grid in easy way. All i want to do is to get some data from database with doctrine, format that data and send it to the template with Zend_Json:) Really nothing special.
Ok. Let’s start. First of all we need to create database schema.yml. It is realy easy country table:
Country:
tableName: country
columns:
id:
primary: true
autoincrement: true
type: integer(10)
name: string(50)
description: string(255)
Continue reading ‘Zend Framework + Doctrine + jQuery Grid’
Some time ago i have shown you how to integrete Doctrine with our Zend Framework. Because it is really hard to say how much i hate the Zend_Db_Table ideology of working with database (i think it is not only my opinion), i will try to show you advantages of the Doctrine way. In this post I only want to give you some really easy introduction to Doctrine with Zend (it is just introduction without real world examples).
Doctrine
is an object relational mapper (ORM) for PHP 5.2.3 and later that sits on top of a powerful database abstraction layer (DBAL). One of its key features is the option to write database queries in a proprietary object oriented SQL dialect called Doctrine Query Language (DQL), inspired by Hibernates HQL. This provides developers with a powerful alternative to SQL that maintains flexibility without requiring unnecessary code duplication.
Continue reading ‘Zend Framework + Doctrine - introduction’
Working on my new project i really need to find a good solutions for unsetting many fields in easy way. I don’t really like philosophy of unsetting each element that i don’t need. Sometimes when i add new fields to my tables i must remember to unset (all) that fields in my Forms - really irritating:) Finally i found a solution which is working really good for me - it’s nothing special but really helpfull.
Continue reading ‘Symfony 1.2 - sfForm - Yet another useful function’
Już praktycznie od tygodnia dostępna jest nowa wersja świetnego (przynajmniej w mojej opinii) frameworka dla PHP. Nie będę tutaj wychwalał wszystkich zalet tego frameworka - po szczegóły odsyłam na stronę projektu Symfony , wymienię jednak kilka najbardziej istotnych zmian:
-w wersji 1.1 mogliśmy przetestować nowy, w pełni obiektowy framework dla formularzy, w 1.2 został on poprawiony i ulepszony (zagnieżdżone formularze są teraz naprawdę zagnieżdżone, wywołanie metody save na formularzu wywołuje save na podformularzach, nowe widgety m.in. sfWidgetFormChoice i walidatory);
Continue reading ‘Symfony 1.2′
Najświeższe komentarze