Felix Geisendorfer's Blog: MacGyver menu for CakePHP - What's the active menu item?
128022
In a new post to his blog today, Felix Geisendorfer talks about view coding - specifically working with a menu and determining which element is active.   One of the challenges many of us have faced before and will face in future is building a menu. Now this of course is very simple assuming that we're just shooting for a static &lt;ul> with some &lt;li>'s containing the links. However the tricky part is to figure out what is the active menu item. I had some code doing this in the past but tried out a new flavor of it today which I call the MacGyver menu for CakePHP as it's a little dirty yet powerful and easy to maintain.   In his included code, he creates a simple navigation from an array of titles/links and, with some sorting, a regular expression and a CSS class, the selected item can be highlighted simply.
632361
The Bakery has a few new articles, helpers, components - even an event posted including:   Want to order your SQL Persian Date Helper Using equalTo Validation To Compare Two Form Fields CakeFest: 2008-02-06, Orlando, FL Asset Mapper Modified Preorder Tree Traversal Component Ajax elements available anywhere Bindable Behavior: control your model bindings   Keep an eye on The Bakery for more great CakePHP-related content.
522938
On of the next steps up from building a regular menubar or toolbar in your PHP-GTK application is the addition of icons to help liven up the menus and help users quickly find what they want. This new tutorial on the PHP-GTK Community Site aims to help with just that.   When creating a soft, you'll often want to have a menu like in the majority of graphical softs. It's often clear in your mind but require more code than you want to do simple things using a plain GtkMenu. So here's a class to help you to quickly design such menus and will also allow you to display nice icon in your menus.   They start with a usage example before getting into the code of the class - a simple menu with a "file" and "help" top menus and under "file", "open" and "exit".    The complete code for the class is included in the post so it's a simple cut and paste away from being yours.
517257
On the Blogge site, there's a listing of "must knows" that developers should understand about the CakePHP framework when working with it.   CakePHP is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility.   Among those on the list of handy tips for using the framework are things like:   Static pages - Adjusting other data sent to the layout Viewing the SQL queries that are running behind the scenes Using bake.php Complex model validation Creating a model for a table that doesn't actually exist in the database Inserting multiple rows in succession
698334
Popular posts from PHPDeveloper.org for the past week:The Bakery: Six New Articles/Tutorials PostedEvert Pot's Blog: PHP: Arrays vs. ObjectsDevArticles: Learning AJAXInternet Super Hero: PHP: mysqli_fetch_all()David Coallier's Blog: PHP Namespaces (Part 1: Basic usage & gotchas)I/O Reader: 15 Cool Things & 12 Things to Dislike About PHPProPHP Podcast: Newscast - August 16, 2007PHPBuilder.com: Dynamic XML with PHPSite News: Popular Posts for the Week of 08.17.2007PRADO Watch Blog: PRADO Watch: Interview With Timani Tunduwani - Why I Moved From CakePHP to PRADO
66953
Chris Hartjes has posted again about the "rebirth" of a Zend Framework component he's worked on - the Zend_Service_Audioscrobbler.   So, dear readers, I received some nice emails and comments from those you have used Zend_Service_Audioscrobbler, along with having a nice email conversation with Wil Sinclair from Zend.   He still wants to "rip things up and start over", but has decided on a slightly different route - mapping the older function calls to the new ones via a __call catch and including a message stating that the older function call would be deprecated.
174258
On his blog today, Felix Geisendorfer has a release announcement posted for the latest version of Drake, and Drulap-CakePHP hybrid, has been released (version 1.0.1b).   This is just a quick announcement that a completely new Drake has has been released by Mariano Iglesias. For those of you who don't remember: I used to have some fun with integrating CakePHP with other PHP applications around such as drupal which in term created a project called Drake. I only released a couple versions and by looking at Mariano documentation for Drakes none of them were as easy to set up.   You can more details on the project from its homepage on Sypad.com as well as the full documentation and downloads.
242189
Ever wondered just how many PHP frameworks there are out there? Well, this mapping of them gives you a good idea. ColdScripts.com has created a single page, digg-ish voting system for lots of the PHP frameworks out there, letting users pick their favorites.   The brighter/clearer the framework's information, the higher it's ranking. To cast a vote, just click on the "+" (plus) in the box for your choice, or the "-" (minus) to detract from the score.   So far, it looks like CakePHP and Symfony are tied in the lead with Code Igniter and eZ Components following close behind. Be sure to head over and vote for your favorite framework today!
536363
Matthew O'Phinney has posted the slides from a New York PHP User Group meeting that Mark de Visser (of Zend) and he spoke at:   Mark presented information on Zend's development stack and toolset (which I entirely missed, as I was still in transit), and I came in to give an overview of Zend Framework.   Matthew posted the slides right to his blog. They're in a browser-based slideshow system that will launch wen you double-click on the index file.
157509
The Bakery has lots of new things they've posted recently - information on new components, tutorials, and details on new releases of the framework. Here's a sampling of some of the latest:   New Year, New Beta Getting started quickly with Scriptaculous effects Getting Tidy Acts As Emailable Introducing the cakephp-instaweb webserver Overriding specific HTML tags before using helper methods Smarty View for 1.2 Cake Meet Pie CakePHP on IIS Crypter Component   Be sure to keep checking back on The Bakery for the new content added all the time.
614738
Matt Wade has posted a quick item to APress' Inside Open Source blog today mentioning an update to an item he'd previously mentioned - issues with the Zend_Cache module.   One of my complaints was the Zend_Cache did not accept lifetimes on a per object basis, but rather the lifetime was at an application level. I just received notice in my inbox that the issue has been fixed! The change is currently in svn, and should be in the 0.80 preview release. Thanks go to Fabien for the fix.   You can download this latest version of the Framework (0.7.0) from the Zend Framework website.
664458
On PHPGeek.com, there's a new post talking about the use of the AuthComponent for CakePHP for access control in your application. It's not a tutorial, but it does follow how the developer came upon the component and why they're using it.   Nearly everything that is built needs at least some level of authentication and authorization before users can be let loose to use it. Unfortunately, not only is there a lot of confusion out there on how to use it, but lots of poorly done, reinvented wheels out there because of it.   He points out the solution he came across via another article from the "Another Cake Baker" blog (lemoncake) show how to use the component for ACL in CakePHP 1.2.
313520
In a follow-up to a previous blog post, Alexey Zakhlestin shares a few more thoughts on the project and the proper object hierarchy's going for.   actually, I changed it completely 3 times already in my thoughts. I finally "see the light"(tm) and will implement it on a weekend. I think about converting SCGI-part to a simple "driver" and move all http-related stuff to a separate driver-agnostic set of classes. This way, I would be able to implement FastCGI as anther driver without altering applications. If you have any better ideas - let me know.   He also includes a link to another sample application that uses the functionality to create a pie chart (including some benchmarks) with the help of the eZ components framework.
520857
The PHP-GTK Community site is back again today with another quick tutorial showing how to build a submenu with the help of the GtkMenubar widget.   It's broken us into the key sections - details, a visual tree of the structure, the logic tree and relationships, and, finally the source code. It's a pretty simple process of creating the menu and appending the elements onto it, much like a normal drop down menu. The key is in the set_submenu function, creating a new object for the code to append the submenu elements to. The rest is just simple appends.   They've also included a screenshot to illustrate the end result.
84118
KillerPHP.com has a new articles posted today looking at another one of the components of the Zend Framework - Zend_View.   As part of a series of articles about the Zend Framework and MVC, I'd like to take some time and cover Zend_View (the 'V' in that MVC triad).   He touches on where the Zend_View component's place in life is and even includes some sample code to show one in action (along with an explanation of what it's doing).
575210
Popular posts from PHPDeveloper.org for the past week:PHP-Coding-Practices.com: How I Turned A Slow Array Sort Into A Quick One Using Quicksort AlgorithmZend Developer Zone: PHP Abstract Podcast Episode 4: Planning ProgrammingWeb Development Blog: Save bandwidth with PHProxy and ip2nationJob Posting: Assembleron Ltd Seeks PHP 5/MySQL/Ajax Developers (Reading, UK)PÃ¡draic Brady's Blog: Complex Views with the Zend Framework - Part 6: Setting The TerminologyThe Bakery: Four New Articles - Load Balancing, Request Info, UUID Behavior & Upload ThumbnailsCommunity News: PEAR Installer version 1.6.0 releasedChristopher Kunz's Blog: Building PHP with cURL and libmysqlclient5DevShed: Working with Prepared Queries with PDO Objects in PHP 5Secunia.com: rPath update for gd, php, php-mysql, and php-pgsql
611971
Although frankly I really didn't feel the need to read the entire thread, I can tell you that the posting to the PHP 3 mailing list is related to the Smarty Templating Engine back in the day. In fact, I believe this was the original spec Andrei proposed before Smarty even existed. Although I don't remember the exact e-mail, this posting reminded me that there was a point in time I thought exactly this way... quoting myself: