Jump to:

23380 Posts in 18311 Topics by 2867 members

General Questions

SilverStripe Forums » General Questions » Error with global call

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 455 Views
  • steve_nyhof
    Avatar
    Community Member
    224 Posts

    Error with global call Link to this post

    I have been using this code for a long time without an issue. However, I have never used it in a global situation.

    This seems to work fine
    <% if PageFontType == 0 %>

    And this works fine also
    <% if callGlobal.GlFontTypes %>

    But this gives me the error "Parse error: syntax error, unexpected '}'..."
    <% if callGlobal.GlFontTypes == 0 %>

    The function that call the global settings into the page

    public function callGlobal(){
    return DataObject::get_one('PageGlobal');
    }

    Any ideas of what I must do differently?

    Thank you,
    Steve Nyhof

    455 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.