Displaying 251-260 of 276 results.
Resolved: Yii form dropDownList create and update support example with empty first option
posted by admin on January 22, 2016
I have form on yii. It is news form. I want to change news category by select box and in update form have selected option.Read more
Resolved: Yii admin module link url default
posted by admin on January 21, 2016
I create admin module, and try to open link http://localhost/test/admin , and get 404 error, object not found.Read more
Resolved: Yii gii object not found
posted by admin on January 21, 2016
I try to open http://localhost/test/gii , and get error
Error 404
object not foundRead more
Resolved: Yii captcha does not work first time
posted by admin on December 22, 2015
I am trying to create register form where I used captcha. I have enabled ejax validation. But the there is a problem, captcha does not work first time. When I generate new captcha code, that works. My code is:

In model,

public $verifyCode;

public function rules()
{
return array(
array('verifyCode','captcha','allowEmpty'=>!CCaptcha::checkRequirements(), 'on'=>'registration'),

array('id, first_name,last_name, email, username, password, password_repeat, user_type, keystring, status, logo_url, last_login_time, create_time, update_time, validation', 'safe', 'on'=>'search'),
);
}

In controller:

public function actions()
{
return array(
'captcha'=>array(
'class'=>'CCaptchaAction',
'backColor'=>0xFFFFFF,
'testLimit'=>3,
),
);
}

In view:

<?php if(CCaptcha::checkRequirements()): ?>
<div class="row">
<?php echo $form->labelEx($model,'verifyCode'); ?>
<?php $this->widget('CCaptcha', array('captchaAction'=>'user/captcha')); ?>
</div>
<div class="formfieldarea">
<div class="form-text"></div>
<div class="form-field">
<?php echo $form->textField($model,'verifyCode'); ?>
<div class="hint">Please enter the letters as shown.

Letters are not case-sensitive.</div>
<?php echo $form->error($model,'verifyCode'); ?>
</div>
</div>
<?php endif; ?>

I have searched in google a lot to find the solution. But did not find. Please help someone.:(Read more
Resolved: yii session_regenerate_id(): Session object destruction failed
posted by admin on January 17, 2016
I got an error, when trying to login without checking REMEMBER ME.Read more
Resolved: Wordpress Subscribe Jetpack to page by shortcode
posted by admin on January 10, 2016
I use wordpress jetpack and I want to create subscribe page and put subscribe form on pageRead more
Resolved: How do I horizontally center an absolute positioned element inside a 100% width div?
posted by admin on January 1, 2016
In the example below, #logo is positioned absolutely and I need it to be horizontally centered within #header. Normally, I would do a margin:0 auto for relatively positioned elements but I am stuck here. Can someone show me the way?

HTML

<div id="header">
<div id="logo"></div>
</div>


CSS

#header {
background:black;
height:50px;
width:100%;
}

#logo {
background:red;
height:50px;
position:absolute;
width:50px
}
Read more
Resolved: markItUp. BBCode Parser with emotions smiles
posted by admin on December 25, 2015
altI want to convert convert markItUp BBCode to HTML tags.
I have smiles too.Read more
Resolved: PHP "strip_tags" accept all except script
posted by admin on December 25, 2015
I want full allowed tags listRead more
Resolved: PHP add rel nofollow to links string
posted by admin on December 22, 2015
I have content in string, and I want to find all a links and add a rel="nofollow"Read more