hi friends i am suriyan suresh from Taminnadu, friends shall we start yii community in India, if any one interested please let me know
hi friends i am suriyan suresh from Taminnadu, friends shall we start yii community in India, if any one interested please let me know
HI this is Ganesh from Coimbatore(kongunadu)
I think this placed should be cleaned up first.
please don’t post anything that is not related to forum.
Only then we can become a good community… thanks for caring.
Hi buddies…this is Siddeshwar From Mumbai…!!!
hi,
i am sasikanth from hyderabad
Hello, I am Sankalp Mishra from New Delhi
Hi,
I am Ankit Modi and i have 2 years exp in Yii…
Best Regards,
Ankit Modi
Hi Friends
I am bala from chennai
Hi All,
This is Sushil from Mumbai
hello everyone
my problem related to pagination yii
like when i click on the 2nd of the pagination it is append entire cgirdview on the cuurent page cgridview instead of display 2nd page of the pagination
my code like
//list_all.php
$this->widget(‘zii.widgets.grid.CGridView’, array(
‘htmlOptions’ => array(‘class’ => ‘’),
‘itemsCssClass’ => ‘tables’,
‘pagerCssClass’ => ‘dtPagination’,
‘template’ => ‘{items}{pager}’,
‘id’ => ‘friend-transaction’,
‘dataProvider’ => $data_provider,
‘pager’ => array(
‘header’ => ‘’,
‘firstPageLabel’ => ‘<<’,
‘prevPageLabel’ => ‘<’,
‘nextPageLabel’ => ‘>’,
‘lastPageLabel’ => ‘>>’,
),
‘columns’ => array(
array(
‘name’ => ‘created’,
‘value’ => ‘date(“d/m/Y”,strtotime($data->sattlement_date))’,
‘type’ => ‘raw’,
‘htmlOptions’ => array(‘width’ => ‘10%’)
),
array(
‘name’ => ‘New Debt & Record Payment Details’,
‘value’ => ’
CHtml::link(
(($data->bill_id)? $data->bill->title:$data->debit_user->first_name . CHtml::image(Yii::app()->request->baseUrl . "/images/paid_1.png"). $data->credit_user->first_name),
Yii::app()->createUrl("transaction/view",array("id"=>$data->primaryKey)),
array("title" => "View transaction")).
"<br />Make by <b>::</b> ".Yii::app()->user->name’,
‘type’ => ‘raw’,
),
array(
‘name’ => ‘Amount’,
‘value’ => ‘"<div class=\“simple_buttons\”><div class=\"".(($data->debit_user_id == Yii::app()->user->id) ? “debit_amount” : “credit_amount”)."\">". $data->amount."</div></div>"’,
‘type’ => ‘raw’,
‘htmlOptions’ => array(‘align’ => ‘right’, ‘width’ => ‘20%’)
),
),
));
?>
<div class="widget_contents noPadding" >
<?php
// List all transaction between friends.
$this->widget(‘zii.widgets.grid.CGridView’, array(
‘htmlOptions’ => array(‘class’ => ‘’),
‘itemsCssClass’ => ‘tables’,
‘pagerCssClass’ => ‘dtPagination’,
‘template’ => ‘{items}{pager}’,
‘id’ => ‘friend-transaction’,
‘dataProvider’ => $group_provider,
‘pager’ => array(
‘header’ => ‘’,
‘firstPageLabel’ => ‘<<’,
‘prevPageLabel’ => ‘<’,
‘nextPageLabel’ => ‘>’,
‘lastPageLabel’ => ‘>>’,
),
‘columns’ => array(
array(
‘name’ => ‘created’,
‘value’ => ‘date(“d/m/Y”,strtotime($data->created_date))’,
‘type’ => ‘raw’,
‘htmlOptions’ => array(‘width’ => ‘1%’)
),
array(
‘name’ => ‘Group Details’,
‘value’ => ’
CHtml::link(
(($data->bill_id)? $data->name:$data->name),
Yii::app()->createUrl("transaction/grouppayment",array("id"=>$data->id)),
array("title" => "View transaction")).
"<br />Make by <b>::</b> ".Yii::app()->user->name’,
‘type’ => ‘raw’,
‘htmlOptions’=>array(‘width’=>‘70%’)
),
array(
‘name’ => ‘Amount’,
‘value’ => ‘$data->amount’,
‘type’ => ‘raw’,
‘htmlOptions’ => array(‘align’ => ‘center’, ‘width’ => ‘20%’)
),
),
));
?>
transactionContoller.php
public function actionListAll()
{
// Get Bill Settlement model
$model = new BillSettlementDtl();
// Data provider for settlement detail table for grid view
$dataProvider = new CActiveDataProvider(‘BillSettlementDtl’, array(
‘criteria’ => array(
‘condition’ => ’
(
debit_user_id = “’ . Yii::app()->user->id . '” OR
credit_user_id = “’ . Yii::app()->user->id . '”
)
’
),
‘pagination’=>array(
‘pageSize’=>5,
‘pageVar’=>‘page’,
)
));
$groupProvider = new CActiveDataProvider(‘BillItemDtl’, array(
‘criteria’ => array(
‘condition’ => ’
(
user_id = “’ . Yii::app()->user->id . '”
)
’
),
‘pagination’=>array(
‘pageSize’=>5,
‘pageVar’=>‘page’,
)
));
// Render output
$this->render(‘list_all’, array(‘model’ => $model,‘data_provider’ => $dataProvider,‘group_provider’=>$groupProvider));
}
SO PLESE HELP ME
Hello,
We are Yii development agency from mumbai, india.
Regards,
Hi, this is Devendra from Bangalore…
I’m Ratan Mondal form Kolkata,India
i am prashant from pune
Hello all,
since year no one is updating in Indian forum nor ny advanced members are answering in this forum.
guys requesting u to be live in this forum too.
Regards,
rups g
y we need a separate forum for indians???
Hi Friends,
I m sanjay from mumbai
Sure. Great Initiative .
Hi Srini
Count me in.
Hi Srini, I’m not Indian but in Cuba I’m one of a very few people using Yii and I think it’s great what you’re doing. I wanna help… Greetings for all…