Yii Framework Introduction and Hello World Tutorial
Today, We want to share with you Yii Framework Introduction and Hello World Tutorial.
In this post we will show you Yii Framework Introduction and hello world example, hear for Yii First Hello World Tutorial we will give you demo and example for implement.
In this post, we will learn about Simple Yii Hello World Example Application with an example.
Basic Steps for some Yii framework
- Creating an Action
- Creating a View
- Trying it Out
Simple Prerequisities for Yii Framework using PHP
-PHP and databases (DB)
-simple web using PHP, HTML, CSS and DB.
-important is OOP (Object oriented programming)
+ actionSay classes
+ overriding functions
+ using constructor
+ public and private methods
+ Some propertie
Download the Yii Framework
The directory structure of the Yii project site | Yii PHP Framework
Yii framework : Creating an Action
render('say', ['message' => $message]);
Simple Creating a View
Simple Trying it Out
Some Important Points for Yii framework
The Controllers should −
- In controller,Be very thin.
- In controller,Each action should contain only most a few lines of code useful.
- In controller,Use Views for all responses data.
- In controller,Not embed HTML.
- In controller,Access the request data.
- In controller,Call methods of used of models.
- In controller,Not process the request some data.
- In controller,These should be every processed in the model.
We hope you get an idea about Yii Hello World Application
We would like to have feedback on my Information blog .
Your valuable any feedback, Good question, Inspirational Quotes, or Motivational comments about this article are always welcome.
If you liked this post, Please don’t forget to share this as Well as Like FaceBook Page for Yii First Example Program.
We hope This Post can help you…….Good Luck!.
Here are some more FAQ related to this Article: