Yii

CKEditor + Yii loaded with AJAX : $_POST doesn't contain the updated value

倾然丶 夕夏残阳落幕 提交于 2020-01-13 13:47:11
问题 in short: i'm using Yii Framework i have a one Ckeditor window on my page ( php/ yii framework - works fine) when i hit a button, a new CKeditor window is being generated and shown through AJAX call THE PROBLEM: this new CKEditor window correctly displays the text stored in the database BUT : when i hit "Save" (an ajax button generated together with the rest of the form) the values from this new CKeditor window will not save : CKeditor sends back the old values that it got from the database.

CKEditor + Yii loaded with AJAX : $_POST doesn't contain the updated value

我怕爱的太早我们不能终老 提交于 2020-01-13 13:46:53
问题 in short: i'm using Yii Framework i have a one Ckeditor window on my page ( php/ yii framework - works fine) when i hit a button, a new CKeditor window is being generated and shown through AJAX call THE PROBLEM: this new CKEditor window correctly displays the text stored in the database BUT : when i hit "Save" (an ajax button generated together with the rest of the form) the values from this new CKeditor window will not save : CKeditor sends back the old values that it got from the database.

mongodb的sql日志

三世轮回 提交于 2020-01-13 13:10:02
mongodb的sql日志 尚未测试,先记录下来 在Yii2中是没有打印出mongodb的sql语句,故借用下log来查看吧。 在网上有说可以使用$model->find()->createCommand()->getRawSql();进行查询,但是经过测试我是没有成功过, Yii2的版本:2.0.15.1 1.设置log的存放路径,当然这里是本地的   common/config/local/bootstrap.php 敲入 1 Yii::setAlias( '@customLog' , '要存放的全路径名\logs' ); 2.设置log配置 common/config/main.php下 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 $config = yii\helpers\ArrayHelper::merge([ 'components' => array_merge([ 'log' => [ 'targets' => [ [ 'class' => 'yii\log\FileTarget' , 'levels' => [ 'info' ], 'categories' => [ 'yii\mongodb\*' ], 'logFile' => '@customLog/mongodb.log' , ] ], ], ] ), ] );   好了

how to create webapp with yiic command using Yii Framework

耗尽温柔 提交于 2020-01-13 12:07:25
问题 I'm trying to build my first app in Yii, the guide on their website at the following address: http://www.yiiframework.com/doc/guide/1.1/he/quickstart.first-app # add-comment The problem is that any issue installing the application framework through the YIIC can not have that. I did the following: 1. I went through the CMD Library of the framework that is my WAMP server. 2. I wrote the following command: yiic.php webapp www/blog , I also tried the following command: yiic webapp www/blog . As I

how to create webapp with yiic command using Yii Framework

夙愿已清 提交于 2020-01-13 12:07:17
问题 I'm trying to build my first app in Yii, the guide on their website at the following address: http://www.yiiframework.com/doc/guide/1.1/he/quickstart.first-app # add-comment The problem is that any issue installing the application framework through the YIIC can not have that. I did the following: 1. I went through the CMD Library of the framework that is my WAMP server. 2. I wrote the following command: yiic.php webapp www/blog , I also tried the following command: yiic webapp www/blog . As I

Yii condition <IS NULL>

帅比萌擦擦* 提交于 2020-01-13 11:15:54
问题 How to find row by column with null value? It doesn't work: $criteria->condition = '`seller_id` IS NULL'; 回答1: $criteria->addCondition('seller_id IS NULL'); $data= MODEL::model()->find($criteria); tried this? **seller_id** is the mapped column name in Yii , it may not be same as the actual column name in your database. 来源: https://stackoverflow.com/questions/5349788/yii-condition-is-null

Yii condition <IS NULL>

社会主义新天地 提交于 2020-01-13 11:14:48
问题 How to find row by column with null value? It doesn't work: $criteria->condition = '`seller_id` IS NULL'; 回答1: $criteria->addCondition('seller_id IS NULL'); $data= MODEL::model()->find($criteria); tried this? **seller_id** is the mapped column name in Yii , it may not be same as the actual column name in your database. 来源: https://stackoverflow.com/questions/5349788/yii-condition-is-null

Yii condition <IS NULL>

邮差的信 提交于 2020-01-13 11:13:18
问题 How to find row by column with null value? It doesn't work: $criteria->condition = '`seller_id` IS NULL'; 回答1: $criteria->addCondition('seller_id IS NULL'); $data= MODEL::model()->find($criteria); tried this? **seller_id** is the mapped column name in Yii , it may not be same as the actual column name in your database. 来源: https://stackoverflow.com/questions/5349788/yii-condition-is-null

YII - Add another attribute to dropDownList

两盒软妹~` 提交于 2020-01-13 09:24:09
问题 I will to add another attribute to dropDownList. I will a dropdown list like this with Yii dropDownList: <select name="city" id="city"> <option value="1" test="123">one</option> <option value="2" test="234">two</option> <option value="3" test="345">three</option> <option value="4" test="456">four</option> </select> I will add test attribute to option tags. Default Yii dropDownList is: <?php echo CHtml::activeDropDownList('City', 'City', array(1 => 'one', 2 => 'two')); ?> How I can do this?

Yii: The system is unable to find the requested action “select”

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-11 13:23:08
问题 what i am doing is trying using the yii select2 extension to create a searchable dropdown list. i have downloaded the extension from this link and following it "http://www.yiiframework.com/extension/select2/". i have put the unzipped file(which is select2) in protected/extensions and i have then created a php file in "protected/views/site/select.php" in which i pasted the code below and when i try to run it via "webapp/index.php/site/login" it gives this error " Error 404 The system is unable