> フロント機能 > Dtb_pagelayoutのfilename内の設定を条件によって変更させたいです。 |
フロント機能
フラット表示 | 前のトピック | 次のトピック |
投稿者 | スレッド |
---|---|
spgo |
投稿日時: 2016/12/23 18:00
対応状況: −−−
|
一人前 登録日: 2011/6/30 居住地: 投稿: 73 |
Re: Dtb_pagelayoutのfilename内の設定を条件によって変更させたいです。 468様、
頂きました記述で切り替えできるようです。大変感謝いたします。 ただ、条件文設定で頓挫しております。以下の設定(lfGetReviewData商品レビューを参考)ではエラーは出ないものの、それがない状態と変わりなく、恐らく、設定自体がただ単に読まれていないためだと思われますが、どこに問題があるか、あるいは他に適した方法はありますでしょうか。 $this->arrId = $this->lfGetId($product_id); if ($arrId ['id'] == 2) { $this->tpl_mainpage = 'products/detail2.tpl'; } if ($arrId ['id'] == 1) { $this->tpl_mainpage = 'products/detail1.tpl'; } function lfGetId ($id) { $objQuery =& SC_Query_Ex::getSingletonInstance(); $col = 'id'; $from = 'dtb_products'; $where = 'product_id = ?'; $objQuery->setOrder('create_date DESC'); $arrWhereVal = array($id); $arrId = $objQuery->select($col, $from, $where, $arrWhereVal); return $arrId; } |
フラット表示 | 前のトピック | 次のトピック |
題名 | 投稿者 | 日時 |
---|---|---|
Dtb_pagelayoutのfilename内の設定を条件によって変更させたいです。 | spgo | 2016/12/20 16:27 |
Re: Dtb_pagelayoutのfilename内の設定を条件によって変更させたいです。 | 468 | 2016/12/21 12:21 |
Re: Dtb_pagelayoutのfilename内の設定を条件によって変更させたいです。 | spgo | 2016/12/21 15:50 |
Re: Dtb_pagelayoutのfilename内の設定を条件によって変更させたいです。 | 468 | 2016/12/21 17:22 |
» Re: Dtb_pagelayoutのfilename内の設定を条件によって変更させたいです。 | spgo | 2016/12/23 18:00 |
Re: Dtb_pagelayoutのfilename内の設定を条件によって変更させたいです。 | 468 | 2016/12/23 19:53 |
Re: Dtb_pagelayoutのfilename内の設定を条件によって変更させたいです。 | spgo | 2016/12/24 13:33 |
Re: Dtb_pagelayoutのfilename内の設定を条件によって変更させたいです。 | 468 | 2016/12/24 15:24 |
Re: Dtb_pagelayoutのfilename内の設定を条件によって変更させたいです。 | spgo | 2016/12/26 19:09 |
Re: Dtb_pagelayoutのfilename内の設定を条件によって変更させたいです。 | 468 | 2016/12/27 1:01 |
Re: Dtb_pagelayoutのfilename内の設定を条件によって変更させたいです。 | spgo | 2017/1/5 10:11 |