Things tagged with PHP
PHP programming
-
Relaunch!
Mar 24 2008
Well the redesign and rebuild is complete. I’ve gutted my site and rebuilt it from the ground up. There are more changes than just a shiny new design though. With this redesign I’m shifting the focus of the site around a bit as well. -
Fancy routing examples with CakePHP 1.2
Apr 15 2008
Routing in CakePHP is quite flexible in how you can route your urls to your controllers and actions. Offering both variable replacement and regex routing. You can route almost any parameter that is set by dispatcher and more. So lets try a few of these.
-
Understanding MVC and CakePHP
Apr 20 2008
Continuing with the trend of CakePHP information here, I’m going to cover some of the acronyms and lexicon of CakePHP. I hang out a lot on #cakephp and there are repeating trends in some of the questions that get asked so hopefully I can answer some of those questions here. As well as provide a bit of my personal experiences.
-
Hacking the Form Helper and Editing Multiple Rows with CakePHP 1.1
Apr 26 2008
CakePHP 1.2 is a fantastic improvement over 1.1. However like many, my work has a stable release only policy. So I’m stuck using 1.1 at work for the time being. But after drinking the 1.2 juice, 1.1 is missing some of the potent automagic flavours. First up editing multiple rows in models. The stock syntax is lacking in that it doesn’t support this at all.
-
Code Coverage in CakePHP 1.2 Test Suite
Apr 30 2008
Super fresh in the SVN builds of CakePHP 1.2 is the new code coverage analysis. If you are living on the bleeding edge of cake development or just want a preview of the neat things to come once 1.2 is complete read on.
The guys at debuggable have contributed a fantastic tool to the testing suite for CakePHP 1.2.
-
Creating RSS feeds with CakePHP and extensionless routing
Mar 28 2008
Making RSS feeds and alternative content types other than HTML opens a lot of options in how your content can be used, displayed and combined. In prior version of cakePHP webservices were indicated by prefixing a url with the desired content type so an xml version of a blog index might look like
xml/posts/index. -
Geshi Helper
Apr 05 2008
A Helper Class for CakePHP providing an easy to use interface for the GeSHi syntax highlighter. Read more at geshi helper for CakePHP
-
Geshi Helper for CakePHP
Apr 05 2008
GeSHi or the Generic Syntax Highlighter is a simple yet powerful syntax highlighter for many languages. Implemented in many CMS. When I wanted syntax highlighting for my postings I decided to implement GeSHi. I wanted to share my implementation of GeSHi as a CakePHP helper.
-
Hacking the CakePHP FormHelper Adding Required Indicators
May 14 2008
Indicating to the user which fields are required is something that increases usuability, helping the user fill out the form more effectively and efficiently. These visual cues have absolutely nothing to do with the structure of the document, and would best be handled by CSS.
-
Contributing to your first open source project.
May 24 2008
I was recently asked to join the development team at CakePHP a position I graciously and excitedly accepted. And although I’m still a bit wet behind the ears, I thought I would share some of my experiences in how you can get involved with Open Source Software.
-
PHP's isset() and arrays
Jun 01 2008
Earlier this week I learned that
isset()behaves a little differently than I had expected when dealing with arrays. Now I already knew thatisset()would return false on a variable not existing, or being set to null. However, I was not expecting it to return false on an array key existing and being set to null. -
CakePHP RC1 released
Jun 05 2008
Earlier today a CakePHP 1.2 RC1 was released. You can read the full changelog
or read the official announcement to learn about whats been going on since the beta. Also download a new Cake and smell the fresh icing. -
Eating my own dogfood Upgrading to CakePHP RC1
Jun 13 2008
Well today I took the time to upgrade to CakePHP 1.2 RC1 in the spirit of ‘eating your own dogfood’. I got the usual warnings about
vendor()being deprecated. I also took the time to switch over all my Bindable calls to the fresh core Containable Behavior. Which for the most part consisted of changingrestrict()calls tocontain()calls. -
More dogfood
Jun 29 2008
Well I just got back from a wonderful 2 week vacation of europe. My wife and I went to Amsterdam, Rome and Paris, for an art-geekout. We went to every museum we could and saw tons of beautiful works that really need to be seen in the stone and paint. We took tons of photos and I hopefully will find the time to do some painting based on them in the upcoming months.
-
Webservice Behavior
Jul 04 2008
A Model behavior and test case for use with CakePHP 1.2
-
Introducing the Webservice Behavior
Jul 04 2008
As webservices grow so does the need for being able to communicate with them in an easy fashion. This simple blog alone uses 2 webservices. The recent tracks at the bottom is a feed I pull from Last.fm and my spam protection is provided by Akismet. When first building my site I looked for an already built solution and found a partial solution in Felix Geisendörfer’s WebModel.
-
Auth and ACL an end to end tutorial pt. 1
Jul 07 2008
Now, there are many tutorials out there for Auth and ACL in CakePHP. However, none of them (as far as I know of) cover putting together Auth and ACL from beginning to end. That is what I’m going to do in this article. I am splitting the article into two parts; the first about setting up our app and getting the Aros running, the second on building Acos and putting it all together.
-
Auth and ACL an end to end tutorial pt.2
Jul 13 2008
If you are looking for part one go here
In the last article we created the basic models, controllers and views for our Auth and Acl controlled app as well as initialized the Acl tables. We also bound our groups and users to the Acl through the use of the
AclBehavior.
Recent Posts
- Creating easy reports with pivot tables
- Auth and ACL an end to end tutorial pt.2
- Auth and ACL an end to end tutorial pt. 1
- Introducing the Webservice Behavior
- More dogfood
- Eating my own dogfood Upgrading to CakePHP RC1
- CakePHP RC1 released
- PHP's isset() and arrays
- Contributing to your first open source project.
- Hacking the CakePHP FormHelper Adding Required Indicators