Displaying 41-50 of 274 results.
Resolved: Yii2 ActiveForm password autocomplete off chrome not working
posted by admin on June 9, 2017
I have ActiveForm in Yii2 and password section and username filled automatically and autocomplete="off" not working on Chrome

<?php $form = ActiveForm::begin([
'options' => [
//'autocomplete' => 'off'
]); ?>
. . .
<div class="row">
<div class="col-md-12">
<?= $form->field($model, 'password_change')->passwordInput(['maxlength' => true, 'autocomplete' => 'off'])->label('password') ?>
. . .
<?php ActiveForm::end(); ?>
Read more
Resolved: Bootstrap How Make Glyphicons Bigger - Change Size (like Fonts Awesome fa-nx)
posted by admin on October 12, 2016
I have icon in bootstrap , and I want to make him bigger, change size.
I can do it by font-size, but I want to know how to do it by bootstrap default functionality.

<span class="glyphicon glyphicon-camera"></span>

I dont want method like this

font-size: 2em;

I want method by classes systems, like awesome fonts fa-2x etc...Read more
Wiki: Yii2 beforeSave() and afterSave()wiki
posted by admin on February 22, 2017
Wonderful methods beforeSave () and afterSave () in Yii2 help us to solve various problems, for example, you want before saving the database to change the date format, or save the log action. But not everyone knows how to inherit them.

Let's start with a simple afterSave():

public function afterSave($insert, $changedAttributes){
parent::afterSave($insert, $changedAttributes);
//... to do

There is nothing complicated, we simply pass to the parent method all the same settings and run it, and then do everything we needed.

Now beforeSave():

public function beforeSave($insert)
if (parent::beforeSave($insert)) {
//... to do
return true;
return false;

All the practical as well as with afterSave() method, except that we need to return the result of the parent method, otherwise we when calling $model->save() will get false, and our model will not be saved, nor do we we will receive no errors. Remember this moment.

Yii1 The principle is the same, only the parameters are not transferred there.Read more
Resolved: MarkItUp emotions smileys click insert to editor javascript jquery
posted by admin on December 25, 2015
altHow to insert markitup smileys to markitup editor.

<div id="emoticons">
<a href="#" alt="EMOTION_CODE">
<img alt="EMOTION_CODE" src="EMOTION_IMG">
<a href="#" alt="EMOTION_CODE">
<img alt="EMOTION_CODE" src="EMOTION_IMG">
<a href="#" alt="EMOTION_CODE">
<img alt="EMOTION_CODE" src="EMOTION_IMG">
Read more
Resolved: Bxslider height not responsive when resize
posted by admin on March 17, 2016
bxslider height not responsive, when I resize window, width is OK, but height not changeRead more
Resolved: Linux Ubuntu localhost phpmyadmin 404 not found error
posted by admin on February 9, 2016
The requested URL /phpmyadmin was not found on this server.

Apache/2.4.7 (Ubuntu) Server at localhost Port 80
Read more
Wiki: Yii2 basic include css js files to module views layout main from module assetswiki
posted by admin on March 1, 2017
Module Information
Module Admin


Create Module ASSETS in Web folder with content


Create Module views layouts


Change your Module and change layouts way in your config web.php

$config = [
'id' => 'basic',
'basePath' => dirname(__DIR__),
'bootstrap' => ['gii'],
'modules' => [
'gii' => [
'class' => 'yii\gii\Module',
'allowedIPs' => ['', '::1', '192.168.0.*', ''] // adjust this to your needs
'admin' => [
'class' => 'app\modules\admin\Module',
// the layout that should be applied for views within this module
'layout' => 'main',

Create Module new assets settings class
In modules/admin directory create file AdminAsset.php with content

namespace app\modules\admin;
use yii\web\AssetBundle;

class AdminAsset extends AssetBundle
public $sourcePath = '@app/modules/admin/web/assets';
public $css = [
public $depends = [

Go to your Admin Module layouts/main.php and replace your assets registration and namespace with

use app\modules\admin\AdminAsset;

Read more
Resolved: Yii get last parameter from current url without GET name getQuery
posted by admin on April 10, 2016
My controller

public function actionVideo()
//want to get last url parametr

My URL like


I want to get dubaivideosRead more
Resolved: PHP date or datetime to Yesterday, Today
posted by admin on March 30, 2016
In my social website, I want to convert datetimes in format, like
YesterdayRead more
Resolved: Syntaxhighlighter can't find any brushes after ajax request
posted by admin on December 25, 2015
After implementing pagination on my website, I was not able to highlight the code with SyntaxHighliter plugin. After AJAX call script was throwing an error: "Can't find brush for: BRUSH".Read more