Wiki

Articles in category "how-tos", sorted by date (updated)X
Displaying 81-90 of 312 result(s).

How to create CJui Tabs : Render partial, Ajax tabs, color tabs

Updated 5 months ago by xJoseHow-tos1 comment – viewed 13,072 times – ( +5 ) – version 1.1
Hey guys, today we will show you how to make a Yii CJuitabs as example. Some feature cases such as Static tabs, render partial tabs, Ajax tabs, color tabs... You can see our code, there are simple 3 steps to make it work.

Automatic Parameter Binding to POST vars in Yii2

Updated 5 months ago by YiiJekaHow-tos2 comments – viewed 5,558 times – version 2.0
I wrote about this on my blog, but wanted to post it here too.
tags: yii2, controllers

get summary of related model via STAT relation

Updated 5 months ago by YiiJekaHow-tos2 comments – viewed 7,984 times – ( +7 / -1 ) – version 1.1
typical scenario: invoice, invoice items.

Login Form With email or Whatever

Updated 5 months ago by nabil abdoualiHow-tos1 comment – viewed 3,597 times – ( -2 ) – version 1.1
Here is my solution to login with email or anything else This update works with database mysql You must generate the user model with GII

How to implement cron in Yii 2

Updated 5 months ago by hemcHow-tos7 comments – viewed 4,634 times – ( +7 ) – version 2.0
In advance template there is already a file yii. And there is no need to run it as php, it is Linux script.
tags: cron, yii2, console

Checking for "expired" sessions/logins on the client side

Updated 5 months ago by Arno SHow-tos0 comments – viewed 12,914 times – ( +5 ) – version 1.1
Getting "Expired token" errors ? Here is a solution to avoid invalid CSRF on POST or ajax requests, or user identity changes.

Integrating ZF2 into Yii - use case demonstrated

Updated 5 months ago by BoazHow-tos2 comments – viewed 4,752 times – ( +10 ) – version 2.0
I needed to use a class from ZF2 in my Yii project. I've read probably all there is about this subject and still I needed lots of trial & errors to get it working, probably due to my lack of experience working with namepsaces and ZF2 in general. Also, the resources on the web are all partial, at best. Most simply refer to ZF1 where things are technically different. When I got it all working I decided to record my findings and that's how this article was born. The below recipe is what worked for me, accompanied by relevant comments. References: This article is partially based on this guide page. Be sure also to consult Zend Framework 2 documentation.

Override/Eliminate Bootstrap CSS/JS for Yii 2.0 widgets

Updated 5 months ago by Kartik VHow-tos2 comments – viewed 5,219 times – ( +27 / -4 ) – version 2.0
In Yii 2.0, the yii widgets that use Twitter Bootstrap CSS & JS directly, are part of the yii2-bootstrap extension, starting with yii/bootstrap namespace. For customizing bootstrap extension specific widget assets, you could configure your own assets (CSS/JS) using the new Yii Asset Manager in your Yii Config file. Something like:

two or more different collected data in one CGridView

Updated 5 months ago by CeBeHow-tos2 comments – viewed 5,259 times – ( +3 / -1 ) – version 1.1
Assume that you have teachers and students model.

Caching strategy

Updated 5 months ago by CeBeHow-tos9 comments – viewed 3,918 times – ( +5 / -1 ) – version 1.1
Note: Before reading this wiki you should have read the caching part in the Yii guide
tags: caching, filter