-
I want to check the value of a field in the Model beforedelete.The beforedelete function has the record id accessed by $this->id but can I access another field?I have a field called "state" and if ......
-
I'm adapting an existing application to support several languages and I'd like to implement pseudolocalization, i.e. make localized strings:<?php echo h(__('Edit program settings')); ?>... ......
-
I have a table name admin_users, I am trying to use auth component here. So I have written in appcontroller bellow code public $components = array('Session','RequestHandler','Paginator'=>array('......
-
In my database table I have a quantity field.I am trying to add new quantities which will add with previous.I have tried by this code in controller$this->request->data['StoreProduct']['......
-
I am trying to get HTML from view in CakePHP and want to use it in controller to generate PDF, but when I send HTML in variable I get an error, but it's working for texts. I am calling function like ......
-
Here ajax search working fine but the problem is same data is showing two times, because I have given pagination limit 2.If I make it 3, same result is showing 3 times.Here is my index.ctp $( "#......
-
I have models: A [id, value], B [id, value] and X [id, a_id].I want to find on X contain A and contain B where B.value = A.value, both A and B value fields are unique, so there is only one row ......
-
When I use cakephp FormHelper like thisecho $this->Form->radio('searchDateType',array('0'=>'test0','1'=>'test1'),array( 'separator'=>' ','......
-
I have two actions which are like pages in my controller. I two buttons: next and previous too. How can I save my $this->request->data between two action in the same controller ? When i'm ......
-
I am trying to convert this mysql query into cakephp, but it's not working.Here is my mysql query SELECT r.id, p.name, r.paid, p.created FROM patients p INNER JOIN reports r ON p.id =......
-
I want to mail verify key field value on mail when customer used forgot password option. My query is working perfect. when i debug in view i am able to see filed value but in controller i am not able ......
-
I have 2 tables one of images that belong to several different tables and in the other table the reference for id_imagen with the id of the table images.Table Documentos: id | id_imagen | titulo |......
-
In our Cakephp3 application, the user is inputting some text with apostrophe's and it should be backslashed or using mysql_real_escape_string() we should be handled to override the errors throwing in ......
-
I have implemented https://github.com/ADmad/cakephp-jwt-auth in my CakePHP application. My problem is whenever there is an unauthorized request it responds with HTML. <html> <head&......
-
I am using CakePHP 3.4+I have written an application with multi level membership.The Pro members will have benefit to view short url for external links which when shared will record the visit ......