Jump to content

Parse error: syntax error, unexpected ',' in dir - OOP


programguru

Recommended Posts

Can anyone see an issue with this causing the parse error. Am I losing my mind!!

 

Parse error: syntax error, unexpected ',' in D:\mydirectory\product.php on line 5

 

<?php
  class Product extends AppModel
  {
var $name = 'Product';
var $belongsTo = array('Dealer' => array('className' => 'Dealer', 'conditions'=>, 'order'=>, 'foreignKey' => 'dealer_id'));
  }
?>

 

 

right, but I thought you could only define simple, scalar values, not arrays or use other things like operators? Like, you can define it as an array declaration like so:

 

var $blah = array();

 

but you can't assign any values to it. 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.