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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   1165 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?