Wiki

Sorted by date (updated)X
Displaying 11-20 of 601 result(s).

Integrating ZF2 into Yii - use case demonstrated

Updated 9 days ago by BoazHow-tos2 comments – viewed 3,970 times – ( +8 ) – 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 9 days ago by BoazTips0 comments – viewed 6,426 times – ( +4 ) – 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 9 days ago by KonApazTips10 comments – viewed 40,174 times – ( +11 / -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 10 days ago by Kartik VHow-tos2 comments – viewed 1,964 times – ( +1 ) – 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:

Create Crud with Yii2

Updated 10 days ago by CeBeTutorials2 comments – viewed 8,966 times – ( +1 / -12 ) – version 2.0
This guide is meant to help you started with Yii2. Yii2 is by no means "production" ready. I do not recommend using this in production. lets start with yii2:

two or more different collected data in one CGridView

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

Caching strategy

Updated 10 days ago by CeBeHow-tos9 comments – viewed 2,936 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

Yiistrap TbHtml::navbarSearchForm

Updated 10 days ago by CeBeTips0 comments – viewed 3,380 times – version 1.1
Hi all,

Sort and filter a custom or composite CGridView column - that may even contain data from different tables.

Updated 10 days ago by CeBeHow-tos1 comment – viewed 12,071 times – ( +3 / -1 ) – version 1.1
I have a table (account) which contains "General Ledger" accounts. Each account has its own account_description - such as 'inventory', 'sales', etc.