There are cases you want to update a record on CGridview directly
There are cases you want to update a record on CGridview directly
Some of you have experienced the need to log some information while doing unit testing, due to the fact that the information given in the summary is just not enough, to know why the test is actually failing. this article focuses on 2 ways to get you logs up and running again.
Consider the following use case:
It is quite simple, but I am sure this small tutorial will help more than one of you out there :)
I used another example posted here a while back where the person was modifying the index.php and adding in a switch case for different domains and loading separate config files. This was actually too much for me, because all my portals are the exact same (as far as routes, modules, extensions, etc) and if I ever wanted to add another route it wouldn't be feasible opening up all the config files t...
I wrote about this on my blog, but wanted to post it here too.
In this wiki I will show how could logout from all other sessions or all other places.
CMenu comes with a lot of great customization options built in. One of the most used is the class 'active' being added to menu item. But, what if you want to add your own class or id to a menu item ?
The classic Yii way for doing an update action is as follows:
We all need SEO friendly URLs for our projects. its not always good to call route with params so we can generalise it for all models using a common function.
This very short how-to presents steps required to change controller name. It is oriented for less experienced users, which are starting their journey with Yii, to avoid common newbie pitfalls.
Everyone have seen a multilayer menu in several CMS
typical scenario: invoice, invoice items.
Hi Friends, This tutorial may be help us create the custom drop-down menu using CHtml::dropDownList
The CGridView widget is very useful and customizable, but sometimes you need a little more. One limit I found is to have only one row for headers; yes, you can write each column header in more than one row, but just inside the single cell. I was looking instead for the possibility to use more than one row, with different structure one from the others. This way **you can write columns grouping h...
This page explains how to implement an event and catch that event in a behavior.
<?php $this->widget('zii.widgets.grid.CGridView', array(
'dataProvider' => $dataprovider,
'id'=>'recipient_table',
'selectionChanged'=>'updateEditForm',
'columns' => array(
'rec_id',
'org.nachname',
'org.vorname',
'org_id',
array(
'class'=>'CButtonColumn',
'template'=>'{...
A big problem I've hit with the Yii-Bootstrap extension is that all AJAX requests are initializing Bootstrap because of preload. This is a huge waste of resources, especially when using AJAX-based file uploaders that split the file into chunks. Large file uploads using that method could be initializing bootstrap hundreds of times.
Do you want to make a listbox or dropdownlist to select one or more categories or sub categories ?
suppose to have in Mongo a collection "user" like: