Yii framework


Published on

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,
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

Published in: Career
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Yii framework

  1. 1. By C.Leena Roja 10381A0521
  3. 3. 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.
  4. 4. 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.
  5. 5. 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.
  6. 6. Installation: Step1:  Download latest version of Yii framework from www.yiiframework.com  And then click on “Download Yii” button in that website
  7. 7.  Step2:Open the file containing folder and then extract the file.  Step3:Rename the file to yii.  Step4:open command prompt,type cd,yii,frameworkyiic. (If yiic file is unable to open,then change the path(c:xamppphpphp.exe),by opening that file in a notepad++)  Step5:specify the path to create first Yii application.  The path will be c:xampphtdocsyiitest  Step6:next the command will be displayed,type ‘yes’ for creation of application.  Yiitestcss
  8. 8. Home About Step7:type localhost/yiitest/ in the address bar of the browser then an web application will be appear
  9. 9. contact login
  10. 10. Features:  MVC design pattern  Form input and validation  Authentication and Authorization  Error handling and Logging errors  Security  Detailed documentation  Automatic code generation
  11. 11. 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.
  12. 12. 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.
  13. 13. 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.
  14. 14. 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.
  15. 15.  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.
  16. 16. MVC:  It divides an interactive application into three components.  Model  View  Controller  Through this approch each component is created and maintained seperately.
  17. 17. 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
  18. 18. 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.
  19. 19. 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.
  20. 20.  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.
  21. 21.  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.
  22. 22.  Advantages:  Very fast and efficient  Accelerate the development process  MVC  Authentication and role-based access control  Website-portal  Great documentation  Disadvantages:  Different subdomains,decrease in main domain pagerank.
  23. 23. 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.
  24. 24. THANK YOU