2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ECCUBE2 ページ追加の備忘録

Last updated at Posted at 2016-02-13

html内にフォルダ(今回はsample)を作り
index.phpファイルを作成


require_once '../require.php';

require_once CLASS_EX_REALDIR . 'page_extends/abouts/LC_Page_Sample_Ex.php';

$objPage = new LC_Page_Sample_Ex();

$objPage->init();

$objPage->process();


data/class_extends/page_extends/abouts
にLC_Page_Sample_Ex.phpを作成


tpl_title = 'サンプル'; } /** * Page のプロセス. * * @return void */ public function process() { parent::process(); $this->action(); $this->sendResponse(); } /** * Page のアクション. * * @return void */ public function action() { } } * * * 次にデータベースにページ情報を登録 dtb_pagelayoutに追加 INSERT INTO `データベース名`.`dtb_pagelayout` (`device_type_id`, `page_id`, `page_name`, `url`, `filename`, `header_chk`, `footer_chk`, `edit_flg`, `author`, `description`, `keyword`, `update_url`, `create_date`, `update_date`, `meta_robots`) VALUES ('10', '29', 'サンプル', 'sample/index.php', 'sample/index', '1', '1', '2', NULL, NULL, NULL, NULL, '2016-02-14 01:01:00', '0000-00-00 00:00:00.000000', NULL); page_idは最大値+1 ECCUBE2.13.5では初期設定で28列あるので初回は29で登録 あとはページを登録するごとに数を増やしていく。
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?