Introducing
Your new presentation assistant.
Refine, enhance, and tailor your content, source relevant images, and edit visuals quicker than ever before.
Trending searches
eZ Publish講座やってます!
(webapp.php)
(index.php)
id
title
detail
id
title
detail
一覧(paginate使用)
詳細はこちらをご覧ください
新規
books
編集
http://www.mitsue.co.jp/product/ez_training/quick_start.html
/mybooks/*
削除
http://www.shinshu-liveon.jp/
その他、大手出版社、デジタル系出版社、ネット系証券会社などなどの事例もございます。
SQLで投入
(books)
すてべのデータは
nodeで表現する
(bookA)
(bookB)
ezurl: /mybooks/1
ezurl: /mybooks/2
nodeのパス、mybooksは親node
http://www.elle.fr/elle
http://vpf.mit.edu/
http://vlada.hr/
http://ez.no/customers/case_studies
siteaccess.ini.append.php
override.ini.append.php
eZ Template言語で実装
Smartyに似てる
templateの拡張機能
CakePHPで言えばHelper
public function index() {
$this->paginate = array(
'conditions'=>array('_ezurl'=>'mybooks'),
'limit'=>2,
'order'=>array('node_id',false),
);
$childs = $this->paginate();
$this->set('books',$childs);
}
public function view($id) {
$childs = $this->Book->find("all",array(
'conditions'=>array('_ezurl'=>'mybooks/'.$id),
'target'=>'self',
));
$this->set('book',$childs);
}
public function add() {
if (!empty($this->data)) {
$save_data = $this->data;
$save_data['Book']['_ezurl'] = 'mybooks';
if ($this->Book->save($save_data)) {
$this->flash('Your post has been saved.','/books');
}
}
}
public function delete($id) {
$this->Book->eZdel('mybooks/'.$id);
$this->flash('The book with id: '.$id.' has been deleted.', '/books');
}
public function edit($id = null) {
if (empty($this->data)) {
$this->data = $this->Book->find("all",array(
'conditions'=>array('_ezurl'=>'mybooks/'.$id),
'target'=>'self',
));
} else {
if ($this->Book->eZupdate('mybooks/'.$id,$this->data['Book'])) {
$this->flash('Your book has been updated.','/books');
}
}
}
http://github.com/leebenny/CakePHP-DataSource-for-eZ-Publish