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...
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()...
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...
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' )...
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',...
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...
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...
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...
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...
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...