I have two related fields in a Yii model. They are items_per and items_period.  items_per is an integer that reflects how many items to be processed in a given time period.  items_period is the number of seconds in that period (a dropdown with option...
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('...
Is there any mechanism in yii framework to translate messages in javascript source files.  For example with:  yiic message config-message.php   I can generate translation .php files for all Yii::t().  Is it possible to generate .js files with the sam...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.