cakephp

    0热度

    1回答

    我想在CakePHP 3应用程序中发送邮件。另一个应用程序中的相同配置工作正常,但不在此应用程序中。 在config/app文件我的电子邮件传输配置下面给出: 'EmailTransport' => [ 'default' => [ 'className' => 'SMTP', // The following keys are used in SMTP tran

    0热度

    1回答

    我有多个记录对于用户来说,一台如他们的登录日期和IP地址。 所以,我想最后一个IP地址或最后一次登录的日期在我的数据库的每个用户,为去年n天。 当我尝试使用"group"在CakePHP中发现,它并没有显示正确的记录: $data = $this->Login->find('all', array( 'conditions'=>array('Login.last_login_

    0热度

    1回答

    如何在下面的示例中显示值而不是ID? 表文件包含: ID,标题,正文,为person_id,review_date 我得到这样的,但不是在DocumentsController(如果它是很重要的): $test = $this->Documents->find('all',['conditions' => ['review_date'=>date('Y-m-d', strtotime('2022-

    -3热度

    1回答

    我想从CakePHP的XML数据中获得特定的值。这是我到目前为止: 在控制器中做print_r($ output)之后,这就是我所得到的; <?xml version="1.0" encoding="UTF-8"?> <response> <xmlArray> <numbers>52619657</numbers> </xmlArray> </response>

    1热度

    1回答

    创建构造虚拟领域我有这个模型称为Product class Product extends AppModel { public function __construct($id = false, $table = null, $ds = null) { parent::__construct($id, $table, $ds); $file_name = (p

    0热度

    1回答

    人 我需要你的帮助。 我在蛋糕PHP应用程序,它是完美的工作,只是停止通过发射以下错误工作: Notice (8): Undefined variable: authUser [APP/View/Elements/top_bar.ctp, line 20] Fatal Error Error: syntax error, unexpected ''logoutRedirect'' (T_CONST

    1热度

    1回答

    我需要从表单传递数据。我有多年的下拉从视图中进行选择:他们 echo $this->Form->input('Zona.agno', array( 'label' => 'Año', 'type' => 'year', 'minYear' => date('Y') , 'maxYear' => date('Y') + 4, 'order

    0热度

    1回答

    逗人, 我有2名相关的用户表的ID字段的字段(solicitante和resolvedor),我怎样才能在index.ctp同时显示? 我用下面这段代码,但我不知道如何区分2场,我把只有一个字段,因为当我把二,信息重演 我index.ctp <?= $chamado->has('user') ? $this->Html->link($chamado->user->nome, ['controlle

    0热度

    1回答

    我们使用Cakephp V2.10.3。在我们的Crontab中,我们希望在PHP V5.6中运行cakephp shell命令。这个PHP版本位于/opt/plesk/php/php5.6/bin/php。 的的cronjob执行以下的外壳命令: cd /var/www/vhosts/apps/MyProject/app && Console/cake DoSomething 在 'DoSo

    0热度

    1回答

    我希望你能帮助我。我试图在CMD中“蛋糕烘烤”我的摄像头,但它总是说 最低PHP版本:5.6.0。您正在使用:5.5.12。 其实我使用的是7.1.10版本的php。我一直在测试Xampp和Wamp两个7.x php 我的cakePhp版本是3.4.7,我不知道是否需要更改某个文件。 感谢