Jump to:

5541 Posts in 1738 Topics by 1224 members

Customising the CMS

SilverStripe Forums » Customising the CMS » [SOLVED] When my function returns --> the template crashes

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

Page: 1
Go to End
Author Topic: 596 Views
  • VRoxane
    Avatar
    Community Member
    42 Posts

    [SOLVED] When my function returns --> the template crashes Link to this post

    Hello SilverStripers !

    Can you resolve this and really rrrreally help me ? Here are my functions (in Suivi.php) :

       function MesImports($im_num=999) {
          $im_member = Member::currentUser();
          $imports = DataObject::get("Import", "ClientID = $im_member->ID", "", "", $im_num);
          return $imports;
       }
       function MesExports($ex_num=999) {
          $ex_member = Member::currentUser();
          $exports = DataObject::get("Export", "ClientID = $ex_member->ID", "", "", $ex_num);
          return $exports;
       }

    They work well, BUT they make weird "??" characters appear at the beginning of the page code. It makes the template upside down, especially in IE (but in FF too).

    Any idea ?

  • VRoxane
    Avatar
    Community Member
    42 Posts

    Re: [SOLVED] When my function returns --> the template crashes Link to this post

    Just for everybody to know : Convert the Export.php to UTF-8 without BOM does the trick.

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