Questions tagged [cakephp-3.2]

Questions about the 3.2.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.

CakePHP 3.2

CakePHP is a PHP development framework using Associative Data Mapping, Front Controller and MVC design patterns.

Version 3.2.0 was released in January 2016.

Resources

145 questions
0
votes
0 answers

Cakephp rest put method doesn't update in Database

I am attempting to write a RESTful service using CakePHP 3.2 by follow this guide http://book.cakephp.org/3.0/en/development/rest.html every function works just fine except edit() when i tested in Postman using PUT method it has returned "Saved" but…
sheevazz
  • 1
  • 1
0
votes
0 answers

Cakephp 3 Error: Call to a member function identify() on a non-object

I am new to cakephp and started learning cakephp3.2 directly I have created a function in my custom controller as follows. public function login(){ if($this->request->is('post')){ $user = $this->auth->identify(); if($user){ …
Sushil Kawad
  • 25
  • 1
  • 1
  • 8
0
votes
2 answers

$this->request->referer() is not working in cakephp 3.2 from email link

I am doing a cakephp project. I was stuck here. I want to get the previous url in cakephp 3.2,but its not working. Here the link is present in email ,after clicking upon that link i will redirect to login page and after login ,i wnato to redirect to…
sradha
  • 2,216
  • 1
  • 28
  • 48
0
votes
1 answer

Writing a cron job using bluehost, php 5.6 fastcgi, and cakephp 3?

I have tested out the shell script by using putty to connect to my site, but I had to: cd /home/username/bin //which is where my cake console is located Then I could run the command, which was: cake email second_user I could not get this to work…
Battousai
  • 503
  • 7
  • 17
0
votes
0 answers

Authorizer not executing isAuthozed method

I'm using Cakemanager Authorizer, but remarked that Authorizer is not running the isAuthorized() method. My config is as follow : $this->loadComponent('Auth', [ 'authenticate' => [ 'Form' => [ 'fields' =>…
sk001
  • 561
  • 6
  • 27
0
votes
1 answer

CakePHP 3: How to update foreignKey?

I use BlueImp jQuery plugin to upload multiple images in follow scenario: User open add or edit Albums page, select images and procces upload via ajax method. This work fine, image data (name, size, model, field,..) are stored in related images…
Salines
  • 5,674
  • 3
  • 25
  • 50
0
votes
0 answers

How to get only first row of association table in cakephp 3.2

I am new to cakephp 3.2. i want to get only first row (or only one row instead of all row) of association table in cakephp . I have used below query to get it ,but not getting the exact result what i need.(its only working for first row ,after it…
sradha
  • 2,216
  • 1
  • 28
  • 48
0
votes
1 answer

QueryBuilder limit is working for only first row in cakephp 3.2

Hii i am new to cakephp 3.2 v. Here i have used model association (hasMany). Here in bind section (campaign_videos) ,i want to fetch only one record , so for this ,i have put below code to manage it. my actual data in db. [ { "id": 1, …
sradha
  • 2,216
  • 1
  • 28
  • 48
0
votes
1 answer

How to rollback cakePHP 3.2 to 3.0

I did my project in cakePHP 3.0. By updating the composer my project converted into cakePHP 3.2. I want to rollback from 3.2 to 3.0. I tried rollback options too,that is also not working. How to rollback 3.2 to 3.0 ?
user6028593
0
votes
2 answers

Query builder fetch data in cakephp 3.2

I am using this below code to sum up all my wallet balance . $query = $this->Wallets->find(); $query->select([ 'count' => $query->func()->count('id'), 'total_price' => $query->func()->sum('amount') ]) ->where(['status' => 4, 'user_id' =>…
sradha
  • 2,216
  • 1
  • 28
  • 48
0
votes
2 answers

Managing multiple datasources in CakePHP

I'm planning to develop a web application in CakePHP that shows information in graphics and cards. I chose CakePHP because the information that we need to show is very structured, so the model approach makes easier to manage data; also I have some…
0
votes
0 answers

Cakephp loading Plugins installed with composer

I installed friendsofcake/crud plugin with composer require friendsofcake/crud. composer installed it in vendor directory called friendsofcake. Now i want to load the plugin into my app.doing something like this does work cake plugin load…
0
votes
1 answer

Cakephp 3 saving array of data

Is there a function like it was in cakephp 2 saveAll that saves array of data? I want to save the data just once not every time inside a foreach loop. foreach($rezults as $rezult) { $data=$this->Products->newEntity(); $data['id'] =…
Nodos
  • 85
  • 1
  • 10
0
votes
1 answer

How to give empty conditions in controller of cakephp 3.2 during model bind?

I am new to cakephp 3. Below is my code. $getFlags = $this->Posts->find('all')->contain(['Users', 'Flags.Users', 'Flags.FlagReasons', 'Flags.Users.Schools']); output { "id": 114, "title": "", "allow_comment": 0, …
sradha
  • 2,216
  • 1
  • 28
  • 48
0
votes
1 answer

CakePHP v3.2.2 can i set up with php version 5.3

I write project with cakephp 3.2 and I don't notice about PHP version while developing on localhost. When I upload hosting and I got blank page. When i googling it. It cause of php version not compitable and cakephp 3 minimum require is php version…
Ye Htun Z
  • 2,079
  • 4
  • 20
  • 31