Questions tagged as 'cakephp'

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

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

Insert into a different model table in CakePHP 2.x

I'm making a site with a buddy cart, with CakePHP 2.x . I created a statistics table, I made the model of it all right but I'll insert it into it, only when I go into the detail of some product. When I enter the product detail I want...
asked by 08.08.2015 / 21:25
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

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
2
answers

Send emails with HTML / CSS embedded CakePhp

Good afternoon! I'm trying to do something "simple", I need to send a stylized email, I do not want to just send text, I need to insert html and css tags. Before working with cakePHP I used PHPmailler , where I could send emails with...
asked by 25.05.2015 / 22:26
1
answer

For + count in CakePHP

I'm trying to make my for rotate according to how many images are 'entered' in SELECT. The problem is that regardless of how many images are 'inputted', it only saves the first one. What is wrong with this logic? private function criarf...
asked by 20.04.2015 / 21:45
2
answers

Creating link from one site to another in cakephp

I'm having a problem, I'm creating a button, which is in a site X, but the controller a action of the link is in site Y. My problem is that when I click the button, it references the controller to action right , but the site base continues from...
asked by 23.04.2015 / 21:33
1
answer

Condition within foreach before saving template

In my% s of CakePHP a Controller was made by passing all the data of a form to a variable. Now, how do I make a specific% wc, what would your goal be if the foreach is passing is empty, move on to the next? foreach ($this-&g...
asked by 16.04.2015 / 20:09
1
answer

Input listing query result cakephp

Hello, I am trying to list a result of a query from my controller in an input, but it is returning zero, but when I give print_r , it returns the whole array, what's wrong? Controller: public function add() { if ($this->request-...
asked by 17.04.2015 / 19:45