Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
SlideShare a Scribd company logo

1

Yii-C Orange

2

EC Orange
An Enterprise E-Commerce Package
Developed Since 2007 (Now 2014)

3

Rapid progress in Web technology
in recent years
MVC-Frameworks
CSS-Frameworks
JS-Frameworks
etc...

4

Time to shift from Legacy to Modern

5

Introduce a new modern web framework

http://www.yiiframework.com/

6

Requirements for the shift

7

Portability
require_once(‘path/to/yii.php’);
Yii::createWebApplication(‘path/to/main.php’);
The magic begins.

8

Modularity
if (Yii::app()->hasModule(‘mymodule’)) {
Yii::app()->getModule(‘mymodule’);
…
}

9

Advanced Active Record
$posts = Post::model()->published()->recently()->findAll();
$posts = Post::model()
->with(array(‘comments’=>array(‘together’=>false)))
->findAll();

10

Database Migration
public function safeUp() {
$this->addColumn(‘tbl_xxx ‘, ‘yyy’, ‘TEXT ‘);
}
public function safeDown() {
$this->dropColumn(‘tbl_xxx ‘, ‘yyy’, );
}

11

UnitTest With Fixtures
class TblXxx extends CDbTestCase {
public $fixtures = array(
‘tbl_xxx’=>’TblXxx’,
);
public function testYyy() {
...
}
}

12

Extensions with Organized Platform

http://www.yiiframework.com/

13

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

http://www.yiiframework.com/

14

Customizable Code Generator

http://www.yiiframework.com/

15

i18n support
Yii::t(‘Xyz.categoryName’, ‘message to be translated’)

16

Read the code and documentation !!

17

Thank you

More Related Content

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