yii - iDocScript

burnwholeInternet and Web Development

Feb 5, 2013 (4 years and 8 months ago)

28,542 views


K.SWETHA.


CSE
-
IV
-
A


08Q61A0556.


INTRODUCTION


HISTORY


WORKING PROCESS


TECHNOLOGIES


ADVANTAGES AND DISADVANTAGES


CONCLUSION



Yii

is a high
-
performance component
-
based PHP framework for developing large
-
scale
Webapplications
. It enables maximum reusability in Web programming and
can significantly
accelerate
the development process.
The

Yii

framework is free
software. It is released under the
terms
of the BSD License
.



Yii (Yes it is)

:
-
It is a PHP framework based on Object oriented php5.Developed
by
Qiang

Xue.who

started to work on YII on 1st January 2008.Qiang
Xue

was with
experience in development of frameworks PRADO one of famous framework for
PHP was also developed by
Qiang

Xue
.


It is said that YII framework is best because it is based on DRY(Don't repeat
yourself)design pattern that is why is
is

called fast application development
framework
.
















Like most PHP frameworks, Yii is an MVC framework. Yii excels over other
PHP frameworks in that it is
e

cient
, feature
-
rich and clearly
-
documented.




Yii is carefully designed from the beginning to
fit

for serious Web application
development.



It is the result of Web application development and the investigation and
reflection

of the most popular Web programming frameworks and applications.




To run an Yii
-
powered Web application, you need a Web server supporting
PHP 5.1.0 or higher. For developers who want to use Yii, understanding object
-
oriented programming (OOP)is very helpful, because Yii is a pure OOP
framework.




The
Yii project started on January 1, 2008, in order to fix some drawbacks of
the

PRADO

framework. For example, PRADO was slow when handling complex
pages, had a steep learning curve and many controls were difficult to customize,
while Yii is much easier and more efficient
.


In
October 2008 after ten months of private development, the first alpha version of
Yii was released. On December 3, 2008, Yii
1.0
was formally
released.



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




New Features



This
page summarizes the main new features introduced in each Yii release.




Version 1.0.7




Added support for displaying call stack information in trace messages


Logging Context Information


Added index option to AR relations so that related objects can be indexed using the
values of a
specific

column


Relational Query Options



Added index option to AR relations so that related objects can be indexed using the
values of a
specific

column


Relational Query Options




Version 1.0.6




Added support for using named scope with update and delete methods:



Named
Scopes


Added
support for
profiling

SQL executions


Profiling

SQL Executions




Added support for customizing a single URL rule by setting its
urlFormat

and case
Sensitive options:


User
-
friendly URLs



Added support for using a controller action to display application errors:


Handling Errors Using an Action





Version 1.0.5


Enhanced
active record by supporting named scopes. See:


Named Scopes



Default Named Scope


Relational Query with Named Scopes



Enhanced active record by supporting lazy loading with dynamic query options.
See:


Dynamic Relational Query Options



Enhanced
CUrlManager

to support
parameterizing

the route part in URL rules.
See:


Parameterizing

Routes in URL Rules .




Yii implements the model
-
view
-
controller (MVC) design pattern which is widely
adopted inWeb programming.



MVC
aims to separate business logic from user interface
considerations so
that
developers can more easily change each part without a

ecting the other. In MVC,
the model represents the information (the data) and the business rules; the view
contains elements of the user interface such as text, form inputs; and the controller
manages the communication between the model and the view.



Besides
MVC, Yii also introduces a front
-
controller, called application, which
represents the execution context of request processing. Application resolves the
user request and dispatches it to an appropriate controller for further
handling
.


MODEL
-
VIEW
-
CONTROLLER




It is a software
architecture,currently

considered an

architectural pattern used
in

software
engineering.




Model
View Controller (MVC) pattern creates applications that separate the
different aspects of the application (input logic, business logic, and UI logic), while
providing a loose coupling between these elements.


MODEL
:
-



A model is an instance of its child class. Models are used to keep data and their
relevant business rules. A model represents a single data object. It could be a row in
a database table or a form of user inputs.

VIEW
:
-



A view is a PHP script consisting of mainly elements of user
interface the spirit of
seperation

of
logic and presentation, large chunk of logic should be placed in
controller or model instead of
view.





view has a name which is used to identify the view script
file
.


CONTROLLER
:
-





This
controller pattern creates applications that separate the different aspects of
the application (input logic, business logic, and UI logic), while providing a loose
coupling between these elements
.



Installation


Installation of Yii mainly involves the following two steps:


Download Yii Framework from yiiframework.com.


After installing Yii, you may want to verify that your server
satisfies

all the
requirements of using Yii.





YII built with help of

:
-

Qiang


Xue

made
use of several other web technologies


to
enhance the power of YII
Qiang

Xue

used
.




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
.




As
mentioned above YII is young framework so developers are still working on it to
make it more awesome But developers around the world started using it due to its great
features
and performance.



Out of several frameworks few which are famous :
-


CakePhp


Zend Framework


Symphony


Codeigniter


Prado
.




Yii
-
based
projects:



1) web
-
based CRM application,


the key feature of the project was building a custom framework above Yii


2) a web
-
portal for lawyers




Google will display

sitelinks

for each language instead of probably mixed up stuff.
In general, the whole SEO possibilities will be
better.



The
user experience will be better.





You
can split your website into a real
multi language portal.



It is very fast and efficient.




If you use different subdomains for one site, the

pagerank

of your main domain (
eg

example.com) will probably suffer.



Google
itself states that it's better to use top
-
level domains instead of subdomains.



For
small multilanguage sites, I would suggest to just use
english

url

rules with one
main domain.







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. Other PHP scripts, including those from Yii, should be


protected
from Web access since they may be exploited for hacking.






THANK YOU