Questions tagged as 'cakephp-2'

1
answer

App: Uses does not work on the server

I created a class in the Lib folder of cakephp with some functions. Testing locally, and adding in controller App::uses('readMessages', 'Utility'); Everything works correctly, but when I upload to the actual server, it says it can no...
asked by 04.04.2014 / 16:32
1
answer

SCRIPT to Convert and Save Addresses

Developed in a REST API with CakePHP a script to convert a $lat and $lng coordinate into formatted addresses. The script checks if the coordinate is saved in the database, if it does not google search and already saved in the database....
asked by 23.10.2017 / 19:29
1
answer

Bake can not find the model and controller files

I am using cakephp version 2.9, to facilitate I decided to leave all applications with a single core. Until then everything ok, but when using the bake to be faster it does not find the files (model, controller) in the folder of the app that I a...
asked by 09.03.2017 / 20:00
1
answer

Create link with cakephp inside jquery?

How to create a link using the CakePHP conventions inside JQuery? I'm trying like this but I still can not get it to work. $(document).ready(function() { $('#dataTables-example').DataTable({ "processing": true, "serverSi...
asked by 11.10.2015 / 15:43
1
answer

Mounting an Array CAKEPHP

Well, I need some help to set up an array of bad here. I got a ready calendar (bootstrap calendar) and am trying to implement it on my site with Cakephp. All right with the layout but at the time of searching the information in the database he e...
asked by 23.09.2015 / 18:35
1
answer

How to insert a node of type CDATA in xml generated by Cake PHP

With the code below I correctly generate XML in CakePHP , but I need some nodes to have another node of type CDATA. Example: <![CDATA[ Buscape Teste ]]> But I do not know what parameter I have to get it to do it....
asked by 19.08.2015 / 21:49
1
answer

Creating / Viewing Report in HTML

I have a problem and I could not think of a solution ... People who have already used iReport know that it has to be grouped very easily in it ... The problem is that I am now doing HTML reports (on the nail rs), and wanted to group by branch (a...
asked by 15.09.2015 / 12:55
1
answer

Session from Config

I have the following case: I want to send an email from cakephp, but since there is more than one user in the database (each containing a different email), I need to send each user's email and password to the / app file /Config/email.php, that i...
asked by 06.04.2015 / 19:58
1
answer

How to insert an audio / mp3 using Cakephp?

I'm trying to view this: <?php echo $this->Html->media('musica.mp3'); ?> but nothing appears     
asked by 20.02.2015 / 02:57
1
answer

How to customize error pages in cakePHP?

How to create custom error pages in cakePHP?     
asked by 10.12.2014 / 20:54