Yii-C Orange
EC Orange
An Enterprise E-Commerce Package
Developed Since 2007 (Now 2014)
Rapid progress in Web technology
in recent years
MVC-Frameworks
CSS-Frameworks
JS-Frameworks
etc...
Time to shift from Legacy to Modern
Introduce a new modern web framework

http://www.yiiframework.com/
Requirements for the shift
Portability
require_once(‘path/to/yii.php’);
Yii::createWebApplication(‘path/to/main.php’);
The magic begins.
Modularity
if (Yii::app()->hasModule(‘mymodule’)) {
Yii::app()->getModule(‘mymodule’);
…
}
Advanced Active Record
$posts = Post::model()->published()->recently()->findAll();
$posts = Post::model()
->with(array(‘co...
Database Migration
public function safeUp() {
$this->addColumn(‘tbl_xxx ‘, ‘yyy’, ‘TEXT ‘);
}
public function safeDown() {...
UnitTest With Fixtures
class TblXxx extends CDbTestCase {
public $fixtures = array(
‘tbl_xxx’=>’TblXxx’,
);
public functio...
Extensions with Organized Platform

http://www.yiiframework.com/
Pluggable UI Widgets
<?php $this->widget(‘zii.widgets.grid.CGridView’, array(
‘dataProvider’=>$dataProvider)); ?>

http://...
Customizable Code Generator

http://www.yiiframework.com/
i18n support
Yii::t(‘Xyz.categoryName’, ‘message to be translated’)
Read the code and documentation !!
Thank you
Upcoming SlideShare
Loading in …5
×

Yii c orange エンジニア勉強会20140129

420 views
326 views

Published on

1月29日に開催されたエスキュービズムエンジニア勉強会の資料です。

Published in: Technology, Design
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
420
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Yii c orange エンジニア勉強会20140129

  1. 1. Yii-C Orange
  2. 2. EC Orange An Enterprise E-Commerce Package Developed Since 2007 (Now 2014)
  3. 3. Rapid progress in Web technology in recent years MVC-Frameworks CSS-Frameworks JS-Frameworks etc...
  4. 4. Time to shift from Legacy to Modern
  5. 5. Introduce a new modern web framework http://www.yiiframework.com/
  6. 6. Requirements for the shift
  7. 7. Portability require_once(‘path/to/yii.php’); Yii::createWebApplication(‘path/to/main.php’); The magic begins.
  8. 8. Modularity if (Yii::app()->hasModule(‘mymodule’)) { Yii::app()->getModule(‘mymodule’); … }
  9. 9. Advanced Active Record $posts = Post::model()->published()->recently()->findAll(); $posts = Post::model() ->with(array(‘comments’=>array(‘together’=>false))) ->findAll();
  10. 10. Database Migration public function safeUp() { $this->addColumn(‘tbl_xxx ‘, ‘yyy’, ‘TEXT ‘); } public function safeDown() { $this->dropColumn(‘tbl_xxx ‘, ‘yyy’, ); }
  11. 11. UnitTest With Fixtures class TblXxx extends CDbTestCase { public $fixtures = array( ‘tbl_xxx’=>’TblXxx’, ); public function testYyy() { ... } }
  12. 12. Extensions with Organized Platform http://www.yiiframework.com/
  13. 13. Pluggable UI Widgets <?php $this->widget(‘zii.widgets.grid.CGridView’, array( ‘dataProvider’=>$dataProvider)); ?> http://www.yiiframework.com/
  14. 14. Customizable Code Generator http://www.yiiframework.com/
  15. 15. i18n support Yii::t(‘Xyz.categoryName’, ‘message to be translated’)
  16. 16. Read the code and documentation !!
  17. 17. Thank you

×