Questions tagged as 'cakephp'

0
answers

Disable SecurityComponent - CakePHP + Croogo

I'm developing a plugin for Croogo, and I need to create just one more text field, at the nodes. The field appears in the Nodes tabs and is ok, but my problem is when I am saving the data, a security error message appears:    Security Erro...
asked by 30.01.2015 / 14:10
1
answer

Access method using dash (-) in URL CakePHP 3

I have a signature method: public function mostPopular() I'm trying to access it via URL as follows: products/most-popular however I'm being directed to an Error page:    The most popular action is not defined in Products...
asked by 31.07.2015 / 23:29
0
answers

Error creating and downloading XLS with CakePHP [closed]

I have the following code: $this->autoRender = false; $this->autoLayout = false; $turmaId = base64_decode($turmaId); $turma = $this->Turma->find('first',array( 'conditions'=>array( 'Turma.id'=...
asked by 26.01.2015 / 14:40
2
answers

How to access variable from another controller - CakePHP

How do I access variables of another controller ? For example: I have controller X , and in action index , I create a variable (or a constant). From controller Y , I want to access the value of the variable (or cons...
asked by 10.02.2014 / 21:46
1
answer

PHPUnit is not recognized by CakePHP

Now with the discontinuation of PHPUnit support by Pear , I started to face a major problem in making CakePHP recognize PHPUnit ... PHPUnit is already installed on my computer (Linux Mint), I can use it for the console without problems but a...
asked by 02.03.2015 / 19:33
0
answers

Cakephp pagination

In my controller I set the limit to 7, but when it does paging, the first page comes with 3, 4, 1, and goes varied. public $paginate = array( 'limit' => 7, ); This is what I do in my controller, do I have to do something else?...
asked by 18.11.2015 / 19:52
2
answers

How to configure cronjobs in cakephp?

How do I use cronjobs in CakePHP, I need to call an action from a controller on linux server, is it the script path? I've tried it here and it did not work!     
asked by 29.05.2014 / 23:09
2
answers

Date formatting is changing its parameters

I'm using callback beforeSave to format the date from d/m/Y to Y-m-d . Date is being saved as Y-d-m instead of Y-m-d . Syntactically the code is right. The date is in the table as date. beforeSaveData funct...
asked by 20.01.2016 / 14:31
2
answers

How to ignore accent in a database search?

I need to search for cities. In the database is registered for example, São Paulo , Viamão , Curitiba , but if the user tries to search the city of São Paulo for example, typing Sao Paulo (without accent), nothing...
asked by 16.02.2017 / 18:53
2
answers

CakePHP: Pagination with manual query

The CakePHP manual suggests a change in the default paging for cases of custom queries and in some cases my project has worked perfectly. But I have a situation where I have several custom queries and I need to do the pagination in all of them...
asked by 24.06.2015 / 21:21