|
|
Ivan Iordanov's Blog: extending Zend_Db_Table to create NestedSet models
Ivan Iordanov has posted a method he's come up with to extend the existing Zend_Db_Table functionality (of the Zend Framework) to create NestedSet models for your app. Last days I've been trying to customize Zend's Framework. My goal is to create simpler models. Currently I'm making some db models that handle stuff around wide used designs. Such design is the Nested Set model. It is an adjacent list realized in SQL as a tree. You can find a good introduction to nested sets at mysql developer zone. He steps through the creation of some example database tables, his class and controller to hook into the Zend Framework application and this
Citeste mai mult
| Comentarii (0)
| Salveaza
|
|
|
|
Ivan Iordanov's Blog: extending Zend_Db_Table to create NestedSet models
Ivan Iordanov has posted a method he's come up with to extend the existing Zend_Db_Table functionality (of the Zend Framework) to create NestedSet models for your app. Last days I've been trying to customize Zend's Framework. My goal is to create simpler models. Currently I'm making some db models that handle stuff around wide used designs. Such design is the Nested Set model. It is an adjacent list realized in SQL as a tree. You can find a good introduction to nested sets at mysql developer zone. He steps through the creation of some example database tables, his class and controller to hook into the Zend Framework application and this
Citeste mai mult
| Comentarii (0)
| Salveaza
|
|
|
|
Community News: PHP Women Article Contest Update
We've mentioned it before but we just wanted to remind you again about the article contest that the PHP Women are holding with fame and glory going to the winners (oh, and there's prizes too). The topic is "Best Practices" and all you have to do to enter is submit an article - long, short, good or bad - over in the Best Practices forum on their site. Want an example? Check this one out. Now for the good part - there'll be two winners: the best two entries will get the top of the line prizes, licenses for Zend Studio for Eclipse) and, of those two, one will get inclusion of their article into a future issue of Linux Pro Magazine. The other will be
|
|
|
Community News: PHP Women Article Contest Update
We've mentioned it before but we just wanted to remind you again about the article contest that the PHP Women are holding with fame and glory going to the winners (oh, and there's prizes too). The topic is "Best Practices" and all you have to do to enter is submit an article - long, short, good or bad - over in the Best Practices forum on their site. Want an example? Check this one out. Now for the good part - there'll be two winners: the best two entries will get the top of the line prizes, licenses for Zend Studio for Eclipse) and, of those two, one will get inclusion of their article into a future issue of Linux Pro Magazine. The other will be
|
|
|
Developer Tutorials Blog: Getting Started with ORM in PHP
A recent post on the Developer Tutorials blog takes a look at a fundamental part of several of the PHP (and other language) frameworks out there - the Object Relational Mapping (ORM) layer for database access. Instead of direct database access, an ORM layer in a PHP framework can make "objects" stored in a database behave like actual objects from a programming perspective - for example, creating a new "car" stored in the database could involve a call to $car->new(). By abstracting actual database access, web development can be more productive and result in more reliable applications. Here's a quick intro to ORM in PHP. They talk about ORM's role in how applications interface with data (abstracted out to objects) and some examples of it in
Citeste mai mult
| Comentarii (0)
| Salveaza
|
|
|
|
Developer Tutorials Blog: Getting Started with ORM in PHP
A recent post on the Developer Tutorials blog takes a look at a fundamental part of several of the PHP (and other language) frameworks out there - the Object Relational Mapping (ORM) layer for database access. Instead of direct database access, an ORM layer in a PHP framework can make "objects" stored in a database behave like actual objects from a programming perspective - for example, creating a new "car" stored in the database could involve a call to $car->new(). By abstracting actual database access, web development can be more productive and result in more reliable applications. Here's a quick intro to ORM in PHP. They talk about ORM's role in how applications interface with data (abstracted out to objects) and some examples of it in
Citeste mai mult
| Comentarii (0)
| Salveaza
|
|
|
|
SitePoint PHP Blog: Keeping current with PHP
Today on the SitePoint PHP blog Troels Knak-Nielsen reminds the community about a "one-stop resource" that they can use to keep up to date on some of the latest happenings with the PHP language, the PHP.net wiki. Since March, there has been a wiki at wiki.php.net. The most interesting section is probably wiki.php.net/rfc, which - as the name implies - contains RFC's for improvements of the language. I've rambled on about closures and lambdas before, but as you can see, there is now an accepted patch. Whether it'll make it into 5.3 is unlikely at this point, but it l
|
|
|
SitePoint PHP Blog: Keeping current with PHP
Today on the SitePoint PHP blog Troels Knak-Nielsen reminds the community about a "one-stop resource" that they can use to keep up to date on some of the latest happenings with the PHP language, the PHP.net wiki. Since March, there has been a wiki at wiki.php.net. The most interesting section is probably wiki.php.net/rfc, which - as the name implies - contains RFC's for improvements of the language. I've rambled on about closures and lambdas before, but as you can see, there is now an accepted patch. Whether it'll make it into 5.3 is unlikely at this point, but it l
|
|
|
Zend_Acl and MVC Integration Part II (Advanced Use)
In the previous article we saw how to setup our Zend_Acl instance and how to attach it to the MVC environment (by using the Front Controller Plugin), but what about setting another action for the denied access, or how does an article be edited only by its owner?, this, and some more is what we are going to see in the following examples.
|
|
|
Handling Attachments in MIME Email with PHP
In this second tutorial of the series I m going to teach you how to improve the initial structure of the MIME mailer class developed in the first article by giving it the ability to work directly with attachments. Sounds fairly interesting right Then don t waste any more time in preliminaries and begin reading this article now ... Villanova University Six Sigma & IT Certificate Programs 100% Online programs in Six Sigma, IS Security, CISSP Prep, Business Analysis, Proj. Mgmt. and more!
|
|
|
Chris Hartjes' Blog: What's In Chris' Brain, July 2008 Edition
Chris Hartjes has made made a few comments on his blog about things going on in the online world - two of which pertain to PHP: - Closures and lambdas coming to PHP - he mentions the addition of lambdas and closures into the next major version of PHP (5.3) and his thoughts on how they've been abused in the past.
- The Framework Jihad:
If you substitute "modularized code with standardized API" for "framework", would that make people feel better? I use frameworks because so much of the infrastructure code is stuff I DO NOT WANT TO WRITE ANY MORE. After 10 years of doing this, it's time I stopped rei
|
|
|
Chris Hartjes' Blog: What's In Chris' Brain, July 2008 Edition
Chris Hartjes has made made a few comments on his blog about things going on in the online world - two of which pertain to PHP: - Closures and lambdas coming to PHP - he mentions the addition of lambdas and closures into the next major version of PHP (5.3) and his thoughts on how they've been abused in the past.
- The Framework Jihad:
If you substitute "modularized code with standardized API" for "framework", would that make people feel better? I use frameworks because so much of the infrastructure code is stuff I DO NOT WANT TO WRITE ANY MORE. After 10 years of doing this, it's time I stopped rei
|
|
|
Community News: Latest Releases from PHPClasses.org
|
|
|
Community News: Latest Releases from PHPClasses.org
|
|
|
Google’s Flash Indexing Disaster
On July 1st, Google announced that, using technology provided by Adobe, it had enhanced the Google Search Engine to index the text embedded within Flash movies. What followed was bad advice from Google, second-guessing by web developers, and finally a few straight answers.

|