Slide 33
Slide 33 text
2018/12/15 PHPカンファレンス
基本的なCakePHP1.3→2.8移行手順
CakePHP1.3 CakePHP2.8
AjaxHelper、JavascriptHelper HtmlHelper、JsHelper
XmlHelper Cake/Utility/Xml
$html $this->Html
$session $this->Session
$paginator $this->Paginator
__(‘名前’, true) __(‘名前’)
$this->Paginator->sort(‘名前’, name) $this->Paginator->sort(name, ‘名前’)
$this->set('title_for_layout, ...) $this->assign('title', ...)
$this->Html->script('/js/hoge') $this->Html->script('/js/hoge.js')
$this->Form->create(
'User', array('action' => 'index'))
$this->Form->create(
'User', array('url' => 'index'));
※Undefined Index等のNotice ※isset等で対策
●View