17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 831 Views |
-
Function from URL

18 September 2008 at 5:20am
When I call my function like so: www.mysite.com/my-page/myfunction
it works fine..
but when i do
www.mysite.com/my-page/myfunction/someID
I get a blank white screen, even in dev mode. No errors sent to my email.
I've gone as far as to make "myfunction()" in my controller just return $this->renderWith(array('Page','Page')); and changed the Page.ss to just HELLO, and I still get a blank screen.
Tried changing the name of the function, too.
Anyone ever encountered this? What a headache!
-
Re: Function from URL

18 September 2008 at 6:14am
Never mind, as I suspected, I'm an idiot. I had overloaded the Link() function in one of my objects. The Menu control must not have liked it. Still strange that I got nothing but white, though.
And when I did showtemplate=1, it would only render to line 205.. no matter what I did to the template, it was always getting cut at line 205.
Anyway.. glad it's over! Can I have my morning back, please?
| 831 Views | ||
|
Page:
1
|
Go to Top |
