Questions tagged [cakephp-3.7]

For questions about the 3.7.x branch of the CakePHP MVC framework. Use this tag in combination with the general [cakephp] tag. If your question applies to CakePHP more generally, use only the [cakephp] tag

67 questions
2
votes
2 answers

cakephp 3 prefill user details in textbox

I have update profile view and my form is fully working. I need when i load this form it should be pre filled with database values instead of empty. i dont want to use sessions. I am using cakephp 3.8 version and in update_profile.ctp file i have…
Amol Bhandari SJ
  • 278
  • 2
  • 15
2
votes
1 answer

cakephp 3 - Impossible to generate condition with empty list

In cakephp 3 query gives error when added 'IN' condition in contain query. $itemsquery = $Students->find('all'); $itemsquery->select(['Students.id']); $itemsquery->matching('CategoriesStudents'); $itemsquery->contain([ 'CategoriesStudents' =>…
Durgesh
  • 97
  • 3
  • 8
2
votes
0 answers

How to set CSRF Token expiry in cakePHP 3.7?

How can I set the expiry time of CSRF token in cakePHP 3.7 form. When I opened a login form for a long time and then submit. It throws black-hole request error. How can I overcome this issue? [Cake\Controller\Exception\AuthSecurityException] The…
2
votes
0 answers

Baking custom Controller templates in CakePHP 3

Trying to bake my controllers from a custom template. As per the cookbook, I've baked a new plugin, and created the following…
Jonline
  • 1,677
  • 2
  • 22
  • 53
1
vote
1 answer

Call to a member function keys() on null in vendor/cakephp/cakephp/src/ORM/Table.php, line 2625

I have created a new controller to save subscription plans for my website. I am trying to create a new record through the model table but am getting the error: Call to a member function keys() on null in vendor/cakephp/cakephp/src/ORM/Table.php,…
Ari Molzer
  • 11
  • 1
1
vote
1 answer

How to work with temporary tables defined with prepared statements in cakePHP 3.x

I'm working with cakePHP 3.7 I'd like to create a temporary table from a controller, and then use it (with some conditions and joins) to search some data to be displayed. The table structure is for the moment statically defined, i.e. the fields it…
Ruth
  • 546
  • 1
  • 6
  • 12
1
vote
1 answer

Cakephp : intl extension missing

I am trying to install CakePHP 3.8 in my mac ( macos high sierra version 10.13.6), but i had this problem since yesterday tell me that extension intl is missing from your system User-iMac:TEST zakaria$ composer create-project --prefer-dist …
1
vote
1 answer

How to fix 'Param _version does not exist' in cakephp 3 while saving data using elasticsearch?

I want to use elasticsearch with cakephp 3 , there is an article related to this in cakephp cookbook Click Here. But while saving a record through cakephp 3, i am getting "Param _version does not exist" error from…
1
vote
1 answer

CakePHP 3.x - save not work in associate table

I have below table structure. Mandator table class MandatorTable extends Table { public function initialize(array $config) { $this->table('mandators'); $this->belongsToMany('Seminar', [ 'foreignKey' =>…
Durgesh
  • 97
  • 3
  • 8
1
vote
1 answer

Plugin cakephp 3.7

How can I map a plugin into the cakephp 3.7, through a remote folder? after version 3.4 I am no longer able to load a plugin, I looked at the documentation and checked that it had changes already tried using Application :: addplugin (); and…
1
vote
0 answers

Cakephp 3.7, Middleware, Authentication and Routing

I'm using Cakephp 3.7 and authentication middleware. My app is hosted locally at http://192.168.33.10/scoring. I'm using the following middleware method in my Application.php.
jtesta
  • 183
  • 3
  • 15
1
vote
1 answer

CakePHP 3.7: Function name must be a string

I've got a method in UsersController public function addMailbox($data) { $this->LoadModel('Mailbox'); $mailbox = $this->Mailbox->newEntity(); $mailbox->username = $data('username'); …
1
vote
2 answers

CSRF token mismatch in cakephp3.7 tests

tests/TestCase/Controller/FeedbackControllerTest.php:45 public function testAdd() { $this->enableCsrfToken(); $this->enableSecurityToken(); $this->session([ 'Auth' => [ 'User' => [ 'id' => 1, …
Salines
  • 5,674
  • 3
  • 25
  • 50
1
vote
1 answer

saving belongsToMany association with same keys but different _joinData

I have a belongsToMany relationship between two tables which is configured using a through table. class UsersTable extends Table { public function initialize(array $config) { $this->belongsToMany('Groups', [ 'through' =>…
waspinator
  • 6,464
  • 11
  • 52
  • 78
1
vote
1 answer

AdminLTE plugin when rerouted not working for Cakephp 3

I m using AdminLTE in my website. But the problem is i have done routing i.e www.mysite.com/admin is my path for admin and this is where i want to render Admin LTE. So i created a new AppController.php in Admin folder and rendered the AdminLTE in…
Akshay Naik
  • 553
  • 3
  • 17
1
2 3 4 5