Felix Geisendorfer's Blog: Migrating from WordPress to CakePHP
563550
Felix Geisendorfer is in the process of moving his blog from Wordpress to a customized "light-weight CakePHP replacement" he's developing to be extended later on. His post shares some of the tips he found so far.   In this post I'm simply going to throw out some snippets to show how I'm currently approaching the whole process in order to give both my insight into what works and what doesn't, while also hoping to get some people to share their insight into migrating legacy apps to CakePHP.   The tip in this post is primarily about the database side of things - his porting over of the information from the Wordpress table model to his new customized schema. His code example for the migration is included.
22956
The Bakery has four new items posted today - articles and tutorials on a few different subjects:   Multiple files upload in v1.2 - "Are you wondering how to upload more than one file by CakePHP? Today I wrote this solution." TuneShout.com: Music Downloads and CakePHP - "How I used CakePHP to build TuneShout.com, a socially controlled online music network and store." Zip Component - "I am currently building a web 2.0 implementation of Bake that allows users to create their entire application in a friendly web environment and than creates a zip on demand." Uuid Behavior - "I have a requirement to use UUID's as primary keys. I was initially using MySQL triggers to call uuid() on insert but in the end decided a behavior makes more sense. This behavior adds a UUID to the field specified in your models."   Check back with The Bakery
496780
Lorenzo Alberton has posted some updates about the PEAR packages that he maintains to his blog today including MDB_QueryTool, Mail_Queue2, MDB2, and Translation2.   Even if lately I've been coding way more in C/C++ than in PHP, I still keep an eye on PEAR developement: I reckon in the last month I've closed a bug a day, on average. And after my last call for help about my PEAR packages, I'm also pleased to announce that someone did indeed offer a hand. I'm happy to welcome not one, but two new developers!   Each of the items has links to their PEAR homepage and a few quick words on where the package stands (including developers involved or wanting to get involved). He also reminds developers out there that they can help out too if they want to jump in and get into PEAR.
416901
Aaron Wormus has a new note on his blog today about his presentation at this year's Zend/PHP Conference & Expo and another speaker he's excited to hear.    One of the Zend conference sessions that I'm pretty excited about is Don Samisa Abeysinghe's (of WSO2) "Fully Fletched Web Services with PHP".   I'll be presenting a session on "Moving to PHP5 with Style." This tutorial/case study will be based on experience in transitioning several codebases from PHP4 to PHP5, creating unit tests & started a move towards a service based architecture without a complete platform rewrite.    Aaron's talk fits under the banner of the "PHP Development" talks, including others on topics like hosting PHP applications on Windows, working with PDO, unicoding in PHP6, and using PHPUnit.
251767
The ProDevTips website has posted part seven of their series covering the construction of a community site (or CMS) with the combination of Smarty and the Zend Framework.   Since XOOPS didn't do it for me when it comes to this project I have started with the blog component. As it turns out, a blog is more complicated than you would think. Therefore this part will not cover the whole component, only as far as I've gotten at the moment. Covering the whole process in one piece would make it a very long piece indeed.   He provides the code examples and complete SQL structure to get the blog up and rolling as well as some handy tips and explanations along the way.
445025
Popular posts from PHPDeveloper.org for the past week:Stijn Leenknegt's Blog: [PHP6] function-return-array idea!GeesNotNerds Blog: Free PHP + Ajax chat appStefan Mischook's Blog: Object Oriented PHP Tutorial Updated - Steps 18 - 22Dave Dash's Blog: SymfonyCampWebDigity.com: PHP geotargeting techniquesEtienne Kneuss' Blog: Late Static Bindings ExplainedDevShed: Handling Static Data with PHP 5PHP-Learn-It.com: Cooking Cookies with PHPMichael Kimsal's Blog: PHP PredictionJob Posting: Steinman Recruiting Seeks Senior Developer (Littleton, CO)
584229
Popular posts from PHPDeveloper.org for the past week:Reinhold Weber's Blog: 40 signs you really are a lousy PHP programmerScott Klarr's Blog: PHP Cheat SheetsDeveloperTutorials.com: Building Desktop Applications in PHPPadraic Brady's Blog: The Zend Framework and Microformats: Zend_Microformat ProposedCommunity News: GoPHP5 Project Wraps UpJob Posting: Technology Resources, Inc Seeks Senior PHP Developer (New York, NY)Job Posting: Red Ventures Seeks Sr. Systems Analyst/Web Developer (Charlotte, NC)Community News: Forage - A Search Abstraction LayerCommunity News: php|architect Launches C7Y Site (News/Podcast/Forums)Richard Heyes' Blog: SMTP for PHP 5
680477
Jason Gilmore dropped us a line to point out the latest edition of his series on this time focusing on form validation with Prototype and a different framework than before, symfony.   These tutorials focused on the increasingly popular CakePHP framework, however in this installment I'll switch gears a bit and instead examine my preferred framework solution: symfony. Specifically, I'll show you how symfony's built-in support for the Prototype JavaScript framework can greatly enhance the user experience within your applications.   Jason introduces the Prototype library and a simple version of how it's used with a form to do a little validation. The next step is integrating it with something useful - a site built up inside the symfony framework (you'll need to know how to use it already).
384623
The Sanisoft blog has a quick post covering the theming of a CakePHP application (via the functionality in the core of the framework).    Despite this there are continued request for information on how to use this functionality on the list and even googling for cakephp + theme does not really return anything definitive. Once you have figured out how to use theming, adding new themes is errr... ummm... a piece of cake (sheesh talk about cliches!).    They break down the use of themes into a few simple steps - adding the property to the controller, setting the application's theme and install the theme's files to the correct locations.
247721
Continuing on from this previous post talking about Javascript in CakePHP applications, Felix Geisendorfer hands out more tips in this new blog entry targeted mainly at users of the jQuery Javascript library.   While the old solution was nice to manage the JS of a smaller application, this one is ment to structure your JS even in bigger projects. To make this possible I decided to go with a loose (MV)C pattern.   He gives an example of using a SiteController in connection with a CalendarController to help populate the information for the calendar.
341644
The guys over on Sanisoft.com dropped us a line today to let us know about a new entry on their blog showing how to implement attach and detach behaviors in CakePHP models.   Behaviors are one of the best things that have been added to CakePHP 1.2, they allow you to add functionality to your models in a very elegant and modular fashion. They also promote a lot of code reuse. Perhaps a real life example would illustrate it better.   They show how to create behaviors that can perform a save() call on an image with the backend code doing all the hard work. They create the two methods - dontActAs and nowActsAs - to make attaching and detaching simple.
139275
Popular posts from PHPDeveloper.org for the past week:PHP-Coding-Practices.com: Try-Catch Syntax WeirdnessPHPBuilder.com: Cross-Platform Database PHP DevelopmentIBM developerWorks: Java and PHP technology on AIX - Integrate the Java business application w/ DB2OpenSourceCommunity.org: What do you think makes a good CMS?Jonathan Snook's Blog: Elemental: Conditional Content with CakePHPDevShed: The Basics of Using the Factory Pattern in PHP 5Builder.com.au: PHP exploit code plants itself in GIFJohn Cox's Blog:  Linux.com Now PHP PoweredNick Halstead's Blog: Solving Programming ProblemsPHP-Tools Blog: Testing FIT
416010
The IBM developerWorks site brings the community another great tutorial today, this time looking at the CakePHP framework and the creation of a simple application with it.    In "Cook up Web sites fast with CakePHP, Part 1: Adding related information and services", they build a sample application (Tor) from the ground up (installation guide and all) that will take in a username and password on a login page. Their goal is to show you how much time you could safe by using the framework over just the usual library-based (or procedural) programming methods.   You will need to be a bit familiar with PHP and the Model/View/Controller design pattern before you get started here, but if you have that down, you can just jump right in. You'll also either need to register with the site or log in with your account information to get to the good stuff.
662669
In this new post to his blog today, Tim shares some of the tools that he uses to develop his PHP applications (including supporting the CodeIgniter project).   IÃ¢ÂÂve been asked on several occasions to spill the beans on my development environment. Sadly, itÃ¢ÂÂs probably not the easiest setup - but it works for my stubborn mind.   Applications included in his list are things like PHP Eclipse, CuteFTP, XAMPP and Subversion. He also mentions a Firefox extension, Devboi, that offers quick access to several different reference manuals on the web.
636915
Popular posts from PHPDeveloper.org for the past week:RefreshinglyBlue Blog: PHP vs Ruby - Practical Language DifferencesAndreas Gohr's Blog: Determine StumbleUpon RankingsPHP.net: PHP 5.2.4 ReleasedThe Bakery: Five New Posts - Custom Views, CSS, ViewInFile, ActsAs and Email ValidationPHPBuilder.com: File uploads made easyStefan Mischook's Blog: Turning on display_errors in WAMP - Video Tutorialphp|architect: Pro::PHP Podcast - Newscast for August 2007MT-Soft Blog: Creating a secure PHP production environment from Source CodeCommunity News: Andi Gutmans to Present at AjaxWorld 2007HowTo Forge: How To Set Up A Facebook RSS Feed Reader
149334
On the heels of a rant posted by Matt Mullenweg (of Wordpress), Ed Finkler has posted some of his own thoughts and rebuttals to the points Matt made.   Among these points are comments about PHP5 features that "could be helping Wordpress users right now" including:   Parameterized SQL input to eliminate SQL injection attacks Filter extension to combat XSS, CSRF, etc. attacks Prepared statement/transaction support in PDO and MySQLi Improved OOP features and support (code quality, extensibility)   Ed pushes that it's not about the slow adoption of PHP5 in other places. Its about the slow adoption of it in Wordpress so far as it relates to Matt:   The thing is, support of PHP5-only features in WP would give it better speed and security right now. And especially in the case of security, Matt's reliance on what users say they want is a critical error: users don't ask about security until well after it becomes a serious issue. Wordpress has one of the worst security records of any PHP application, so I'll go out on a limb and say that it's a problem now. Even if WP users aren't talking about it, WP's core dev team should have addressed this already.
23151
Here's what was popular in the PHP community one year ago today:PHPClasses.org: File upload progress meter for PHP 4, at last!Zend Developer Zone: Zend Framework Preview Release 0.6.0 AnnouncedIBM developerWorks: Generate Flash movies on the fly with PHPMike Bernat's Blog: Creating a Simple Registration Script using PHPphp|architect: An overview of the CakePHP frameworkPHPBuilder.com: Reading RSS feeds in PHP: Part 2The Bakery Blog: SwiftMailer Component TutorialPHP-GTK Community Site: Merry Christmas (A Holiday Widget)Ben Ramsey's Blog: Installing the Eclipse PHP IDEZend Developer Zone: Zend Studio 5.5 WalkthroughCommunity News: Vancouver PHP Conference 2007Edin Kadribasic's Blog: BenchmarksJSLabs Blog:  phpBB 3...is it worth the wait?Christopher Jones' Blog: Installing Oracle XE on Ubuntu with PHPChris Chabot's Blog: phpSocketDaemon