21311 Posts in 5739 Topics by 2604 members
|Go to End|
13 October 2011 at 2:46am Last edited: 13 October 2011 2:48am
I set with
the Content-Type in my Page.php
with ajax request i load some other sites, wich give back just some inner_Html, but also as sites in silverstripe BE.
I have integrated memberprofiles and changed the Login form with
in my config file. Everything works fine. But when put the add Header line in my Page.php i got the error
Fatal error: Call to a member function addHeader() on a non-object in /home/mm/public_html/proj/mysite/code/Page.php on line 57
when i try to reach mysite/Security/login
When i comment the line everythings fine.
i need to put this line in Page.php. I tried it former to but it above in php's in Layout. But since i got the requests with ajax it's nescessary in page.php
|Go to Top|