Date post: | 22-Nov-2014 |
Category: |
Career |
Upload: | leena-roja |
View: | 623 times |
Download: | 0 times |
Sree kalahasteeswara institute of technology(skit)Dept. of Computer Science and Engineering
ByC.Leena Roja10381A0521
CONTENTS: INTRODUCTIONHISTORYTECHNOLOGIES INSTALLATIONPERFORMANCEMODULEADVANTAGES AND DISADVANTAGESCONCLUSION
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.
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.
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.
Installation:Step1: Download latest version of Yii framework from
www.yiiframework.com And then click on “Download Yii” button in that website
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
Home About
Step7:type localhost/yiitest/ in the address bar of the browser then an web application will be appear
contact login
Features:MVC design patternForm input and validationAuthentication and AuthorizationError handling and Logging errorsSecurityDetailed documentationAutomatic code generation
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.
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.
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.
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.
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.
MVC: It divides an interactive application into three components.
ModelViewController
Through this approch each component is created and maintained seperately.
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
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.
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.
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.
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.
Advantages:Very fast and efficientAccelerate the development processMVCAuthentication and role-based access controlWebsite-portalGreat documentation
Disadvantages:Different subdomains,decrease in main domain
pagerank.
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.
THANK YOU