am naga from hyderabad
am naga from hyderabad
hi all,
can any one tell me step by step how to upload a file to server and saving the file path to database .
Hi! All
I am beginner to yii please help me
How to connect twitter login for my site
I can’t get clear Idea by referring yii document.
Please anyone is there to help me.
Thank you,
Hello Every1…
I am Akshay from Bangalore.
I am new to this env…
hi… im new to yii… and have 2-3 yrs of working experience wid php… wanted to know if anybody is able to provide either freelance training or paid training… kindly do reply guys… its urgent.
Hi All
Agree with this …
Kindly start this … soon…
Thanks
hi i am here
Can Anybody put some Tamil Video’s tutorial’s to Understand Yii better… i am good at basic(configuring, first application,gii etc) … Kindly share the video with theming concept,and real time time examples…
Thanks in Advance my dear Friends…
Hello All
you can post your questions and answer here.
Anybody post any yii related content or request me as a comment i will make it section here.
Aim is more help to each other you can ask questions in hindi as well.
Thanks
Good to see Indian Community. This is a great platform to share knowledge.
Cheers,
Ajay Lulia
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