I am trying to add new settings page and emails page. When you click on emails menu, it is under silverstripe admin cms but After reloading Emails page, it is not under silverstripe admin cms.
Here is controller code:
public function index() {
$getmem=Member::currentUser();
if($getmem->RainloopEmail !='' && $getmem->Pass !='')
{
$com=$getmem->RainloopEmail.":".$getmem->Pass;
$encrypted = base64_encode($getmem->RainloopEmail) ;
$rainloopemail=$encrypted;
$encrypted =base64_encode($getmem->Pass);
$pss=$encrypted;
$hash=base64_encode($com);
}
else
{
$rainloopemail='';
$pss='';
$com=$getmem->RainloopEmail.":".$getmem->Pass;
$hash=base64_encode($com);
}
$url='http://op.mctitsolutions.com/rainloop/rainloop.php?hash='.$hash;
$arrayData = new ArrayData(array(
'Width' => '100%',
'Height' => '100%',
'Location'=>$url ));
return $arrayData->renderWith(Array('EmailsAdminController_Content','Coach_message','Page'));
}
And here is template file code:
<div style="padding:55px 20px">
$EditForm
<iframe id="MainPopupIframe" width="$Width" height="605px" src="$Location"></iframe>
</div>