Questions tagged as 'cakephp'

1
answer

Children / Parent cakephp

In the code below, I have a Select , which returns all my accommodations that are parent_id null , which in this case would be all the PAI accomodations. But when it comes back, I need you to show the accommodation PAI and your...
asked by 15.04.2015 / 17:31
1
answer

CakePHP 3 - Vendors

How do I import a vendor into cakephp3? I tried it like this: require_once(APP . 'Vendor' . DS . 'Dailymotion' . DS . 'Dailymotion.php'); but it returns me the error: Fatal error: require_once() [function.require]: Failed opening requ...
asked by 16.05.2015 / 07:21
1
answer

How do I keep an item in a static controller part of the page?

It is the following, I have a project page that serves as the default for all the others, a Layout .. But I wanted to add an item (informative) to it, and it only stays on the homepage and CRUD of the informations, when goes to other pages that...
asked by 09.01.2015 / 18:35
1
answer

Is there a way to "summarize" the otherif's?

In my CakePHP project, there are two dropdown fields for doing a search in the database, both as string's. I need to add two more fields (both dates). In the code below (controller), I used 4 if's to do field verification, when I add the date fi...
asked by 09.01.2015 / 16:55
1
answer

Disregard HTTP authentication for a particular URL

I have an application developed in CakePHP 2 , but I believe that the issue does not have as much involvement with the framework itself, just citing to contextualize. As this private application, basically a webservice for accessing data w...
asked by 03.12.2014 / 15:51
1
answer

Error: Shell class SyncAccessTokenShell could not be found

My application is cake 2.4.4, is hosted on Amazon. Before the server was apache, but now we migrate to nginx for better performance. As already expected several problems occurred (normal), one more of them that is giving me a certain headache is...
asked by 23.10.2014 / 18:00
1
answer

CakePHP relationship HABTM

I have a question regarding the CakePHP Framework . It is as follows: Suppose we have a hasAndBelongsToMany (HABTM) relationship between a Model Pessoas and Projetos , with tables with the same name. The join table is pe...
asked by 17.07.2014 / 19:07
1
answer

How to check if an INSERT or UPDATE was in the CakePHP save method?

Hello, I have a script that I get an ID for a POST notification along with other data. It turns out that the ID is from a transaction created on another system (IDs are not generated by auto_increment). An example data I get would be: {'id'...
asked by 02.06.2014 / 22:39
1
answer

SUBSTRING_INDEX with REGEX

How can I do a search for the last name of a people but with a regular expression? Today I use SUBSTRING_INDEX to get the last name , but I want to get parts of this last name when I search by name or fragments of people I am using...
asked by 11.04.2014 / 16:44
1
answer

CakePHP: Why is not the Model loading correctly?

Model: CategoriaBanner Controller: CategoriasBannersController One thing is making me sleepy: When trying to use create(); it gives an object error when trying to use what would be the corresponding Model: $this->CategoriaBanner-&g...
asked by 07.06.2014 / 16:10