Developer.com: Forms Validation with Symfony and Prototype
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).
557628
Joshua Eichorn, being the generous soul that he is, is offering in his latest post to answer any Ajax questions his readers might want to know about.    Have you wondered whats the easiest way to submit a form using AJAX, what the status of HTML_AJAX development is, or what is covered in Understanding AJAX?   Well nows your chance.    To get your question(s) in, just submit them as a comment on this post and he'll come back in a few days with the answers.
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
132212
More Ajax with less code Tutorial: In the Introduction to Developing Web Applications with Ajax article we discussed the procedure used to create an Ajax application. As a developer, you probably noticed that the client JSP included a lot of JavaScript. Prototype is a JavaScript library for developing dynamic web applications, which aims to replace much of the JavaScript code in Ajax applications with its own Prototype functions. In this article, weâll develop the same application, but using the Prototype library.â¦
155453
Popular posts from PHPDeveloper.org for the past week:PHPBuilder.com: AJAX and PHP Part 1Developer.com: Threads Versus The Singleton PatternNick Halstead's Blog: Google Gears Caching of WordPress in PHPDevShed: PHP, MySQL and the PEAR DatabaseDave Dash's Blog: Installing a PHP that can do symfony+doctrine on DreamhostChristopher Jones' Blog: Upgrade PHP with Oracle Application Server on LinuxPHP.net: PHP 5.2.3 ReleasedPro::PHP Podcast: Newscast for May 31st, 2007Secunia.com: PHP Integer Overflow Vulnerability and Security BypassPHPBuilder.com: PHP and Regular Expressions 101
703914
On his blog, Stuart Herbert has a quick tip showing how to mimic a feature of Ruby on Rails:   I'm still working on the next article in my series looking at PHP on servers, so in the mean time, check out this simple way to emulate Ruby's nice way of handling separate getter, setter and state query methods in PHP.   He admits his example isn't as elegant as the Ruby method, but it does get the job done. Code for the method is included in his post ready for cut and pasting.
264948
In a new tutorial from PHPBuilder.com today, they introduce you to a very handy bit of functionality that can help make working with content on your site a much simpler process - Ajax Edit-in-Place (using Prototype).   Edit in place, like many other Ajax functions, uses the XmlHttpRequest Object to call an external page to send and receive information.    They start with the planning, the layout of how the mini application would work before even getting into the code. They assume that you already know how to work with a MySQL database and have an abstraction layer in place before starting in with the Javascript - echoing out the records (print_records), switching from a div to a textarea (changeClass), putting the content back into the database (save), and updating the page with the new information (update_page).   By the end you're left with a simple, clean edit-in-place that you can drop into any page that uses divs to contain the content.
277304
The results from the latest poll conducted by the International PHP Magazine have been released. This time, they asked developers what they thought was the best way to do QA for their PHP applications.   Among the options were things like "Do API documentation", "Use code analyzers that check CS violations, XSS or SQL injection attacks" and the number one choice - "Do unit tests using PHPUnit or phpt". Three other options followed behind (using debugging tools, code analyzers and having a commit mailing list) with the API documentation falling down in last place.   They already started up this week's poll too. This time, they ask developers to vote on which of the options make for good PHP code. There's four options - structured, consistent, portable and secure. Get your vote in today!
499517
Over on our sister site, AjaxDeveloper.org today, there's a note about the latest release of Joshua Eichorn's HTML_AJAX PEAR package - version 0.3.1.    HTML_AJAX 0.3.1 is out, lots of good bug fixes, and iframe fallback support for Opera and IE with activeX turned off.  More details are available on the release notes on the wiki.  Feature wise were getting close to beta release, its mainly getting a browser compatability test suite added in and doing some basic API review. If you have experience supporting an API without breaking bc, it would be great to get your feedback on HTML_AJAX.    In the release notes, there's mention of several bugs with Internet Explorer implementations and some yet unsolved problems (IE memory leaks and table support in Konqueror). Check out the rest of the notes for more of the bugs and issues they've taken care of...
135369
A quick post from janschneider.de talks about questions regarding the PHP5 compatibility of Horde, IMP, or other applications on the Horde mailing list
108353
Jared White has released the latest Developer Preview of his application framework for PHP 5 - Willowgarden DP2.   I'm so pleased to announce that Developer Preview 2 is ready. This is where the project is really starting to solidify and settle into a cohesive whole that can be used for hands-on development. I've been working on several Web site and applications using the DP2 codebase, and it has made my life as a PHP developer so much more fun than the bad old days of cobbling together scripts nearly from scratch.   A new wiki for the project has also been launched with content already being added - a User Guide and areas for tutorials and howtos. Jared also puts a call out to PHP 5 developers out there looking for something to get involved with to take a good look at the Willowgarden project and send him an email ("remove everything after jared before the @ sign").
218661
The DeveloperTutorials website has a new tutorial posted today that covers their method for combining Ajax and PHP to create a custom form handler.   For this project, I needed a form to send an email to the client once it's been validated and checked to be ok. [...] I decided to spice things up a bit with a little AJAX and a few effects from Scriptaculous. So let's dive into exactly how I did it.   They create their form first - a standard user info type of thing - and set it up to use the WForms validation script in PHP. They include the Javascript the script needs to run the validation and to handle sending the form's contents back out via an email.
172605
The International PHP Magazine has posted the results from their latest poll conducted over the week. This time they asked developers what they looked for in a framework.   The options this time were:  An O-O MVC structure ORM / Active Record Good Controller Structure Ajax Interoperability Ability to Incorporate Testing Open Source/Free License Security Good Helpers Scaffolding  With the first option "an OO MVC structure" leading the pack with almost twenty percent. Next in line was (in order of votes): having an Open Source/fre license, bundled with good helpers, good security, and a good controller structure.   Be sure to check out their latest poll too. It asks about security architectures and what developers out there think they should contain.
281096
The Zend Developer Zone has posted episode #32 of their popular PHP podcast series (PHP Abstract) - "Introduction to symfony" as hosted by Stefan Koopmanschap.   Today's special guest is Stefan Koopmanschap. Stefan is web application developer and professional services consultant for Ibuildings.nl. He is the initiator of the SymfonyCamp event in 2007, and is also trying to promote symfony in The Netherlands with his local website symfony-framework.nl. His own website can be found at www.leftontheweb.com   You know the drill - there's three ways to get this latest and greatest show:   listen on the web via the embeded player Download the mp3 for immediate satisfaction Subscribe to their feed in your aggregator of choice
635920
Popular posts from PHPDeveloper.org for the past week:Padraic Brady's Blog: Complex Views w/Zend Framework - The Final Chapter: ZFE & Zend_Layout in Core!php|architect: Stuff your stockings: single issues 30% offDeveloperTutorials.com: How to Install PHP 5 on LinuxStoyan Stefanov's Blog: Fancy FormattingSymbianOne.com: Your S60 Web server gets a boostAndreas Gohr's Blog: MySimple.php - A lightweight PHPMyAdmin substituteNessa's Blog: Working with Permissions in PHPSymfony Blog: Symfony 1.0.10 is OutMatthew Turland's Blog: Web Scraping Article PublishedJan Lehnardt's Blog: REST Controller for PHP Applications
746444
Josh Sharp has posted a new article to his blog advocating something that there's still a lot of controversy around in the PHP community - frameworks (when to use them and when to not).   PHP's ease of use is also its downfall. Because there are less restrictions on the structure of the code you write, it's much easier to write bad code. But there is a solution: use a framework. [...] Of course, if you're not taken with any of the packages above you can also write your own framework, which I've done and will talk about in the next few posts. But for now, let's have a look at the common benefits of a framework.   He's broken it out to talk about the usual framework structure, MVC and how a framework can enforce good code standards. He also mentions some happy side benefits of their use including making for "pretty URLs" and the helpers that most of the frameworks come with.
467583
Dave Dash has posted a quick hit for symfony framework users - how to dynamically adjust your page title at your whim.   A lot of the content on reviewsBy.us and other sites we make using symfony have dynamic content. We try to have our page titles reflect the content by prepending the name of the specific restaurant, document or menu item before the site name.   Their path to the prize is a method, prependTitle that's included in a class (myActions.class.php) and used via it's reference in the application's app.yml file.