Questions tagged as 'cakephp'

0
answers

A query to sum the values and select all fields according to the "where" and "or" clause with the like operator

In cakephp, I want to make a query that takes all the values according to the parameter passed to the expense field or to the field data_expenditure, in addition to summing the values of the field_expenditure value. It would look something like...
asked by 23.10.2015 / 03:25
1
answer

fpdf with cakephp

I am using the library in fpdp's cakephp, I created a private method in my controller by putting together a basic pdf and then I called this method in an action but it does not generate the pdf .. private method: private function montaPDF()...
asked by 24.08.2015 / 15:33
1
answer

problems with fpdf in cakephp

When I create a new PDF class extending it to FPDF to rewrite the Header, Footer, etc methods ... I get this following error, I already researched but could not solve .. This is my private method in the controller: link and the error...
asked by 24.08.2015 / 17:36
0
answers

Router Failure in CakePHP

I'm updating a site that was Cake Php and I'm having Rota problem. In app\config\routes.ctp are the rules below and it works: Router::connect( '/curia/anuario', array( 'controller' => 'pages', 'action' => 'anuario' )...
asked by 29.07.2015 / 21:38
1
answer

Error generating PDF with mPDF

I created this script to generate a PDF invoice, but when I try to generate the PDF, the message appears:    This PDF document may not be displayed correctly. <?php $meses = array( '01' => 'Janeiro', '02' => 'Fevereiro',...
asked by 01.07.2015 / 17:55
0
answers

Using VirtualFields in variable cakephp

I created a virtual field , but I do not have much concept about it, until today I only used it to make pagination, how do I use the result of this virtual in a variable? public $virtualFields = array( 'js_dt_inicio' => '(CASE WHEN inic...
asked by 07.08.2015 / 15:40
0
answers

Update information without updating page with CakePHP 3

How do I update some information without updating the page, I'm working with CakePHP 3. Ex: I have 2 lists, one with all items and one with the favorite items. In the first list I have the option to favor each item (except this information in th...
asked by 16.05.2015 / 03:17
1
answer

CakePHP 3 - Problem of relationship between models

My problem is basically the following: I have related 2 models following the official documentation of CakePHP 3 and I can not return the values of one of them in the view (now Template in Cake 3). The Code: Work - Entity namespace...
asked by 15.05.2015 / 01:15
0
answers

Mod_Rewrite in CakePHP

I need to change all of a site's URLs, right away. The current URL is in the following structure: www.mydomain.com/site/ And I would like the site folder to be removed from all internal urls, without having to tinker with the file structu...
asked by 20.04.2015 / 15:23
0
answers

Parameter as array (cakephp)

I'm passing this an array containing data from a form, to a function, but in php it accuses this error. Can not use string offset as an array. public function add($galeria_id) { if ($this->request->is('post')) { foreach ($t...
asked by 20.04.2015 / 14:18