yii

    0热度

    1回答

    何做我转换这个查询准备 Booking::model()->findAllByAttributes(array('is_deleted'=>NOTDELETED,'status'=>BOOKINGSTATUSPENDING,'payment_status'=>UNPAIDBOOKINGSTATUS,'transaction_status'=>FAILEDPAYMENTTRANSACTION),ar

    2热度

    1回答

    我想将Yii 2中的数组帮助器的值设置为id(数据库的主键)。 但是,当我使用它显示我0,1,2,3,..不是它的真实身份证号码。 这里是我的数组助手代码: <?= Html::activeDropDownList($model, 'username', array_merge(array(''=>' '), ArrayHelper::map(Experts::find()->all()

    0热度

    1回答

    我有谷歌的lib - https://github.com/rapidwebltd/php-google-contacts-v3-api ,我需要实现它在Yii框架 如何,例如实现这个代码谊: require_once '../../../vendor/autoload.php'; use rapidweb\googlecontacts\helpers\GoogleHelper; $cli

    1热度

    1回答

    如何在控制器中使用多个分页? 我遇到以下错误。 设置未知属性:警予\部件\ LinkPager :: expertpagination在控制器 : $count=$query_comment->count(); $pagination=new Pagination(['totalCount' => $count, 'defaultPageSize' => 2]); $models_commen

    0热度

    1回答

    我有以下代码,输出将在数组中。我如何找到匹配$ pesara和$ ahli的数组。它的条件是CURRENT_ID_NO等于ic_no $sql = "SELECT CURRENT_ID_NO, NAME, MOBILE_NO FROM pesara"; $dbCommand = Yii::app()->db->createCommand($sql); $pesara = $db

    0热度

    1回答

    当我们使用引导模式弹出(远程内容)加载cgridview,然后重新打开弹出后,如果我们点击分页链接然后有多个请求发生如何防止它? 我已经尝试在cgridview中使用动态ID和更多,但似乎没有解决问题。请帮忙。

    5热度

    1回答

    我想要生成一个基本的pdf与wkhtmltopdf phpwrapper。我也在使用yii框架。 这是我的HTML: <!doctype html> <html> <head> </head> <body> <p>test</p> </body> </html> 我在wktmltopdf设置: $pdfParams = array(

    0热度

    1回答

    我正在研究yii2框架。我已经使用作曲家安装了两个扩展。 https://github.com/kartik-v/yii2-widget-fileinput。 https://github.com/perminder-klair/yii2-dropzone 几天以后,我意识到,我的项目的大小比400MB以上!这是正常的,好吗?我的应用程序的性能会因此而下降吗? 我用require来安装扩展。 co

    0热度

    2回答

    我的分页不显示在我的索引页上。 有人可以告诉我如何为我的索引页创建分页,限制为15吗? public function actionIndex() { $searchModel = new EmployeeSearch(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams);

    0热度

    1回答

    我想两个表使用上的Yii下面的代码相关联: $this->stocks= $stocks->find()->select(['id', 'type.name'])->joinWith('stockType type')->where(['fk_product' => $productId, 'fk_product_type' => 'type.id'])->all(); 的问题是:我想要的股票