Top Banner
Sree kalahasteeswara institute of technology(skit) Dept. of Computer Science and Engineering By C.Leena Roja 10381A0521
24

Yii framework

Nov 22, 2014

Download

Career

Leena Roja

This ppt contains the matter on yii framework.
introduction to yii framework
history behind this yii framework
developer of yii framework
technologies integrated&used in yii framework
how to install yii framework ?,
yii framework features,
performance
license terms
about mudule
MVC design pattern
advantages and disadvantages of yii framework.
yii is pronounced as yee0r ji;,acronym for it is "Yes It Is".
this is the answer for several questions
is it efficient?
is it easy to use?
is it professional?
is it right for my next project?
...
yes it is
yii is a component-based php framework for developing web applications.
it has been built with sophisticated,enterprise applications in mind
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Yii framework

Sree kalahasteeswara institute of technology(skit)Dept. of Computer Science and Engineering

ByC.Leena Roja10381A0521

Page 2: Yii framework

CONTENTS: INTRODUCTIONHISTORYTECHNOLOGIES INSTALLATIONPERFORMANCEMODULEADVANTAGES AND DISADVANTAGESCONCLUSION

Page 3: Yii framework

Introduction:Yii is pronounced as Yee or ji:,and is acronym for “Yes It

Is!”.

Yii is a high-performance component-based PHP framework for developing large-scale Webapplications.

The Yii is a free,open-source web application development framework written in PHP5.

It has been built with sophisticated,enterprise applications in mind.

Yii supports MVC design pattern.

Page 4: Yii framework

History:Developed by Qiang Xue.

Qiang Xue was with experience in development of frameworks PRADO one of famous framework for PHP

By having the Years of experience ,he started the Yii project on january 1,2008.

On december 3,2008,after nearly one year’s development,Yii 1.0 was formally released to the public.

Page 5: Yii framework

Technologies: YII incorporates many ideas and work from other well-known web programming

frameworks and applications.

Ruby on Rails:-Yii inherits its spirit of convention over configuration. Yii also referenced its implementation of the active record design pattern for its ORM layer.

  PRADO:-prado(framework) is major source in development of YII.  Jquery:-Jquery is integrated in yii .  Symphony and joomla :- were also used in development of yii.

 

Page 6: Yii framework

Installation:Step1: Download latest version of Yii framework from

www.yiiframework.com And then click on “Download Yii” button in that website

Page 7: Yii framework

Step2:Open the file containing folder and then extract the file.

Step3:Rename the file to yii.

Step4:open command prompt,type cd\,yii,framework\yiic. (If yiic file is unable to open,then change the

path(c:\xampp\php\php.exe),by opening that file in a notepad++)

Step5:specify the path to create first Yii application. The path will be c:\xampp\htdocs\yiitest

Step6:next the command will be displayed,type ‘yes’ for creation of application.

Yiitestcss

Page 8: Yii framework

Home About

Step7:type localhost/yiitest/ in the address bar of the browser then an web application will be appear

Page 9: Yii framework

contact login

Page 10: Yii framework

Features:MVC design patternForm input and validationAuthentication and AuthorizationError handling and Logging errorsSecurityDetailed documentationAutomatic code generation

Page 11: Yii framework

Performance:Yii is a high-performance framework.RPS(Request Per Second)-it describes how many requests

an application written in a framework can process per second.

Page 12: Yii framework

Why Yii is so fast?Yii is so much faster because it is using lazy loading

techinque.

Eg:it does not include class file and does not access object until those are needed.

By having Benchmark,we can measure the performance.

Benchmark in computing is the act of running a computer program,a set of programs,or other operations,in order to assess the relative performance of an object.

Page 13: Yii framework

License:The Yii framework is free software. It is released under the terms of the

BSD License.

Redistribution and use in source and binary forms,with or without modifications are permitted by having BSD license only.

The text contained in the official and user-contributed documentation is licensed under the GNU Free Documentation License(GFDL).

GFDL license allows users to copy,distribute and/or modify the document.

Page 14: Yii framework

Module:A module is a self contained software unit that consists of

models,views,controllers and other components.

A module resembles to an application.

But module cnnot be deployed alone and it must be reside inside of an application.

Page 15: Yii framework

Modules are useful for a large-scale application.single module can be divided into several modules.

Each being developed and maintained seperately.

Can Creating module

Using expression ucfirst(id).’module’. Using module

Declare the module ID in the modules property of the application. Nested module

First call the former parent ,later child module. Child modules must be declared in the modules property of their parent.

Page 16: Yii framework

MVC: It divides an interactive application into three components.

ModelViewController

Through this approch each component is created and maintained seperately.

Page 17: Yii framework

Model:A model represents a single data object.

Models are used to keep data and their relevant business rules.

It could be a row in a database table or an html form with user input fields.

Yii implements two kinds of models: Form models Active records

Page 18: Yii framework

Kinds of models:Form model:

Used to store collected data from user input.

Such data is often collected,used and discarded.

Active records: Tells which record is

currently using.

Page 19: Yii framework

View:View renders the components of a model.

It access applications,data through model and specifies how that data should be presented.

It’s views responsibility to maintain consisitency.

Layout: used to decorate views. it contains header and footer,content is embedded in

between.

Page 20: Yii framework

Widget: it is an element of GUI that displays information and provides

specific way for user to interacr with application and operating system.

System view: used by Yii to display error and logging information.

Controller: It translates interactions with the views into actions to be

performed by the model.

Front controller for routing.

Page 21: Yii framework

Route: Formed by controller ID+module ID.Seperated by a slash(moduleID/controllerID/actionID)

controller instantiation: Is created when it receives an request.

Action: Action will be performed when it receives an request.Default action.

Filter: Filter can be applied before and/or after an action is executed

for authentication.

Page 22: Yii framework

Advantages:Very fast and efficientAccelerate the development processMVCAuthentication and role-based access controlWebsite-portalGreat documentation

Disadvantages:Different subdomains,decrease in main domain

pagerank.

Page 23: Yii framework

Conclusion:Yii does not need to be installed under a Web-accessible directory. An Yii application has one entry script which is usually the only file that

needs to be exposed to Web users. Compare with other PHP scripts,it is the best and secured one.

Page 24: Yii framework

THANK YOU