You can find the english version of this wiki here: The complete beginner's study guide for the Yii Framework.
You can find the english version of this wiki here: The complete beginner's study guide for the Yii Framework.
We all know that widgets are really useful. We can use the almost everywhere we want, and we can use the same code a lot of times ( Almost OOP ).
Sometime we need to display numbers of items per page with their counting as a serial number.
In this article, we introduce an approach that allows automatic hyphenation of the route part in URLs.
You may face a situation when you need to access to a configurable module's property from everywhere and you don't have an instance of this module's class.
In this article, I will describe how to manage URLs for a Website that has both secure and nonsecure content.
Here I am describing how you can install and update Yii in WAMP sever.
First things first,follow the instructions in fr0d0z's article to set up WordPress.Regarding the WpController,I did not use an index view.So the code for WpController is
class WpController extends Controller
{
public function init()
{
// note that we disable the layout
$this->layout = false;
parent::init();
}
This will call the controller function using AJAX instead of redirecting the user to the url using GET parameters.
If you use yiic to generate webApplication there will be a layout folder under the protected/views/, and the Controller class under protected/components which will use by default these layouts files.
Start studying the MVC pattern. You will understand the roles of the model, the view and the controller and know where goes each part of the code.
So here is my complete solution - note that I'm using the 'short' date format throughout.
This wiki describes a more complex workflow using the XUpload widget
I recently had to have a checkbox column in my grid view that supported the 'disabled' attribute. This was easy enough to do by extending the CCheckBoxColumn. However, I also wanted the checkbox to be selected when clicking on the table's row (supported via CGridView's selectableRows option). I discovered I had to tweak yiigridview.js so that it would not select disabled rows when clicking on it o...
Some times the core validation rules provided by Yii won't satisfy all your needs, so you'll need to create your very own validation rule.
Sometimes the right place to store application data is in a join table. For example, movie viewers either like or don’t like the movies they watched.