|
Mantis - Quercus
|
|||||
| Viewing Issue Advanced Details | |||||
|
|
|||||
| ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
| 1666 | minor | always | 04-02-07 16:25 | 04-05-07 10:45 | |
|
|
|||||
| Reporter: | ddossot | Platform: | |||
| Assigned To: | nam | OS: | |||
| Priority: | normal | OS Version: | |||
| Status: | closed | Product Version: | 3.1.1 | ||
| Product Build: | Resolution: | fixed | |||
| Projection: | none | ||||
| ETA: | none | Fixed in Version: | 3.1.1 | ||
|
|
|||||
| Summary: | 0001666: Parsing error (in CakePHP controller.php script) | ||||
| Description: |
I had to modify this PHP code: $model =& new $this->modelClass($id); to this form: $modelClass = $this->modelClass; $model =& new $modelClass($id); as the first form is interpreted wrongly as being a call to $this->modelClass with the $id parameter instead of an instantiation of a new class named $this->modelClass, passing &id to its constructor. |
||||
| Steps To Reproduce: | |||||
| Additional Information: | |||||
| Relationships | |||||
| Attached Files: | |||||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||