- Site News: Popular Posts for the Week of 11.05.2010
- Juhana Rasanen's Blog: Using MongoDB with CodeIgniter
- Mashable: 10 Intermediate and Advanced Tips from PHP Masters
- Community News: PHP-Dev Mailing List - PHP 5.4 alpha
- Ahmed Shreef's Blog: Soap Web Services in PHP & hint on consuming from .Net
- Jose da Silva's Blog: Revisiting PHP 5.3 __invoke magic method
- DZone.com: From Doctrine 1 to Doctrine 2
- Project: PHPScenario - A Free Split Testing Library for PHP
- Agile Toolkit News: Yin and Yang of modern PHP UI Frameworks
- Web Builder Zone: 5 features of PHP that seem hacks, but save your life
- Site News: Blast from the Past - One Year Ago in PHP
- PHPBuilder.com: Four Sane Solutions for PHP Debugging
- DZone.com: Test Strategy Patterns
- OnStartups.com: Why PHP Is Fun and Easy But Python Is Marriage Material
- Vanessa Vasile's Blog: Simple Way to Parse an x509 Certificate with PHP
2011年11月3日星期四
Site News: Blast from the Past - One Year Ago in PHP
NetTuts.com: Zend Framework from Scratch
On NetTuts.com today there's a new tutorial helping you get started with Zend Framework "from scratch". They outline the full process - from download to the creation of a first application.
Ready to take your PHP skills to the next level? In this new "From Scratch" series, we'll focus exclusively on Zend Framework, a full-stack PHP framework created by Zend Technologies. First in our tutorial series, is "Getting Started with Zend Framework."
The tutorial (executed in a Windows environment) is broken up into seven parts:
- Download Zend Framework
- Set up your Zend Framework Environment
- Create your First Zend Framework Project
- Learn about Zend Framework's MVC Structure
- Pass Data From a Controller to its View
- Create a Layout in Zend Framework
- Create New Controllers and Actions
They use the Windows version of Apache to host the site (installation instructions not included). If you'd like to get the source for this tutorial series as it evolves, you can find it on github.
Henrik Bjørnskov's Blog: Symfony2: How to do a Wizard (multistep form) with Doctrine2
Henrik Bjørnskov has a new post with a technique you can use to combine Symfony2 and Doctrine2 to create a multi-step form (a wizard) without having to worry about lost user information between steps.
The easy ways is doing it with Javascript and just show/hide the correct fieldsets when needed. The downside with this approach is that the data is only saved and validated once at the end. So if the user reloads the page the entered information is gone. The other way is to have every Step in the Wizard being a seperate form and validate the data based on what step you are on and save the necessary fields.
For his method, he created a Manager class with a StepInterface that returns the correct field names, forms and template information to render. The interface code is included in the post as well as an example of it in use setting up the wizard object, making a report and getting the correct step information from the wizard.
User Group: Seattle User Group Meeting Tonight (3rd) - PHP on Azure & Git
The Seattle PHP User Group is having this month's meeting tonight (the 3rd) starting at 6:30pm at Market Leader, Inc featuring talka from Brian Swan on "PHP on Azure" and Jesse Keating on "Git".
Market Leader,Inc. is graciously hosting the venue for Seattle PHP Meetup in Kirkland, WA this month!! In fact, Ariz Jacinto (long-time member & frequent presenter at our Meetups), an employee of Market Leader, Inc., has gone bonkers and lined up a killer night for us all! Note the entrance and then celebrate the FREE PARKING!!
Brian Swan is a Microsoft advocate for PHP on Windows and Jesse Keating is the release engineer for Fedora Core. There's still time to RSVP on Meetup and attend this event - be sure to sign up so they know how many to expect!
2011年11月2日星期三
2011年11月1日星期二
Developer Drive: Create Your Own CRUD App with MySQL and PHP
On the Developer Drive blog today there's a new tutorial helping you build out a simple CRUD (create, read, update and delete) system using a MySQL backend. This is just the first part of the series, introducing you to some concepts and getting the ball rolling connecting PHP and the database.
You're may be wondering what exactly CRUD is. CRUD simply stands for Create, Read, Update and Delete and it is the one of the fundamental principles of programming logic that can be expanded and applied to larger projects. For example, let's imagine we're creating a social network and we like to have the ability for users to create accounts, edit and update information for those accounts and also delete said accounts; that is CRUD at work.
This first part covers the structure of the database that'll make up the storage and includes a brief snippet of code to connect your PHP to the database (using PDO).