yii-extensions

Undefined variable: yii2

假如想象 提交于 2019-12-12 04:19:05
问题 Getting error when I am trying to create dynamic form in using yii2-dynamicform. at the time of create method it is working fine but at the time of update showing the error. I have two tables one is 1.vendors & 2.vendors_more_categories Relation is 1-* between vendors & vendors_more_categories I just refereed https://github.com/wbraganca/yii2-dynamicform this link. <?php namespace app\controllers; namespace backend\controllers; use Yii; use app\models\Vendors; use app\models\VendorsSearch;

How to print out from cgridview to csv?

两盒软妹~` 提交于 2019-12-12 03:46:15
问题 Q : How to print out the filtered data from cgridview to csv? Status : I followed instruction as here. But now I got the plane csv(excel) file. No header, no data. This is view <?php echo CHtml::button('Export', array('id'=>'export-button','class'=>'span-3 button')); ?> <?php $this->widget('zii.widgets.grid.CGridView', array( 'id'=>'request-grid', 'dataProvider'=>$model->creator(), 'filter'=>$model, 'columns'=>array( 'request_no', array( 'name'=>'request_type_id', 'value'=>'$data-

composer works every where except one project

回眸只為那壹抹淺笑 提交于 2019-12-12 03:03:44
问题 I'm beginner in yii2. composer command works in every path in windows 10, but in one of my project's path composer command not works. Actually does nothing at all. It's obviously in this image: I don't know the the reason. My composer.json: { "name": "yiisoft/yii2-app-advanced", "description": "Yii 2 Advanced Project Template", "keywords": ["yii2", "framework", "advanced", "project template"], "homepage": "http://www.yiiframework.com/", "type": "project", "license": "BSD-3-Clause", "support":

yii-node-socket is not working for me

怎甘沉沦 提交于 2019-12-11 20:59:53
问题 Recently I have been trying to integrate nodejs with my existing project to make sure of live updating of feeds. Thus, I used the following yii plugin and followed the instruction: https://github.com/oncesk/yii-node-socket The host and port are: bigcat,3001 respectively and I have configured them in the console.php and main.php as mentioned. I started the node server and the log indicated that it was listening to: Listening bigcat:3001 Set origin: bigcat:* At my client side I have the

Is there any user interface available in yii framework for tabular data input?

孤人 提交于 2019-12-11 19:11:50
问题 Hi friends I want to know if there is some widget available using which I can insert multiple rows data items at same time and update database as I insert them. Like this form http://i49.tinypic.com/9s5hg5.jpg 回答1: Not that I know of. You generally have to roll your own 来源: https://stackoverflow.com/questions/13414185/is-there-any-user-interface-available-in-yii-framework-for-tabular-data-input

How to add select2 extension as filter in CGridView on Yii

大兔子大兔子 提交于 2019-12-11 06:52:31
问题 I'm trying to add in one column of the CGridView a filter with select2 extension following this answer but does not work. My code: In view vehiculos/admin.php <?php $this->widget('zii.widgets.grid.CGridView', array( 'id'=>'vehiculos-grid', 'dataProvider'=>$model->search(), 'filter'=>$model, 'columns'=>array( 'id', 'placa', array( 'name'=>'asociado_id', 'value'=>'Vehiculos::model()->getListNombreCompleto()', 'type'=>'html', ), 'modelo', 'color', array( 'class'=>'CButtonColumn', ), ))); In

YiiBooster theme not working

别说谁变了你拦得住时间么 提交于 2019-12-11 04:08:54
问题 i'm newbie to yii & i'm trying to install booster as well described in the home page but without sucess. the extension works, i generated CRUDs using 'bootstrap.gii' but i steel having the classic blueprint theme. there is my view output : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset

Yii Booster datepicker not working correctly

家住魔仙堡 提交于 2019-12-11 01:37:24
问题 I have an issue which related to Yii booster datepicker. scenario: <?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array( 'id'=>'expend-form', 'enableAjaxValidation'=>false, 'type'=>'horizontal', )); ?> <p class="help-block">Fields with <span class="required">*</span> are required.</p> <?php echo $form->errorSummary($model); ?> <?php // echo $form->textFieldRow($model,'fecha',array('class'=>'span5')); echo $form->datepickerRow($model, 'fecha', array('prepend'=>'<i class="icon

Unable to add yii extension to my project?

依然范特西╮ 提交于 2019-12-10 20:09:05
问题 is their any common method to add extension to my yii project ? how can i add extension to my yii please explain the steps 回答1: " Application Configuration " plays important role when installing extensions. By default this configuration will be in a php file (i.e protected/config/main.php ) Yii is a framework, not an application ... so you need to edit the php code yourself. 1) some people develops extensions as Yii components where you need to add these extensions into " components "

How to set cron job in yii

主宰稳场 提交于 2019-12-10 18:38:23
问题 I am quite newbie to yii. I am working on a project. I have written a function to send automatic reminder to clients say this function is at url : http://somedomain.com/index.php/somecontroller/someaction I want to set the cron for this url. one method is that I should write GET cron_job_url . But I dont want to use the url for my cron.I only want to use physical path of the controller and action. Is this possible with yii ? 回答1: If you want to use a cron job, I'd suggest to write a yiic