shepherdweb.com

Archive for the 'php' 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 [...]

PHP Link Flood

Thursday, October 19th, 2006

My favorite PHP sites:
100% PHP

PHP.net
PHP-Scripts Blog
PHP Developer
Marco Tabini
PHP Freaks

Cake PHP

CakePHP
The Bakery
CakePHP for Beginners
H3RALD
WithCake

Occasional PHP

Shaun Inman
Snook
There and Back Again

Technorati Tags: php, links

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 [...]

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 [...]

5 Life Lessons from PHP

Sunday, August 21st, 2005

I spend a lot of time writing code. The average week will consist of anywhere from 40-60 hrs of writing code for websites. While the majority of that time is probably spent writing ASP, HTML, and CSS, I’m also an enthusiastic PHP and Javascript programmer. I’m also beginning to delve into ASP.NET [...]

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