Although I've done a lot of php / mysql development, I am very new to
cake.

I am doing some work on my local machine for a client and am looking
at a site that another company built using cake.

The site includes a simple search form which accepts a zip and returns
a list of matching items.

When I grabbed the cake files and the associated database, the site
looked great locally, but the search form is returning no items.

I've tracked the issue to the getColumnType($column) function in C:\my-
path\cake\libs\model\model.php and the line 982, which is if
(isset($cols[$column]) && isset($cols[$column]['type'])) {

Using debug, I can see that $column is 'zip' (NB. the lowercase z) and
that $cols is an array which contains an element with the key 'Zip'.
This means that isset($cols[$column]) fails so the type is returned as
null.

I understand this should be the case as associative arrays are case
sensitive.

What I don't understand is how it is working on the server, or is
there any configuration settings I can use to get it working locally
without changing any of the code.

I have done a straight copy from the server and I double-checked and
the server matches my local copy in that the database has the
'Zip' (capital first letter) field and the form element has the name
'zip'.

Anyone know if there is some configuration setting that I can set for
my local xampp install? I am running Windows 7 Pro. and have a
basically unaltered XAMPP 1.7.3 install wich comes with PHP Version
5.3.1

thanks
Kenn

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to