iT邦幫忙

0

PHP如何把 mrbs 會議室系統 放入我的版面裡

我將MRBS改成公司要求的部分了
但我把MRBS的day.php引入到我內網首頁的主要顯示版面

<div class="hero-unit">
    <?php require("\web\day.php"); ?>
</div>

結果發生一些錯誤 如下圖
http://ithelp.ithome.com.tw/upload/images/20160922/20082456d1p5ARR93x.jpg

小弟初學者本身也沒碰過這種架構,我猜應該是MVC架構吧,想問各位先進該如何排除此問題?

weiclin iT邦高手 4 級 ‧ 2016-09-22 17:46:32 檢舉
你可以考慮使用 iframe
http://syunguo.blogspot.tw/2013/04/phpinclude-require.html 請參考這邊的說明吧
不建議用 require 要用 include ,請自行測試看看
阿偉 iT邦新手 2 級 ‧ 2016-09-23 11:21:44 檢舉
iframe目前還沒有頭緒,只有用過iframe崁入影片  
  

剛剛試了一下不管是 require 或 include 錯誤訊息都一樣  
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\xampp\htdocs\test\index.php:102) in C:\xampp\htdocs\test\web\session_php.inc on line 53
session_php.inc 第53行是session_start();

Warning: require(style.inc): failed to open stream: No such file or directory in C:\xampp\htdocs\test\web\Themes\default\header.inc on line 120
Fatal error: require(): Failed opening required 'style.inc' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\test\web\Themes\default\header.inc on line 120
header.inc第120行是 <?php require_once "style.inc";?>
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

0
海綿寶寶
iT邦大神 1 級 ‧ 2016-09-23 13:22:47

iframe事小

請教一下,有沒有做 Single Sign-On?

如果沒做的話
點超連結,就另開新視窗最快了
/images/emoticon/emoticon33.gif

阿偉 iT邦新手 2 級 ‧ 2016-09-23 13:58:18 檢舉

有想過直接單獨一個網頁,很快就能排除我的問題,MRBS也有自己的登入模式,我可以把我的登入系統不要加入MRBS即可。
不過我還是想試試把MVC加入到我的排版上,如果成功可以多學一些沒碰過的程式也是不錯,希望有前輩可指點。

我要發表回答

立即登入回答