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.

Customising the CMS /

[SOLVED] When my function returns --> the template crashes


Reply


2 Posts   658 Views

Avatar
VRoxane

Community Member, 42 Posts

26 May 2011 at 4:30am

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 ?

Avatar
VRoxane

Community Member, 42 Posts

26 May 2011 at 9:55pm

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