Questions tagged [cakephp-3.x]

Questions about 3.x branch of the CakePHP MVC framework. Use this tag in combination with the general [cakephp] tag. If your question applies to CakePHP more generally, use only the [cakephp] tag.

963 questions
-1
votes
1 answer

CakePHP validateUnique not found

Created a UsersTable.php file by baking from my database. I have the user name working as an email address just fine. But then I wanted to ensure that new users weren't trying to create an account with an existing email address. I found this…
Randy Hall
  • 7,716
  • 16
  • 73
  • 151
-1
votes
1 answer

How to create library for the plugin in cakephp 3.X

How to create library for the plugin in cakephp3.x and also what is folder structure for this.
Raju1990
  • 26
  • 8
-1
votes
2 answers

object to json_encode return false in linux server cakephp 3

I'm facing a horrible problem in Linux server. I don't understand what to do now. My problem is that in Linux server my script runs properly without any error but when I use an object to JSON encode it returns false. Please any one help. Thanks in…
user6526649
-1
votes
1 answer

How to add a class to a postLink form - CakePHP 3.4

Is it possible to add a class to the hidden form created by CakePHP's postLink form helper? Here's my code Form->postLink( ' ' . __('Delete'), ['action' => 'delete', $this->fetch('item')], ['confirm' => __('Are you sure…
Arnold
  • 69
  • 2
  • 10
-1
votes
1 answer

how can i use bootstrap-UI to set select & radio box values

hello i'm a biginner in cakephp3 and i wanna use bootstrap-UI to set my select and radio box values like cakephp formhelper. Form->select( 'field', ['Low (7%)', 'middle(15%)', 'Quality…
-1
votes
1 answer

Unable to parse JSON data: JSON_ERROR_SYNTAX

On a newly installed server running CakePHP 3.2.14, a call to debug($myEntity) displays the following error after displaying the entity without any visible problem: An Internal Error Has Occurred Error: Error executing command: Unable to parse JSON…
fralbo
  • 2,534
  • 4
  • 41
  • 73
-1
votes
1 answer

Fatal error: You must enable the intl extension to use CakePHP, but I can't access php.ini

I installed cakephp 3.x and made code out of it and it's working on my localhost.. But after I deploy my code to web hosting, i got error Fatal error: You must enable the intl extension to use CakePHP. in…
-1
votes
2 answers

CakePHP 3.x: log as serialized array

I'm writing my own parser log for CakePHP. I only need one thing: that is not written a log "message" (as a string), but a serialized array with various log information (date, type, line, stack traces, etc.). But I don't understand what method/class…
Mirko Pagliai
  • 1,220
  • 1
  • 19
  • 36
-1
votes
1 answer

CakePHP 3.0 : How to make multiple MySQL OR Condition in Query builder

I'm using cakePHP 3.0 for REST API. This is MySQL Query. SELECT group_chat.message_parents FROM group_chat WHERE group_chat.sender_groups = 1 AND group_chat.`status` = 1 AND group_chat.is_blocked = 0 OR group_chat.recever_groups = 1 AND…
-2
votes
1 answer

What kind of Changes need to do in code to upgrade from CakePHP 3 to CakePHP 4?

How Can I update the project from CakePHP 3 to CakePHP 4? I have tried with install latest package of CakePHP 3.8 and convert to Cakephp 4 as per upgrade guide of CakePHP 4 It is not update properly, It display error as below Missing…
Vivek Solanki
  • 136
  • 1
  • 13
-2
votes
1 answer

Retrieving image (Resource id #245) instead of base64

I am developing a website using Cakephp and I am uploading an image in the database as a BLOB. Now when I am retrieving the BLOB data from my Cakephp code I am receiving a text "Resource id #245". How can I convert this into base64? Displaying…
-2
votes
1 answer

CakePHP 3: How to populate sum of a column from other table

Please Help to build a query using CAKEPHP 3.X though i am using cakephp 3.8 now. I have a table Like: And Another Table such as: They are not associated each other. I am not getting any idea of developing below results in CAKEPHP 3. SQL QUERY…
Bayezid Alam
  • 270
  • 5
  • 17
-2
votes
1 answer

Database Error PDOException

I created my database tables and bake as usual with CakePHP 3 but when I point my browser to some link it give me this errors: Error: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual…
mopo
  • 1
  • 2
  • 6
-2
votes
1 answer

Is there anyway to sort data after union two queries?

$query = $queryOne->unionAll($queryTwo)->order(['Headers.id' => 'desc']); this is not working.
Akatuki
  • 3
  • 1
-2
votes
1 answer

cakephp - How to authorize assets?

In a CakePHP3 application that requires Authentication/Authorization, I have the possibility of images being uploaded. Now I would like to avoid Users being able to see other users images by e.g. guessing image names or such. Also I would like to…
Tolga
  • 262
  • 5
  • 16
1 2 3
64
65