Questions tagged as 'cakephp-3'

2
answers

CakePHP - Relation 1 ~ n

Good evening, I'm having difficulty in CakePHP 3 and the problem is this:    Can not insert row, some of the primary key values are missing. Got (,), expecting (idstorie, users_iduser) The system should add a "Storie" to the DB, in that...
asked by 30.06.2016 / 04:11
1
answer

Return records from a table whose key is referenced in another CakePHP 3

I'm using the ORP native CakePHP 3 to retrieve the records of the product table (through the ID) along with the records that reference it with the following method: / p> public function view($id) { if($this->request->is('get'))...
asked by 06.08.2015 / 15:04
1
answer

Suppress WHERE clause if passed Zero or Nothing CakePHP 3.0

I'm working with CakePHP 3.0 and I've created a query for its ORM , this query is working perfectly however I now need that if a certain parameter is 0 or nothing is passed to the method the class where is suppress...
asked by 30.07.2015 / 15:33
1
answer

How to start in CakePHP3.x [closed]

I'm starting agr with cakephp , I followed the bookmarker tutorial, but is there any simple didactic material explaining the concepts that are used in cake? I see youtuber using the AuthComponent , but they do not tell you what it's for, what...
asked by 05.12.2018 / 20:26
0
answers

Is there any way to run a seed only once? [closed]

I use the CakePhp 3 framework, I was researching on migrations and seeds and did some testing, the migrations they run only once per sphinx log table, however if I seed it and call it xSeed, and run this seed on the command line, then create a y...
asked by 02.03.2018 / 02:20
0
answers

Deploy CakePHP3 in DirectAdmin

What is the structure for deploying a cakephp 3.x project on a Directadmin server? I followed the instructions in the .htaccess rewrite documentation but it did not work. link In principle, their structure looks like this: / .php...
asked by 09.11.2017 / 01:34
1
answer

How to sort by results more similar to the last parameter?

I have a table in my system that saves all airports and in a select autocomplete I have this list where I can search. The problem is that I can search for " nome ", " cidade ", " país " and " IATA " and requir...
asked by 03.10.2017 / 20:19
0
answers

"Missing Template" when trying to use JSONView in CakePHP 3

I'm trying to create a JSONView response for my application. I followed the steps described in link , but I still get the error < strong> Missing Template , follow the code below: In the routes.php file: $routes->setExtensions(['json'...
asked by 13.09.2017 / 16:51
0
answers

Unknown server error after updating cake vendor folder [closed]

When updating the files from my vendor folder on the server I had the following errors:    Fatal error: Call to undefined method   Cake \ View \ Widget \ SelectBoxWidget :: outputError () in   /var/www/vhosts/domain/em>.com.br/vendor/cakephp/...
asked by 05.07.2017 / 19:32
0
answers

How to break the caption line in Google Charts

At Image 1 (below), shows a template of how I want the caption to stay. Inthe Image 2 (below), it shows how it is coming out (in this case, no line break). QuestionHowdoIbreakcaptionlinein Google Charts Code used in First Image : NO...
asked by 22.05.2017 / 21:57