Displaying 101-110 of 112 results.
Resolved: Yii jQuery UI date calendar on form
posted by admin on January 22, 2016
I have text field on form

<div class="row">
<?php echo $form->labelEx($model,'date_from'); ?>
<?php
echo $form->textField($model, 'date_from', array(
'size' => 10,
'maxlength' => 10,
));
?>
<?php echo $form->error($model,'date_from'); ?>
</div>


I want to change textfield to jQuery UI date.Read more
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: Yii - How to customize a CGridView CbuttonColumn
posted by admin on December 25, 2015
Customize default buttons? :(Read more
Resolved: Yii 1.1: syntaxhighlighter extension CListView ajax pagination problem
posted by admin on December 25, 2015
CListView ajax pagination Can't find XML Brush etc.
First page working great, but when working ajax pagination, brushes not working, not finding any brushes.

My code:

<?php Yii::app()->syntaxhighlighter->addHighlighter(); ?>
Read more
Resolved: How To Set The "pagevar" Parameter For The Grid View Widget?
posted by admin on December 25, 2015
Hi,
I have a gridview widget:

$this->widget('zii.widgets.grid.CGridView', array(
'dataProvider' => $model->search(),
'summaryText' => 'صفحه {page} از مجموع {pages} صفحه',
'enableSorting' => false,
'enablePagination' => true,
'ajaxUpdate' => false,
'columns'=>array(
//....
),
));


In the pagination links it includes the model name as prefix to pageVar parameter. is there anyway to set the pageVar property of widget so it changes the links from "index.php?r=item/list&Items_page=2" to "index.php?r=item/list&page=2" ?Read more
Resolved: CListview Pagination variable
posted by admin on December 25, 2015
within CListview and CGridview when I turn off ajax I set

'ajaxUpdate' = false

but the paging variable comes up with modelname_page=1 how can i set the paging variable to just 'p'
ie so p=1.

I have tried

'pageVar' => 'p'

but this doesn't work as it's not supported.
btw I am using yii 1.1.10Read more