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.

Customising the CMS /

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

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


Go to End


2 Posts   1454 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.