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
2
votes
1 answer

Missing Controller when using a prefix admin in CakePHP 3.2

I have an issue with the admin part of my website using CakePHP 3.2. This part works really well on wamp in local but when I moved the site to the apache server, it stopped working. I have this error message : Missing Controller…
2
votes
0 answers

csv file export in cakephp 3.2

I have completed all the steps to generate the csv file in cakephp 3.2.Here i have generated the vendor using composer.phar ,and in vendor i got the csv plugin (friendsofcake) ,also i managed from controller to fetch data from database ,that one…
sradha
  • 2,216
  • 1
  • 28
  • 48
2
votes
3 answers

empty() not working in cakephp

I have products table and want to select all products. This is what I have done $products = $this->Products->find('all', [ 'conditions' => [ 'status' => 1 ] ]); $this->set('products', $products); and print products if fetched and No…
Gaurav
  • 131
  • 12
2
votes
0 answers

multi level association and filter in cakephp

I'm new to stackoverflow and this is my first question. Please pardon me for any errors in question. I'm working in CakePHP 3.2 I have categories, products, seller_products table and their association is like…
Gaurav
  • 131
  • 12
2
votes
2 answers

How to create custom validation for Modelless Forms in cakephp3

I want to create a custom validation for my fields. The Form has been extended from cakephp Form class (Modelless Forms). Note: Bear in mind this is Modelless Forms so there is no table or database. The problem is when I create the validation it…
Fury
  • 4,643
  • 5
  • 50
  • 80
2
votes
1 answer

Full URLs in emails in CakePHP unittest

I would like to get full URLs inside emails that get triggered by my tests in CakePHP 3.2. I tried with the full-options for $this->Html->image('image.jpg', ['fullBase' => true]) and $this->Url->build('/', true) but they don't seem to work in…
lorem monkey
  • 3,942
  • 3
  • 35
  • 49
2
votes
3 answers

how to access parameters from url in cakephp 3

In cook book of cakephp 3. It is given to build url using echo $this->Url->build([ "controller" => "Posts", "action" => "view", "foo" => "bar" ]); which will output as /posts/view/foo:bar How to access the foo:bar in action and save in…
Anuj TBE
  • 9,198
  • 27
  • 136
  • 285
2
votes
1 answer

CakePHP 3.2 default redirect to the controllers' main pages

How can I specify the default pages (one page for every controller) in CakePHP 3.2 so that the cake will automatically redirect user to the page: www.mypage/controller_name/action_name if the user set in his browser the following…
Annabelle
  • 734
  • 9
  • 23
2
votes
1 answer

How to unitTest CakePHP 3.x Controller Actions that require HTTP Basic Authentication?

I'am trying to authenticate a user by adding the PHP_AUTH_USER and PHP_AUTH_PW to the $_ENV-Variable, but this has no affect. I'am using the following configuration with memory-Storage: $this->loadComponent('Auth', [ 'authenticate' => [ …
2
votes
2 answers

CakePHP 3.x Custom Validation Field Required

As I'm building form elements dynamically I want to be able to check and see if a form field is required or not via a custom validation rule. The problem is that when I add a custom validation rule, it forces the field to not be empty. If I allow…
wilsmex
  • 143
  • 10
2
votes
1 answer

unable to make bake work with cakePhp 3.2

I'm trying to create new local project with cakephp 3.2, following the cakephp doc, on wamp local server. I used composer to install it. Everythings seems ok after installation : I configure my db access on app.php and the cakephp default homepage…
2
votes
2 answers

How to find entities with common parent using matching() in CakePHP?

I need to find all articles having the same author as a given list of articles Here is my custom finder method: public function findSimilar(Query $query, array $options) { if (empty($options['idList'])) { throw new…
Benjamin Tamasi
  • 662
  • 7
  • 18
2
votes
3 answers

Cakephp 3.2 change default date format

I try to set the default date format of CakePHP 3.2 from dd.mm.YYYY to YYYY-mm-dd, so I will not have to use $MyDatas->mydate->format('Y-m-d'), and what is more important in forms while editing data I will have date in format dd.mm.YYYY (ex-…
MasterAbe
  • 23
  • 1
  • 1
  • 3
1
vote
1 answer

CakePHP 3 Date format Issue

I researched everywhere but could not find the solution, In the database, I am using from_date field as date(2018-07-07) type But when I find the data then it auto converts in from_date to 'Cake\I18n\Date Object' [from_date] => Cake\I18n\Date…
Akshay Sharma
  • 1,042
  • 1
  • 8
  • 21
1
vote
1 answer

sending bulk email using cakePHP

I'm trying to send an email to more then 2000 email ids at a time but It's throwing 502 Bad Gateway error. If I send an email to within 600 mails it's working fine but it's taking 10 minutes time to send to all. please help me if anyone has know…
Ashok
  • 184
  • 2
  • 14
1
2
3
9 10