Skip to content

Instantly share code, notes, and snippets.

Fred Muya muya

Block or report user

Report or block muya

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
muya / yiiCGridView.php
Last active Dec 17, 2015
Example of a Yii CGridView Widget used in the StudentPortal Project
View yiiCGridView.php
* CGridView widget
$this->widget('zii.widgets.grid.CGridView', array(
muya / yii-actionAdmin.php
Last active Dec 17, 2015
Snippet for Yii's actionAdmin function in the Controller class
View yii-actionAdmin.php
* UsersController actionAdmin function
public function actionAdmin() {
$model = new Users('search');
$model->unsetAttributes(); // clear any default values
if (isset($_GET['Users']))
$model->attributes = $_GET['Users'];
$this->render('admin', array(
You can’t perform that action at this time.