Anonymous | Login | Signup for a new account | 12-17-2024 08:25 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ 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 | ||||||
Status | closed | Product 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. |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed. 27 unique queries executed. |