+ Error on line 79
$this->data['seo_title'] = $info->seo_title;
<?php
include_once SITE_PATH . 'protected/controller/FrontController.php';
/**
* 活動快報
*/
class ActivitiesController extends FrontController { //DooController {
public function __construct() {
parent::__construct();
$this->data['module'] = 'activities';
}
//旅游分享列表
function index() {
//$this->data['path'] = '<a href="'.$this->data['url'].'">首頁</a> >> 活動快報';
$this->data['path'] = '<a href="'.$this->data['url'].'">'.$this->_LANG['location'].'</a> >> '.$this->_LANG['promotion'];
Doo::loadHelper('DooPager');
$page = isset($this->params[0]) ? $this->params[0] : 1;
$limit = isset($this->params[1]) ? $this->params[1] : 5;
$lang = $this->lang;
//page count
//$count = $this->content->count();
$count = $this->content->count(array('where'=>"catid='9' and language_id='{$lang}' and status>0"));
if($count) {
$pager = new DooPager(Doo::conf()->APP_URL.'index.php/tourism/index', $count, $limit, 10);
$pager->paginate($page);
$limit = $pager->limit;
//$lists = $this->content->find(array('limit'=>$limit, 'desc'=>'contentid'));
$lists = $this->content->find(array('limit'=>$limit, 'where'=>"catid='9' and language_id='{$lang}' and status>0", 'desc'=>'contentid'));
$this->data['lists'] = $lists;
$this->data['pager1'] = $pager->output;
$this->data['pager'] = $pager->components;
$this->data['pagerCss'] = $pager->defaultCss;
}else{
$lists = array();
}
$data['lists'] = $lists;
//$data['content'] = 'SQL executed. <pre>'. implode("\n\r", Doo::db()->showSQL()) .'</pre>';
$this->renderc('activities', $this->data);
}
//旅游分享詳情
function detail() {
$contentid = $this->params[0];
try {
//上一篇
$this->data['tourismPrev'] = $this->content->find(array(
'where' => "catid='9' and contentid>'{$this->params[0]}' and language_id='{$this->lang}' and status>0",
'limit' => 1,
'desc' => 'contentid')
);
//下一篇
$this->data['tourismNext'] = $this->content->find(array(
'where' => "catid='9' and contentid<'{$this->params[0]}' and language_id='{$this->lang}' and status>0",
'limit' => 1,
'desc' => 'contentid')
);
$this->content->contentid = $this->params[0];
//for related types to get one object, use limit first instead of limit 1
$info = Doo::db()->relate('Content', 'ContentNews', array(
'limit' => 'first', //取一条
'where' => 'cms_content.contentid = ' . $this->content->contentid));
$this->data['detail'] = $info;
$this->data['seo_title'] = $info->seo_title;
$this->data['seo_keywords'] = $info->seo_keywords;
$this->data['seo_description'] = $info->seo_description;
//$this->data['path'] = '<a href="'.$this->data['url'].'">'.$this->_LANG['menu_home'].'</a> >> <a href="'.$this->data['url'].'activities">'.$this->_LANG['menu_reservations'].'</a> >> '.$this->data['detail']->title;
$this->data['path'] = '<a href="'.$this->data['url'].'">'.$this->_LANG['menu_home'].'</a> >> '.$this->data['detail']->title;
$this->view()->renderc('activitiesDetail', $this->data);
} catch (Exception $err) {
//to debug if there's any SQL error
//$result = array('code' => 0, 'message' => Doo::db()->showSQL() . ' , ' . $exc->getMessage(), 'time' => date('Y-m-d H:i:s', time()));
return array('/db/failed/Food id not found!', 404);
}
die;
}
}
?>
* Stack Trace...
- /raid/vhost/gharry.com.tw/www/index.php(73) calling run()
- /raid/vhost/gharry.com.tw/www/library/doophp/dooframework/app/DooWebApp.php(34) calling routeTo()
- /raid/vhost/gharry.com.tw/www/library/doophp/dooframework/app/DooWebApp.php(221) calling detail()
object(DooConfig)#1 (22) {
["AUTOLOAD"] => NULL
["SITE_PATH"] => string(30) "/raid/vhost/gharry.com.tw/www/"
["PROTECTED_FOLDER"] => string(10) "protected/"
["BASE_PATH"] => string(58) "/raid/vhost/gharry.com.tw/www/library/doophp/dooframework/"
["LOG_PATH"] => NULL
["APP_URL"] => string(21) "http://gharry.com.tw/"
["SUBFOLDER"] => string(1) "/"
["APP_MODE"] => string(4) "prod"
["AUTOROUTE"] => bool(true)
["DEBUG_ENABLED"] => bool(false)
["ERROR_404_DOCUMENT"] => NULL
["ERROR_404_ROUTE"] => string(6) "/error"
["CACHE_PATH"] => NULL
["AUTO_VIEW_RENDER_PATH"] => array(2) {
[0] => string(10) "activities"
[1] => string(6) "detail"
}
["MEMCACHE"] => NULL
["TEMPLATE_ENGINE"] => string(7) "DooView"
["TEMPLATE_SHOW_COMMENT"] => NULL
["TEMPLATE_ALLOW_PHP"] => NULL
["TEMPLATE_COMPILE_ALWAYS"] => NULL
["TEMPLATE_GLOBAL_TAGS"] => NULL
["MODULES"] => array(2) {
[0] => string(5) "admin"
[1] => string(4) "user"
}
["APP_NAMESPACE_ID"] => NULL
}
$_SESSION Variables
array(2) {
["lang"] => string(5) "zh_tw"
["_LANG"] => array(292) {
["empty_username_password"] => string(54) "對不起,您必須完整填寫用戶名和密碼。"
["shot_message"] => string(9) "短消息"
["no"] => string(3) "無"
["site"] => string(9) "廣招徠"
["menu_home"] => string(7) "首 頁"
["menu_app"] => string(12) "手機用戶"
["menu_car"] => string(12) "租用車款"
["menu_payment"] => string(12) "交易方式"
["menu_inquire"] => string(12) "線上詢價"
["menu_reservations"] => string(12) "網絡預約"
["menu_tourism"] => string(12) "旅遊分享"
["location"] => string(12) "當前位置"
["service"] => string(21) "聯 . 繫 . 客 . 服"
["new_reservation"] => string(21) "最 . 新 . 預 . 約"
["email"] => string(6) "電郵"
["email1"] => string(12) "電子信箱"
["input_email"] => string(15) "請輸入電郵"
["password"] => string(6) "密碼"
["register"] => string(12) "會員註冊"
["forget_password"] => string(22) "忘記帳號及密碼?"
["mr"] => string(6) "先生"
["ms"] => string(6) "女士"
["hello"] => string(6) "您好"
["rank_points"] => string(18) "累計積分:%d分"
["my_question1"] => string(12) "我的提問"
["my_order1"] => string(12) "我的訂單"
["my_tourism"] => string(12) "旅遊分享"
["input_password"] => string(15) "請輸入密碼"
["my_questions"] => string(21) "我 . 要 . 發 . 問"
["my_reservation"] => string(21) "我 . 要 . 預 . 約"
["login_email"] => string(15) "請登錄會員"
["news"] => string(21) "最 . 新 . 消 . 息"
["tourism"] => string(21) "旅 . 遊 . 分 . 享"
["tourism_title"] => string(6) "標題"
["more"] => string(9) "更多..."
["link"] => string(21) "站 . 外 . 鏈 . 接"
["hot_car"] => string(21) "熱 . 門 . 車 . 款"
["activities"] => string(21) "活 . 動 . 快 . 報"
["title_privacy"] => string(27) "隱 . 私 . 權 . 政 . 策"
["payment_success"] => string(21) "支 . 付 . 成 . 功"
["payment_success1"] => string(15) "支付成功..."
["reset_password"] => string(21) "重 . 設 . 密 . 碼"
["reset_password1"] => string(12) "重設密碼"
["payment_flow"] => string(21) "交 . 易 . 流 . 程"
["member_register"] => string(21) "會 . 員 . 註 . 冊"
["required_content"] => string(21) "以下為必填項目"
["footer"] => string(548) "
282 租車網 <a target="_blank" href="http://www.282.com.tw" class="blueLink">http://www.282.com.tw</a><br />
提供您台灣自助旅遊最優質的租車服務,桃園機場接送、觀光小巴、私人導遊、行程規劃、商務參訪、婚紗外拍、禮車出租、企業長租等專業代駕服務。<br />
Tel:+886-3-3239637 Fax:+886-3-3231312 Mobile:+886-958-889637 Skype:gharry.rental E-mail:ajin.gharry@yahoo.com.tw<br />
Copyright (c) 2010. Gharry Car Rental LTD. All right reserved. 隱私權政策 "
["privacy"] => string(15) "隱私權政策"
["share"] => string(6) "分享"
["data_error"] => string(21) "數據寫入錯誤!"
["app"] => string(21) "手 . 機 . 用 . 戶"
["app_desc"] => string(242) "類別: Lifestyle<br />
發佈日期: 2011年12月23日<br />
版本: 1.0<br />
大小: 1.1 MB<br />
語言: 繁體中文<br />
系統要求: iPhone, iPod touch, and iPad.要求 iOS 4.3 或更新。"
["app_image"] => string(17) "iPhone APP 截圖"
["car"] => string(21) "租 . 用 . 車 . 款"
["car_number"] => string(8) "%d人座"
["car_price"] => string(36) "接送 NTD %s 起 計日 NTD %s 起"
["car_watch"] => string(21) "實 . 車 . 觀 . 賞"
["car_no"] => string(12) "服務車號"
["car_type"] => string(12) "服務車型"
["car_driver"] => string(12) "代雇駕駛"
["on_provide"] => string(9) "不提供"
["car_price_airport"] => string(23) "機場接送:NTD %s 起"
["car_price_day"] => string(23) "按日計費:NTD %s 起"
["car_qi"] => string(3) "起"
["car_qi1"] => string(5) "起/ "
["chargeNotice"] => string(118) "實際價格依據行程會有不同,請洽客服人員.以下換算僅供參考,需以台幣交易(支付寶除外)"
["publish_time"] => string(12) "發佈時間"
["author"] => string(6) "作者"
["next"] => string(9) "下一篇"
["question_notic"] => string(249) "敬告:本區為公開提問使用,為了您的個人資料安全,除了【會員註冊】及【線上預約】以外,請勿於發問內容填入您的電話號碼、電子信箱或詳細住家門牌號碼,以確保您使用上的安全!"
["question_content"] => string(12) "發問內容"
["anonymous"] => string(6) "匿名"
["publish_question"] => string(12) "發表問題"
["question_record"] => string(21) "詢 . 價 . 紀 . 錄"
["question_member"] => string(12) "一般會員"
["question_apply"] => string(37) "您的提問已於 %s 小時內回覆"
["question_apply1"] => string(45) "您的提問未回覆,我們會盡快回覆"
["my_order"] => string(21) "我 . 的 . 訂 . 單"
["undone_order"] => string(15) "未完成訂單"
["reservation_order"] => string(15) "已預約訂單"
["finish_order"] => string(15) "已完成訂單"
["start_date"] => string(12) "預約日期"
["reservation_type"] => string(12) "行程內容"
["car_name"] => string(12) "指定車型"
["deposit"] => string(12) "訂金金額"
["payment_select"] => string(12) "支付選擇"
["status"] => string(12) "訂單進度"
["balance_amount"] => string(12) "尾款金額"
["taxes_amount"] => string(12) "稅金金額"
["amount_way"] => string(12) "尾款方式"
["order_sn"] => string(12) "訂單編號"
["driver_name"] => string(12) "代雇司機"
["driver_mobile"] => string(12) "司機電話"
["car_comment"] => string(15) "車輛滿意度"
["driver_comment"] => string(15) "駕駛滿意度"
["payment_way"] => string(12) "支付方式"
["paypal"] => string(6) "PayPal"
["alipay"] => string(6) "alipay"
["ecbank_pincode"] => string(12) "超商繳費"
["card"] => string(12) "刷卡簽單"
["bank"] => string(12) "銀行匯款"
["cash"] => string(12) "現金支付"
["on_check"] => string(9) "未核單"
["check_date"] => string(12) "核准日期"
["please_select"] => string(9) "請選擇"
["pleased"] => string(6) "滿意"
["can_still"] => string(6) "尚可"
["not_satisfied"] => string(9) "不滿意"
["my_order_status"] => array(7) {
[0] => string(15) "預約提交中"
[1] => string(15) "預約提交中"
[2] => string(15) "尚未付訂金"
[3] => string(15) "車輛調度中"
[4] => string(15) "已完成預約"
[5] => string(15) "訂單未結款"
[6] => string(15) "訂單已結款"
}
["my_comment"] => array(3) {
[1] => string(6) "滿意"
[2] => string(6) "尚可"
[3] => string(9) "不滿意"
}
["member_name"] => string(12) "會員名字"
["my_mobile"] => string(12) "連絡電話"
["my_email"] => string(12) "會員帳號"
["my_change_pwd"] => string(12) "修改密碼"
["my_user_name"] => string(12) "乘客姓名"
["my_start_date"] => string(12) "出發日期"
["my_start_time"] => string(12) "出發時間"
["my_car_no"] => string(12) "服務車號"
["my_end_date"] => string(12) "回程日期"
["my_end_time"] => string(12) "回程時間"
["my_end_time1"] => string(12) "結束時間"
["start_address"] => string(12) "出發地點"
["add_address"] => string(12) "增加地點"
["adminname"] => string(12) "客服人員"
["adminmobile"] => string(12) "客服電話"
["destination_address"] => string(12) "目的地點"
["free_tel"] => string(15) "免付費電話"
["person_number"] => string(12) "乘客人數"
["luggage_number"] => string(12) "行李件數"
["piece"] => string(3) "件"
["down"] => string(6) "以下"
["up"] => string(6) "以上"
["member_signed"] => string(15) "會員簽名處"
["vip_signed"] => string(15) "貴賓簽名處"
["other_service"] => string(12) "其它服務"
["invoice_no"] => string(12) "發票統編"
["invoice_company"] => string(12) "發票抬頭"
["car_total"] => string(12) "車資合算"
["deposit_amount"] => string(12) "訂金金額"
["balance_way"] => string(12) "尾款方式"
["service_read"] => string(251) "服務說明:本項租用服務以含代雇駕駛、租金、油料、過路費、停車等費用,如臨時有增加預約單行程外的地點或使用時間,請洽詢您的客服人員。祝您旅途平安愉快~ 預約/查詢請上www.gharry.com.tw"
["note"] => string(272) "注意事項:如有本確認單未載記之臨時事項(如:增加人數、行李、地點、愈時用車)將會有其他費用產生。 <br/>感謝您的惠顧!如有相關問題請洽詢您的客服人員,如需再次預約請洽詢 www.gharry.com.tw 或 0800-000-282。"
["payment_load"] => string(45) "請稍等,正在跳轉到支付頁面中..."
["my_question"] => string(21) "我 . 的 . 提 . 問"
["question_date"] => string(12) "發問日期"
["apply_content"] => string(12) "回復內容"
["member_first"] => string(12) "會員姓氏"
["member_password"] => string(12) "會員密碼"
["member_mobile"] => string(12) "行動號碼"
["member_gender"] => string(12) "個人性別"
["member_gender0"] => string(3) "女"
["member_gender1"] => string(3) "男"
["nationality"] => string(12) "所在國籍"
["select_nationality"] => string(17) "請選擇國籍.."
["other_contact"] => string(43) "您希望用其它方式與我們聯系嗎?"
["company_tel"] => string(12) "公司電話"
["skype"] => string(5) "skype"
["company_fax"] => string(12) "公司傳真"
["qq"] => string(8) "騰訊QQ"
["other_address"] => string(60) "您所需要開立發票的公司寶號及郵寄地址是?"
["company_name"] => string(12) "公司名稱"
["company_invoice"] => string(12) "公司統編"
["company_address"] => string(12) "公司地址"
["select_city"] => string(17) "請選擇縣市.."
["select_town"] => string(17) "請選擇鄉鎮.."
["input_company_address"] => string(23) "請輸入公司地址.."
["upload_head_photo"] => string(57) "最後再上傳一張讓我們認識您的大頭貼吧!"
["head_photo"] => string(12) "圖示上傳"
["submit"] => string(12) "確認提交"
["input_member_email"] => string(30) "請輸入正確的電子信箱"
["input_member_first"] => string(21) "請輸入會員姓氏"
["input_member_mobile"] => string(76) "請輸入正確的行動號碼,不得加入()_-空格,需連續的數字"
["input_member_airport"] => string(23) "請選擇機場航廈.."
["load"] => string(17) "數據載入中.."
["please_login"] => string(30) "請登錄(註冊)會員!"
["please_login_question"] => string(81) "對不起,您登錄後才可以提問,如您還沒有帳號,請先注冊..."
["reservation_notice"] => string(162) "注意!您需取得預約確認單及訂單編號,才屬於完成預約。<br />請提交預約單後,立即至【我的訂單】選擇定金支付方式。"
["airport_start_date"] => string(12) "接機日期"
["airport_start_time"] => string(12) "接機時間"
["airport_start_date1"] => string(12) "送機日期"
["airport_start_time1"] => string(12) "送機時間"
["select_start_airport"] => string(23) "請選擇出發機場.."
["input_airport_no"] => string(23) "請輸入航班編號.."
["select_start_city"] => string(23) "請選擇出發縣市.."
["select_start_town"] => string(23) "請選擇出發區域.."
["select_start_address"] => string(23) "請輸入出發地址.."
["select_end_city"] => string(23) "請選擇目的縣市.."
["select_end_town"] => string(23) "請選擇目的區域.."
["select_end_address"] => string(23) "請輸入目的地址.."
["select_person_number"] => string(21) "請選擇乘客人數"
["select_end_airport"] => string(23) "請選擇目的機場.."
["select_end_airport1"] => string(23) "請選擇機場航廈.."
["person"] => string(3) "人"
["select_luggage_number"] => string(34) "請選擇25吋以下行李件數.."
["select_luggage_number1"] => string(34) "請選擇超過25吋行李件數.."
["reservation_placards"] => string(6) "舉牌"
["reservation_receipt"] => string(6) "收據"
["reservation_invoice"] => string(6) "發票"
["reservation_other"] => string(6) "其它"
["country_code"] => string(12) "國家代碼"
["payment1"] => string(12) "現金付款"
["payment2"] => string(12) "預先結清"
["payment3"] => string(12) "月結廠商"
["payment4"] => string(12) "刷卡簽單"
["payment5"] => string(12) "折優惠券"
["select_car"] => string(23) "請選擇租用車型.."
["on_car_name"] => string(15) "不指定車型"
["on_car_name_price"] => string(39) "不指定車款享有較優惠的價格"
["reservation_car_notice"] => string(111) "我們將儘可能提供您所指定的車型,如因調度問題我們仍將會提供您適合的替代車輛"
["input_user_name"] => string(21) "請輸入乘客姓名"
["input_my_mobile"] => string(21) "請輸入連絡電話"
["input_date"] => string(15) "請輸入日期"
["end_date"] => string(12) "結束日期"
["input_add_address"] => string(23) "請輸入增加地址.."
["select_add_town"] => string(23) "請選擇增加區域.."
["select_add_city"] => string(23) "請選擇增加縣市.."
["add_three_address"] => string(24) "最多增加三個地址"
["reservation_type1"] => string(12) "機場接機"
["reservation_type2"] => string(12) "機場送機"
["reservation_type3"] => string(12) "定點接駁"
["reservation_type4"] => string(12) "按時計費"
["reservation_type5"] => string(12) "按日計費"
["reservation_type6"] => string(12) "結婚禮車"
["taiwan"] => string(6) "台灣"
["oversea"] => string(6) "國際"
["online_service"] => string(12) "在線服務"
["login_reg"] => string(19) "登錄/會員註冊"
["sign_in"] => string(17) "登錄<br/>網站"
["app_store"] => string(21) "下載蘋果手機版"
["view_detail"] => string(12) "查看詳情"
["gharry"] => string(15) "廣招徠租車"
["logout"] => string(6) "退出"
["promotion"] => string(12) "活動快報"
["reservation_status1"] => string(15) "預約提交中"
["reservation_status2"] => string(15) "尚未付訂金"
["reservation_status3"] => string(15) "車輛調度中"
["reservation_status4"] => string(15) "已完成預約"
["reservation_status5"] => string(15) "訂單未結款"
["reservation_status6"] => string(15) "訂單已結款"
["reservation_status7"] => string(15) "訂單已取消"
["reservation_checkout1"] => string(12) "現金付款"
["reservation_checkout2"] => string(12) "預先結清"
["reservation_checkout3"] => string(12) "月結廠商"
["reservation_checkout4"] => string(12) "刷卡簽單"
["reservation_checkout5"] => string(12) "折優惠券"
["msg_email_exist"] => string(14) "Email已存在"
["msg_reg_success"] => string(77) "註冊成功,email已發送到您的郵箱,請登錄您的郵箱激活!"
["msg_link_error"] => string(18) "鏈接已失效!"
["msg_pwd_set_failed"] => string(18) "重設密碼失敗"
["msg_pwd_set_success"] => string(42) "重設密碼成功,請查看您的電郵"
["msg_email_send_failed"] => string(18) "電郵發送失敗"
["msg_email_no"] => string(15) "電郵不存在"
["msg_pub_success"] => string(12) "發表成功"
["msg_pub_failed"] => string(12) "發表失敗"
["msg_login_success"] => string(12) "登錄成功"
["msg_login_failed"] => string(12) "登錄失敗"
["msg_pwd_error"] => string(12) "密碼錯誤"
["msg_account_no"] => string(15) "帳號不存在"
["msg_logout_succsss"] => string(12) "退出成功"
["msg_payment_no"] => string(21) "支付方式不存在"
["msg_remittance_transfer"] => string(12) "匯款轉帳"
["msg_add_success"] => string(12) "添加成功"
["msg_add_failed"] => string(12) "添加失敗"
["msg_update_success"] => string(12) "修改成功"
["msg_update_failed"] => string(12) "修改失敗"
["msg_news"] => string(12) "最新消息"
["msg_login_reservation"] => string(35) "你需先登入會員才可預約.."
["msg_reservation_failed"] => string(12) "預約失敗"
["msg_reservation_submit"] => string(63) "本預約訂單已提交,請依交易方式取得訂單編號"
["msg_input_content"] => string(15) "請輸入內容"
["msg_select_way"] => string(21) "請選擇支付方式"
["msg_app"] => string(51) "iPhone App 即將上線,敬請期待 即将上线"
["msg_current_pwd_error"] => string(18) "當前密碼錯誤"
["msg_current_pwd"] => string(12) "當前密碼"
["msg_new_pwd"] => string(9) "新密碼"
["msg_confirm_pwd"] => string(12) "確認密碼"
["msg_new_confirm_pwd"] => string(33) "新密碼和確認密碼不一致"
["msg_input_current_pwd"] => string(21) "請輸入當前密碼"
["msg_input_new_pwd"] => string(18) "請輸入新密碼"
["msg_input_confirm_pwd"] => string(21) "請輸入確認密碼"
["msg_cash_content"] => string(115) "如果您選擇了現金支付,請洽詢客服人員收款方式。<br/>台灣:0800﹣000﹣282<br/>國際:%s"
["msg_card_content"] => string(207) "請列印<a href="http://www.gharry.com.tw/uploads/bab2f41f0dc886dfe2e749a28f7d3686.pdf" target="_blank">刷卡簽單</a>,填寫並由持卡人親筆簽名後回傳至:<br/> %s <br/>service@gharry.com.tw"
["code"] => string(6) "國碼"
["code_error"] => string(70) "請輸入正確的國碼,不得加入()_-空格,需連續的數字"
["format_error"] => string(76) "請輸入正確的連絡電話,不得加入()_-空格,需連續的數字"
["region"] => string(6) "區碼"
["region_error"] => string(70) "請輸入正確的区码,不得加入()_-空格,需連續的數字"
["tel_format_error"] => string(76) "請輸入正確的公司電話,不得加入()_-空格,需連續的數字"
["fax_format_error"] => string(76) "請輸入正確的公司傳真,不得加入()_-空格,需連續的數字"
["ecbank_fami_port"] => string(8) "FamiPort"
["ecbank_ibon"] => string(4) "IBON"
["ecbank_life_et"] => string(7) "Life-ET"
}
}
$_COOKIE Variables
array(1) {
["PHPSESSID"] => string(32) "0c593271506ecaa7395ba94c0c9547a7"
}