In my Payment model I have the following

var $payMethodAll = array(
                '0' => 'Cash On Arrival',
                '1' => 'Direct Debit',
                '2' => 'Post (Cheque Only)',
                '3' => 'Credit Card',
                '4' => 'Account Credit',
                '5' => 'Account Credit + Direct Debit'

        );

In my Bookings controller, I call this data:

$pMethods = $this->Payment->payMethodAll;

And I get the following error:

Notice (8): Undefined property: AppModel::$payMethodAll [APP
\controllers\bookings_controller.php, line 180]

This was working perfectly before but now all of a sudden is not.

I have tried clearing my tmp/cache/models

Im confused as to what the problem is, because in the
bookings_controller I can use the model to get data from the database
without issue: ie:

$p = $this->Payment->find('all');

works perfectly

Any ideas?

-- 
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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to