Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Function from URL

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

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

Page: 1
Go to End
Author Topic: 910 Views
  • UncleCheese
    Avatar
    4085 Posts

    Function from URL Link to this post

    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!

  • UncleCheese
    Avatar
    4085 Posts

    Re: Function from URL Link to this post

    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?

    910 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.