2. The development of Yii framework began on January 1,
2008.
It is an open source application that supports object
oriented programming.
It is also a component based MVC (Model-View-Controller)
web application framework.
The purpose for its development was to fix the drawbacks
of a then widely used PRADO framework.
PRADO was incapable of delivering a fast performance
when it came to handling complex pages.
3. Why Yii is GoodWhy Yii is Good
1)1) Easy to InstallEasy to Install
2)2) Modern TechnologiesModern Technologies
3)3) Highly ExtensibleHighly Extensible
4)4) Provision for TestingProvision for Testing
5)5) Simplified SecuritySimplified Security
6)6) Shorter Development TimeShorter Development Time
7)7) Easily Tuned for Better PerformanceEasily Tuned for Better Performance
8)8) Error HandlingError Handling
9)9) Using ThemeUsing Theme
10)10) LoggingLogging
4. 1)1) Easy to InstallEasy to Install
For every web developer time is of the essence.
Therefore it is important that while handling a framework
the installation time must be greatly reduced.
Too much time spent on installation will lead to loss of
money.
Moreover it will cost the developers valuable time that they
require to implement for the process of web development.
This is because of an uncomplicated, easy installation and
configuration process that comes with Yii.
5. 2)2) ModernModern TechnologiesTechnologies
Yii uses an OOP framework and takes advantage of PHP’s more
advanced features.
This includes the latest static binding, SPL classes and interfaces
and anonymous functions.
6. 3) Highly Extensible3) Highly Extensible
What makes Yii framework really popular is its ability to be
tailored to fit your needs.
Every component of the framework is virtually extensible.
7. 4) Provision for Testing4) Provision for Testing
Integration of great PHP testing framework
like Codeception is what makes Yii highly desirable.
This is made simple by the process of creating unit,
functional and acceptance tests for your applications.
8. 5) Simplified Security5) Simplified Security
Proper security is essential for any web application and this is
where Yii can help you.
Yii has a security application component that exposes several
methods to help assist in creating a more secure application.
9. 6) Shorter Development Time6) Shorter Development Time
Repetition tasks are unwelcomed as most developers consider them
to be waste of time.
But the fact that things can’t be done without taking care of them,
makes them important.
This is where Yii helps you to spend less time on these tasks and
more time customizing your application to suit your needs.
Gii is a tool that is used for this purpose. It is web-based code
scaffolding tool which allows you to quickly create codes.
It also helps in templates for models, controllers, forums, modules,
extensions and CRUD controlled actions and views.
10. 7) Easily Tuned for Better Performance7) Easily Tuned for Better Performance
The last thing that a web development company wants is a
slow website.
Yii tool can help bring more speed out of you application.
Yii/caching/cache are its cache components, which allows
you to choose whichever caching system you want while
using a common API.
11. 8) Error Handling8) Error Handling
It has a complete error handling framework and is based on
PHP 5 exception mechanism.
When the application is created for the purpose of handling an
incoming user request, the handleError method within handles
PHP warnings and notices; and it registers
its handleException method to handle uncaught PHP
exceptions.
When a PHP warning or some kind of uncaught exception that
occurs during an application execution, one of the error
handlers will take control and start the necessary error
handling procedure.
12. 9) Using Theme9) Using Theme
Themes are a great way of systematically customizing the
outlook of your web pages.
The overall appearance of a Web application can be greatly
enhanced with a proper theme.
For Yii, each theme has a directory consisting of layout files,
JavaScript files and CSS files.
It also has other relevant resource files including images, view
files, and many more.
The name of a theme is represented as its directory name. All
the themes can be found under the same
directory WebRoot/themes. Only one theme can be made active at
a given time.
13. 10) Logging
Yii has a logging feature that is both flexible and extensible.
You classify the messages that are logged according to its log
levels and message categories.
By using level and category filters, selected messages can be
further routed to different destinations, such as files, emails,
browser windows, etc.