PJ Hile

Don’t worry, I’m from the Internet.

PJ Hile header image 4

Entries Tagged as 'CakePHP'

Ignoring CakePHP’s tmp/ directory with Subversion

July 30th, 2008 · 2 Comments

I’ve noticed on many occasions that I’ll start a project with a Subversion repo and immediately add/commit all the files included with Cake’s nightly build including the tmp/ directory.  If you’ve ever done this, you’ll know it’s kind of a pain always having those cache/log files showing up when you commit.  So, for my benefit, [...]

[Read more →]

Tags: CakePHP · PHP · Subversion

Changing the CakePHP Auth component password hash

May 29th, 2008 · 5 Comments

In moving some legecy sites over to CakePHP, I’ve come across some situations where I need to the Auth component to ‘hash’ the password differently. For example, just a straight md5() of the password.
To accomplish this, you need to empty your Security.salt variable in /app/config/core.php (Not positive what all this will affect):
Configure::write(’Security.salt’, ”);
and change [...]

[Read more →]

Tags: CakePHP

Send more data with CakePHP’s observeField()

March 10th, 2008 · 4 Comments

I just ran into a situation today that required me to have access to more than one form field when doing an ajax request within my CakePHP application. Basically, when someone is typing an address, I want to check Google’s Geocode API for a latitude and longitude coordinate.
The important part is the ‘with’ option:
‘with’=>’Form.serializeElements($(”CommunityForm”).getElements())’
My [...]

[Read more →]

Tags: CakePHP