Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Function from URL


Go to End


2 Posts   1069 Views

Avatar
UncleCheese

Forum Moderator, 4102 Posts

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!

Avatar
UncleCheese

Forum Moderator, 4102 Posts

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?