| Anonymous | Login | Signup for a new account | 10-24-2025 11:58 PDT |
| Main | My View | View Issues | Change Log | Docs |
| Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ Issue History ] [ Print ] | ||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
| 0001666 | [Quercus] | minor | always | 04-02-07 16:25 | 04-05-07 10:45 | ||||
| Reporter | ddossot | View Status | public | ||||||
| Assigned To | nam | ||||||||
| Priority | normal | Resolution | fixed | Platform | |||||
| Status | closed | OS | |||||||
| Projection | none | OS Version | |||||||
| ETA | none | Fixed in Version | 3.1.1 | Product Version | 3.1.1 | ||||
| Product Build | |||||||||
| 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 | |||||||||
| Attached Files | |||||||||
|
|
|||||||||
| Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed. 27 unique queries executed. |