 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Ibuildings Blog: Symfony 1.1
by Chris Cornutt July 30, 2008 @ 11:19:36
On the Ibuildings blogs, there's a new post from Stefan Koopmanschap taking a look at the latest major release of the Symfony PHP framework (v1.1) and some of the functionality it includes.
The official stable release of symfony 1.1 is now nearly a month old, and response so far has been fairly positive. This is not surprising, as this new version adds a lot of flexibility to the already flexible system that symfony offered. Let's have a look at symfony 1.1, and specifically to the points that I feel are especially exciting in this new release.
He looks at the new architecture of the framework, how it now handles forms, the improvements to the plugin system and the (partial) integration of the Propel ORM layer for accessing databases. The full listing of updates can be found here.
voice your opinion now!
symfony framework release feature architecture form plugin orm propel
Oracle Technology Network: Oracle Symfony in PHP Minor
by Chris Cornutt July 10, 2008 @ 18:02:37
The Oracle Technology Network has a new article posted looking at a basic application that combines the power of an Oracle database with the flexibility of the Symfony framework.
Where should someone who wants to learn Symfony begin? Project Symfony has a very informative and well-kept Web site, with extensive documentation. As it turns out, there is a book about Symfony and there are also numerous tutorials-unfortunately all of them created using a MySQL database. That is, in essence, why I decided to write this article about Symfony and Oracle. It's not a full-blown tutorial, but I hope it will be helpful to those who want to use Symfony with Oracle.
The sample application uses the latest version of Symfony, an Apache web server and the Zend Core for Oracle to install and configure the needed setup. The bulk of the tutorial is taken up with examples of how to tell the ORM layer of Symfony about your database tables and how to build the default classes from them.
voice your opinion now!
oracle symfony tutorial propel orm database layer
Francois Zeninotto's Blog: Comparing Propel, Doctrine and sfPropelFinder
by Chris Cornutt July 09, 2008 @ 10:24:59
Francois Zeninotto has posted a comparison of three different ORM (Object Relational Mapping) layers for PHP - Propel, Doctrine and sfPropelFinder (the last being a plugin of the symfony framework).
When it comes to ORMs, it's all a matter of preference. Is it, really? This post compares side-by-side the code required to perform some simple operations with three OO database requesting API. The purpose is to demonstrate that productivity, and not only style, can vary a lot depending on the ORM you choose.
He's worked up a long list of examples including methods to:
- Retrieving an article by its primary key
- Retrieving the latest 5 articles
- Retrieving articles based on a complex AND/OR clause
- Retrieving articles authored by people of a certain group
- Retrieving an article and its category by the article primary key
- Retrieving articles and hydrating their author object and the author group
Each one comes with their own (usually simple) code. His conclusions point out different "bests" of each - like sfPropelFinder being the "most magic" and that some of the limits of Propel are very frustrating.
voice your opinion now!
compare orm layer doctrine propel sfpropelfinder symfony framework
Symfony Blog: Internationalize your Propel Forms
by Chris Cornutt June 13, 2008 @ 08:46:56
In this new post to the Symfony blog, Nicolas Perriault shows how to quickly and easily internationalize your Propel forms in your Symfony application.
It has never been so easy to internationalize your Propel forms. In this post, you will learn how to leverage the new form framework bundled with symfony 1.1 to develop an interface to edit articles in several languages.
He uses a basic form layout and shows how to build out the files (via a build-all) and what it ends up looking like. He configures the two languages - English and French - that he wants to use in the form and pushes it through the CRUD generator to make a full web interface for it.
voice your opinion now!
internationalize propel form symfony framework application
Symfony Blog: How do I use Propel 1.3 in symfony 1.1?
by Chris Cornutt May 30, 2008 @ 16:12:31
A new post over on the Symfony blog today show how to combine the framework with the Propel templating system thanks to some new enhancements.
Starting with symfony 1.1, it is now possible to easily use Propel 1.3 in your project to take advantage of its speed improvements, nested set implementation, object instance pooling, among others. Most importantly, Propel 1.3 uses PDO instead of Creole as the DBAL, offering a significant performance boost.
There's a few steps to getting everything all set up, but they're pretty simple. First, you'll need to grab the right plugin from the Symfony repository, then you change the yml file configuration for the PDO connection, change a few settings in your propel.ini and clear the cache and rebuild the models - you're all set! (Complete commands and example configurations are included)
voice your opinion now!
symfony propel template framework plugin configure
Martynas Jusevicius' Blog: Calculating great-circle distance in MySQL and Propel
by Chris Cornutt May 01, 2008 @ 16:08:27
In a new post today, Martynas Jusevicius shows how to combine a little SQL magic with the Propel framework to fins the distance between two places:
Eventually the simple distance formula that I have blogged about turned out to be too inaccurate, even for locations within city bounds. I needed to use a formula to calculate great-circle distance which takes into account that the Earth is a sphere.
He includes the SQL to pull the data in the right format and the PHP code (using Propel) to reproduce it without having to write it by hand (complete with the bind variables to help with security and consistency).
voice your opinion now!
great circle distance mysql propel framework sql
|
Community Events
Don't see your event here? Let us know!
|