For questions about the 3.8.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.
Questions tagged [cakephp-3.8]
33 questions
2
votes
1 answer
Cakephp 3 Authentication plugin, login URL did not match
I want to use the Authentication plugin for CakePHP 3.8 and I'm having problems that are not in documentation.
After follow Getting Started (https://book.cakephp.org/authentication/1/en/index.html) I have one question.
Originally $fields were…

Marco C
- 111
- 1
- 13
1
vote
1 answer
Router::redirect() deprecated
Router::redirect() is deprecated. Use Router::scope() and RouteBuilder::redirect() instead.
The message gives some lead, but did not find direct answer in docs.
Direct switching to RouteBuilder::redirect() instead not possible as it is not static…

Nedvajz
- 891
- 8
- 13
1
vote
1 answer
cakephp 3.8.13 handle unauthorized request, response in JSON
I have implemented https://github.com/ADmad/cakephp-jwt-auth in my CakePHP application. My problem is whenever there is an unauthorized request it responds with HTML.
…

e.k
- 1,333
- 1
- 17
- 36
1
vote
1 answer
How to replace the sanitize class in cakephp 3?
currently, I'm working on cakephp upgrade from 2.10 to 3.8, I noticed that the classe Sanitize has been removed. Does anyone know how to replace it ?
I have this following function :
public function view( $page )
{
$page =…

Ares
- 41
- 5
1
vote
0 answers
Cannot get CakePHP 3.8 multiple file upload to work
I'm working on this project and at first it has a single file upload that works perfectly fine, but had to change to multiple file upload and now I just can't make it work!
Getting an "Headers aready sent" error:
Deprecated (16384): Accessing `here`…

Fernando Garcia
- 31
- 3
1
vote
1 answer
Filter on date from datetime in query builder (CakePHP 3)
I have a datetime field in my model. In a query I want to select all rows created on a specific day/date (the time doesn't matter). What is the simplest way of doing that in CakePHP 3.8 ?

randomUserName
- 17
- 1
- 5
1
vote
2 answers
jQuery ajax call can't read json encoded data from CakePHP 3.8 (gets an empty array)
I have a weird problem with reading json encoded data returned by my CakePHP3 API in response to an ajax call from jQuery. I have already read over 20 posts on stackoverflow and elsewhere and the usual problems people encountered where due to wrong…

djevulen
- 112
- 1
- 8
1
vote
1 answer
multiple insertion in cakephp 3.8
I should make a multiple listing. where two fields have the same values in common. For example, if I enter Inter, Milan, Juve they will have nationality_season and series_season as common fields. Furthermore, the user should decide on the number of…

Gianmarco Gagliardi
- 432
- 4
- 17
1
vote
0 answers
How to allow to unauthenticated users see some specific pages or actions pages in Cake PHP 3?
With CakePHP 3 we used Auth component and this worked like this CakePHP - How to allow unauthenticated access to specific pages
Now I'm trying to use the new Authentication and Authorization plugins instead (I don't know if it is the best…

Marco C
- 111
- 1
- 13
0
votes
1 answer
Import files in Cake Php 3.8
I am just trying to include a file in CakePhp but nothing helps me. I have placed that file inside the vendor folder.
Here's the path of that file:
vendor/paytm/PaytmChecksum.php
I tried to import it in my controller like below:
require_once(ROOT …

Rajat
- 486
- 1
- 10
- 35
0
votes
1 answer
Cannot instantiate abstract class Cake\Mailer\Mailer
I want to build forgot password page in cakephp
Here is my code of user controller

Pawan Vats
- 1
- 2
0
votes
1 answer
How to validate required association presence in CakePHP?
I have a working belongsToMany association between my Proyectos and my Medios models. If I add a new Proyecto entity, I can select from among the registered Medios, and everything is adequately saved. The thing is the entity is correctly saved…

Damian Fraustro
- 51
- 8