2. About Yii
Yii is a high-performance PHP framework best for developing Web applications.
1) Is it fast?...
2) Is it secure?...
3) Is it professional?...
4) Is it right for my next project?...
Yii Framework Answer is:- Yes, it is!
www.letsnurture.com | www.letsnurture.co.uk
3. Yii is a free, open-source Web application development framework
written in PHP5 that promotes clean, DRY design and encourages rapid
development. It works to streamline your application development and helps
to ensure an extremely efficient, extensible, and maintainable end product.
History
Qiang Xue, who started theYii project on January 1, 2008.
Qiang previously developed and maintained the Prado framework.
www.letsnurture.com | www.letsnurture.co.uk
4. Yii is a high-performance framework. The graph below shows how
efficient Yii is when compared with other popular PHP frameworks. In the graph,
RPSstands for "request per second" which describes how many requests an
application written in a framework can process per second. The higher the
number, the more efficient a framework is. As we can see that Yii outperforms all
other frameworks in this comparison. The performance advantage of Yii is
especially significant when the widely used APC extension is enabled.
Performance alone is not the whole story (otherwise we should all use
plain HTML or PHP). With such superior performance, Yii still provides a very
rich feature set which can greatly improve your development efficiency.
WhyYii isso Fast
Yii is so much faster because it is using the lazy loading technique extensively.
For example, it does not include a class file until the class is used for the first
time; and it does not create an object until the object is accessed for the first
time. Other frameworks suffer from the performance hit because they would
enable a functionality (e.g. DB connection, user session) no matter it is used or
not during a request.
www.letsnurture.com | www.letsnurture.co.uk
6. http://www.yiiframework.com/
1) Live Chat
2) Framework
3) Extensions
4) Demos
5)Tutorials
6) Screen casts
7) News regarding any new features etc.
www.letsnurture.com | www.letsnurture.co.uk
7. CRUD Operation
CRUD (create, read, update and delete) operations
Yii application and Gii (powerful web based code generator) to
automate code creation for certain tasks.
http://www.yiiframework.com/extension/giix/
www.letsnurture.com | www.letsnurture.co.uk
8. Installing Crud
1) Copy the directoryies "core" and "components" from the downloaded
archive, or clone this repository, into your application's
protected/extensions/giix directory. You'll have to create the giix directory.
2) Configure the gii generator path in your application, like:
'modules' => array(
'gii' => array(
'class' => 'system.gii.GiiModule',
'generatorPaths' => array(
'ext.giix.core', // giix generators
),
),
),
3) Configure your application to automatically load the giix component
classes when needed, like:
'import' => array(
...
'ext.giix.components.*', // giix components
),
It is recommended to set at least the 'password' and 'ipFilters' properties
in gii for security.
www.letsnurture.com | www.letsnurture.co.uk