Wiki

Sorted by date (updated)X
Displaying 291-300 of 782 result(s).

Automatic Parameter Binding to POST vars in Yii2

Updated 2 years ago by YiiJekaHow-tos2 comments – viewed 11,406 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 2 years ago by YiiJekaHow-tos2 comments – viewed 15,440 times – ( +7 / -1 ) – version 1.1
typical scenario: invoice, invoice items.

Update Gridview with Dropdown Selection

Updated 2 years ago by lgastmansTips1 comment – viewed 9,027 times – ( +3 ) – version 1.1
I recently worked on updating the content of a gridview based on the selection of a dropdown menu. I thought I should share it in the forum...

Login Form With email or Whatever

Updated 2 years ago by nabil abdoualiHow-tos1 comment – viewed 14,391 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 2 years ago by hemcHow-tos10 comments – viewed 43,156 times – ( +10 ) – 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

Creating a Simple CRUD App With Yii2 (Revised 12/20/2013)

Updated 2 years ago by VivekTutorials7 comments – viewed 183,904 times – ( +10 / -10 ) – version 2.0
Creating a Simple CRUD App with Yii Framework 2 (Updated December 20th, 2013)
tags: yii2, tutorial, howto

Integrating ZF2 into Yii - use case demonstrated

Updated 2 years ago by BoazHow-tos2 comments – viewed 7,620 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.

Debugging CActiveRecord failed save() attempts

Updated 2 years ago by BoazTips0 comments – viewed 20,787 times – ( +5 ) – version 1.1
When you're filling up a form of a CActiveRecord (using CActiveForm for example), usually you'll construct your code so that in case of validation error you'll get back the form with the error displayed back to you, typically when CActiveForm.errorSummary() is used. This is how its done by Gii.

An Easy Solution for Dependent dropDownList Using AJAX

Updated 2 years ago by Kostas Apazidis (KonApaz)Tips11 comments – viewed 79,163 times – ( +15 / -1 ) – version 1.1
Sometimes new Yii guys face problem to manage dependent dropDownList using AJAX. I am going to discuss an easy solution about this issue.

Override/Eliminate Bootstrap CSS/JS for Yii 2.0 widgets

Updated 2 years ago by Kartik VHow-tos2 comments – viewed 28,418 times – ( +38 / -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: