I need to enable pagination with ajax my code Controller(update content ajax)   function actionIndex(){         $dataProvider=new CActiveDataProvider('News', array(              'pagination'=>array(                 'pageSize...
He there!  If have a question that is related to two different issues I currently have in an application I'm working on.   Issue 1:  - There is a message system. Users are able to send each other messages. I would like to have a real time pop up...
I found how to i18n the message of the submit button like :  echo CHtml::submitButton(Yii::t('tr','Print'),array('confirm'=>Yii::t('tr','Please confirm printing'),));   Then setting language also translate w...
I have a view that renders some data in a CListView and a Highcharts graphic.  Please note that the pager of the CListView works the following way: it requests the "new page" to the server, the servers renders the entire content of the page a...
I have a question about Yii framework, i have problem with submit button, i want to given two fungsi save and update in one submit button, can anyone tell me how to set that function on form ?  <div class="row buttons">     <?php ech...
I just wonder what is the correct Geolocation API usage for the following use case:  I have website (targeted to mobile phones) with some form. User enters some text and press "Submit". I need to record user's location (GPS coordinates) t...
I am working in Yii and am suddenly stuck in this dilemma. The thing is, till this point I was using CMenu and when working with Bootstrap, I was using TbMenu.  However, in this current project, we have created entirely a different menu with lots of...
When I open the page with normal request (non ajax), everything works fine. But when I load that form with ajax, the client validation in that form does not work.  The form generator is classic gii-generated stuff:  $form = $this->beginWidget('...
I am trying to use the yii autocomplete build in widget. I have manage to show results from my users table intro the input filed with the following blocks of code:  public function actionSearch()  {     $res =array(); if (isset($_GET['term'])...
I'm having a javascript array like  var orderItems={'1':{id:'1',name:'Shirt',qty:'0'},'3':{id:'3',name:'Shoe',qty:'0'}, };   I need to pass this array to an action using a ajax butto...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.