Wiki

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

Displaying, Sorting and Filtering Model Relations on a GridView

Updated 6 months ago by Antonio RamirezHow-tos0 comments – viewed 5,785 times – ( +5 ) – version 2.0
One of the things you will find tricky to implement is the the sorting and filtering of a GridView's column that displays related model data.

How to use BootstrapInterface

Updated 6 months ago by Antonio RamirezHow-tos0 comments – viewed 1,903 times – ( +2 ) – version 2.0
Yii2 introduces the BootstrapInterface to ease our application initialization tasks, whether they are composer based or Application bootstrap (do not mistaken with Bootstrap CSS Framework) based tasks. On this article, I am going to explain how to use it on your Application bootstrap process.

How to include Javascript, CSS

Updated 6 months ago by Pedro fpHow-tos2 comments – viewed 298,369 times – ( +9 / -2 ) – version 1.1
There are many methods that we can include javascript, css into your Yii App. Today I will demonstrate three simple and helpul methods.

How to avoid a database update if the ActiveRecord was not modified

Updated 6 months ago by tomvdpHow-tos0 comments – viewed 3,568 times – ( +1 ) – version 1.1
The classic Yii way for doing an update action is as follows:

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

Updated 6 months ago by xJoseHow-tos1 comment – viewed 13,777 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 6 months ago by YiiJekaHow-tos2 comments – viewed 5,832 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 6 months ago by YiiJekaHow-tos2 comments – viewed 8,352 times – ( +7 / -1 ) – version 1.1
typical scenario: invoice, invoice items.

Login Form With email or Whatever

Updated 6 months ago by nabil abdoualiHow-tos1 comment – viewed 4,193 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 6 months ago by hemcHow-tos7 comments – viewed 5,344 times – ( +8 ) – 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 6 months ago by Arno SHow-tos0 comments – viewed 13,382 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.