public function actionIdenticon() { // $assetPrefix = Yii::app()->assetManager->publish(dirname(__FILE__) . '/../assets', true, 0, defined('YII_DEBUG')); // Yii::app()->clientScript->registerScriptFile($assetPrefix . '/md5.min.js'); // Yii::app()->clientScript->registerScriptFile($assetPrefix . '/jdenticon-1.3.0.min.js'); if (isset($_POST['userids'])) { // Loop through selected users foreach ($_POST['userids'] as $user_id) { // Find User by ID $user = User::findIdentity($user_id); // Upload new profile picture $this->uploadProfilePicture($user->guid, $_POST['identicon_' . $user_id . '_value']); } } $searchModel = new \humhub\modules\admin\models\UserSearch(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); return $this->render('identicon', array('dataProvider' => $dataProvider, 'searchModel' => $searchModel)); }