This tutorial is for people that are integrating Yii into WordPress. Meaning that WordPress is the host platform, and that Yii will be handling AR, CRUD, etc.
This tutorial is for people that are integrating Yii into WordPress. Meaning that WordPress is the host platform, and that Yii will be handling AR, CRUD, etc.
Suppose you have Products,Categories and each product belongs in many categories
1) include the fancybox extesion otherwise fancybox js
A simple trick to get the localized version of a model field is to add this little method to your models.
But in the supposedly small share of webapps that don't ask users to activate their accounts, you can end up with a number of bounce messages and non-accessible active accounts.
In this wiki I will show how to Disallowing login from multi places. User can login or access their account at time, only single place.
This page is created to supply short directions and general tips for managing a Yii application in Codelobster PHP Edition.
This method was inspirated on the excellent text about different environments available at http://www.yiiframework.com/doc/cookbook/32/
How to display status image on admin gridview.
Let's take the example of the above article to display an email button next to a delete button:
This behavior will automatically set timestamp fields to the row creation and modification times.
The config first required In CApplication constructor
Hi Friends,
This is another way to view images in your application and I like this way because it's simple and I think it's better performance than other.
Yii's ActiveRecord classes are powerful, but they fall short when you want to have a configurable table prefix for your application.
Having said all of that, I want to add that the purpose of this article is not to convince anyone to write tests or design following TDD patterns. I'm not going to change the world to what I think is good. It's just about showing how to use some tools together with Yii Framework.
Logging context information (session, user, ...) to the logfile can be of great help tracking down problems with specific users.
Facebook Deauthorize callback is used to getting notification to the app owner when a user uninstall our app from their fan page or profile.
In Yii, we can define an action class and ask the controller to instantiate it. And we always create ourselves actions class in rootPath/protected/extensions, and the view file we called in the actions class always are located in rootPath/protected/views/ControllerNAME or rootPath/themes/ThemeNAME/ControllerNAME, then when we use the same actions class in different controllers, we have to copy it...