cakephp-3.x Questions
4
Solved
I'm using CakePHP 3.3.6 and MySQL 5.7.13.
I have these three tables in my database (amongst others) : collections, tags and the join table collections_tags.
collections Table
CREATE TABLE IF NOT...
Tuberculate asked 18/10, 2016 at 13:59
3
Solved
I want to get the last executed query in CakePHP 3.2, I have used the following in CakePHP 2.x before:-
function getLastQuery() {
Configure::write('debug', 2);
$dbo = $this->getDatasource();...
Margerymarget asked 9/2, 2016 at 11:35
2
We moved our application to a new server and now the session is expiring too soon (not sure about exact hours) for the logged in users. We tried many things to find out why the session is expiring ...
Lander asked 2/3, 2018 at 6:36
3
I have done model association in cake 3.2
Here i have done it for one id of same table .
I have tried to do it for other one ,but its not working at all
below is the flow.
This output i am gett...
Magneto asked 23/6, 2016 at 10:10
3
Solved
In Cakephp3 when the Csrf component is enabled. How I can use it in ajax call.
In this beforeSend parameter of ajax csrf token is set in header. What is the value of csrfToken. As it gives error
...
Kb asked 9/6, 2017 at 9:58
1
Solved
I am using CakePHP 3.6, and when I am using words with german umlauts like:
Text::slug('Grundstücke')
I will get:
Grundstucke (where ü = u)
but that's not correct, I should get:
Grundstu...
Spermine asked 18/5, 2018 at 13:9
1
The Following Code returns only a error :Record not found in table "users"
if($this->Users->get($uid)->isEmpty()) {
//do something
}
Because the Table is empty, i want to customize th...
Mutazilite asked 11/2, 2018 at 11:26
1
A've already rewrite some application from CakePHP 2 to CakePHP 3. I have some structure in database with column: key (autogenerated key-string). In mysql key is a keyword, so when I write an SQL Q...
Trimetrogon asked 5/2, 2018 at 20:39
2
Solved
I have to send url from controller to view with json..It not ok when i use $this->Html->link or $this->Url->build for link. How can i send link to json..
use Cake\View\Helper\UrlHelper; at top
fo...
Subjacent asked 23/2, 2016 at 4:26
3
Solved
How to print ORM query
$query = $articles->find('all')->contain(['Comments']);
For example print =>
SELECT * FROM comments WHERE article_id IN (comments);
Cateyed asked 18/3, 2016 at 8:57
3
Can anyone tell me what is the official way to create CRUD for admin back-end?
In CakePHP 2 the baked code was extended with 'admin_' before the function names and for the view files.
In CakePHP i...
Amalekite asked 31/7, 2016 at 8:58
2
Solved
I have multiple Things in AnotherThing now I am trying to order them in my edit action in my AnotherThing Controller - I can access the Things just fine in my edit, but I want to sort them differen...
Stinkpot asked 5/7, 2016 at 13:12
2
Solved
Using CakePHP 3.4, PHP 7.0.
I'm attempting to do a really simple controller method to output some JSON. It is outputting "Cannot modify headers...".
public function test() {
$this->autoRender...
Keele asked 21/2, 2017 at 21:59
1
Solved
I'm new to CakePHP and have the following problem:
I have the tables "Images", "Keywords" and "KeywordCategories". Every image can have many keywords (many to many) and every keyword has a catego...
Ubangi asked 17/1, 2016 at 14:38
1
Solved
This may seem obvious to some of you, but I really am struggling to find a straight answer. I've generally googled, as well as read both the CakePHP manual and the API for an answer to the followin...
Hydrometeor asked 3/12, 2015 at 0:53
1
Solved
Multiple questions about validation which may belong together, because they are all kind of adressing the new validation concept in CakePHP 3.
I have read the chapters (1, 2, 3) in the cookbook mu...
Ghetto asked 27/6, 2015 at 10:55
1
TLDR: How can I create a URL in the Controller similar to how I can use the HtmlHelper to create URLs in a View?
Problem:
I want to print the url of a controller action, in my controller (becau...
Cancer asked 11/8, 2012 at 14:17
1
© 2022 - 2024 — McMap. All rights reserved.