shepherdweb.com

Archive for the 'CakePHP' Category

Undefined index: action in /cake/dispatcher.php line 144

Monday, April 2nd, 2007

It took me almost an hour to figure out what was causing this error.
Undefined index: action in /cake/dispatcher.php line 144

The problem turned out to be that one of the values in $property["Listing"] was returning a value which included a space. Something like this: “396 “. Since the requestAction method uses a URL to [...]

Using the CakePHP selectTag HtmlHelper

Sunday, January 7th, 2007

The use of the selectTag HtmlHelper seems to be confusing to a lot of people (judging from the popularity of questions about it in the CakePHP Google Group). Hopefully I can clear up a few things about it.
Parameters
selectTag ($fieldName, $optionElements, $selected=null, $selectAttr=array(), $optionAttr=null, $showEmpty=true, $return=false)
$fieldName will typically be the name of your model in [...]

Editing hasAndBelongsToMany (HABTM) Relationships in CakePHP

Monday, August 21st, 2006

I had a difficult time wrapping my head around how to do this. The manual is not much help. I did get a few clues from a couple of Wiki articles, but in the end I had to piece all this together with stuff I dug out of the CakePHP Google Group.
Let’s assume [...]

CakePHP Shopping Cart

Wednesday, July 26th, 2006

Looking for a standards compliant, open source, php shopping cart built on the popular MVC CakePHP framework? Checkout BakeSale.
Technorati Tags: CakePHP, BakeSale, ecommerce, shoppingcart

Framework Performance Comparison

Friday, July 14th, 2006

Stress tests were performed on three MVC frameworks, Symfony on PHP, Rails on Ruby and Django on Python. Results have been published on the RoR Wiki. I would be interested in seeing the results of the same tests run with CakePHP.Technorati Tags: frameworks, symfony, rails, django, cakephp, mvc

Single User Admin Area Authentication with CakePHP

Friday, July 14th, 2006

This script is mostly the work of Shunro Dozono with some tweaks of my own to make it work with a path to /admin. It handles simple administrator authentication for a single user. Ok, here it goes…
Pre-requisite: CakePHP
First, download Shuro’s component, sd_auth. Copy and paste the code into a file called [...]

Tiptoe Through the Frameworks

Monday, July 3rd, 2006

Preface
Almost two years ago I jumped into ASP.NET and C# headfirst. This was my first exposure to OOP. I love it, and I don’t plan on turning back. However, for personal projects and freelancing I prefer to use PHP. PHP was my first “server-side” language (not counting a really small ASP [...]

Bad Behavior has blocked 692 access attempts in the last 7 days.