3064 Posts in 865 Topics by 647 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 551 Views |
-
HTTP 500 error when trying to define create() on a controller

3 March 2011 at 4:10pm
What the subject says.
I'm defining this in a controller:
public function create() {
return array(
);
}And it returns a 500 error. If I rename it to something else, the 500 disappears.
What gives?
-
Re: HTTP 500 error when trying to define create() on a controller

3 March 2011 at 9:17pm
What is the specific error message? I think create() may conflict with the create function defined for making new objects in SS. You could probably name your function like create_blah() then use Director to map create/ to create_blah to avoid conflicts.
-
Re: HTTP 500 error when trying to define create() on a controller

6 March 2011 at 2:38pm
I was thinking that was the problem, that it was defined somewhere else.
| 551 Views | ||
|
Page:
1
|
Go to Top |


