cakephp-3.0 Questions

2

Solved

I'm using CakePHP v3.x and I'm trying to figure out how to insert some records via the migrations tool. The documentation only lists methods for modifying the schema. Will I need to insert records ...
Lead asked 8/6, 2015 at 15:13

7

Solved

I'm getting this error when I upload my application to linux. This is working fine on my local windows system but gives me error on linux server. When I search regarding this then I found this is s...
Unending asked 22/7, 2015 at 5:32

4

I made a project in cakephp 3.0 which I want to put on a shared hosting server. Cakephp documentation have given the solution for the previous versions here http://book.cakephp.org/2.0/en/install...
Aerograph asked 1/4, 2015 at 21:30

7

Solved

CakePHP 3: I have a database field which is a DATE (not DATETIME nor TIMESTAMP) When I display echo $contact->date; It will show something like 2014. 01. 06. 0:00. How to hide hours and minu...
Theurer asked 25/10, 2014 at 9:59

18

Using the CakePHP docs, I am trying to install 3.0-beta2 using composer but I got this error: cakephp/cakephp 3.0.x-dev requires ext-intl * -> the requested PHP extension intl is missing from...
Daly asked 9/10, 2014 at 18:13

2

I have a CakePHP 3 find() call that I've been trying to optimise for a while. I have narrowed it down to these two snippets with the only difference being the contain parameter removed. Timings wer...
Ballast asked 11/6, 2018 at 12:6

2

Solved

I'm just downloaded the files from this link, extracted and tried execute but I had this error: Fatal error: Class 'Locale' not found in D:\xampp\htdocs\cake-3-beta-2\vendor\cakephp\cakephp\src\I1...
Dodecasyllable asked 2/10, 2014 at 2:53

6

Solved

In some part of my app I need to update only the field is_active of some table with a lot of fields. What is the best approach to update only this field and avoid the validations and requiriments o...
Bouldin asked 13/5, 2015 at 14:53

4

I am using CakePHP 3 and MAMP Pro server for my project. When I am trying to bake the cake, this error shows up: Fatal error: You must enable the intl extension to use CakePHP. I have even inc...
Dyscrasia asked 9/8, 2017 at 16:41

4

Solved

The Code Say I have two models, named Product and Image, which are linked by Product hasMany Image and Image belongsTo Product. Now, say I want to fetch all products with the first image each. I wo...
Vierra asked 21/4, 2015 at 14:53

3

Solved

I have table call users , like id name amount created 1 a 100 6-16-2016 2 b 200 5-16-2016 I need max amount full row, I have tried below code but getting syntax error. $user = $this->Users...
Infamous asked 16/6, 2016 at 4:51

3

Solved

I have two field "password" (This field is in the database) and confirm_password (This field is not in the database) Well, I need to compare if password == confirm_password.. but I'm not knowing ...
Milka asked 9/2, 2015 at 2:22

3

Solved

I would like to place some of my controller classes in a subfolder (src/Controller/Admin/). Does anyone know how this can be made in CakePhp3?
Have asked 15/3, 2015 at 7:10

1

Solved

I'm rendering a view template into a variable via a new, standalone ViewBuilder. $builder = new \Cake\View\ViewBuilder(); $builder->setLayout('my_layout'); $builder->setTemplate('my_template'...
Cuckoo asked 8/4, 2021 at 16:10

2

Solved

I want to render the view to a variable without directly sending it to the browser. I used to do it with cakephp2.*. But, I cannot figure out how to do it in CakePHP3. Could you please tell me how ...
Destructionist asked 6/11, 2016 at 0:4

3

Solved

I need to have a virtual property in my user entity. I followed the CakePHP book. UserEntity.php namespace App\Model\Entity; use Cake\ORM\Entity; class User extends Entity { protected $_vir...
Pugging asked 15/7, 2015 at 17:32

4

I am using cakephp 3.2 and when i am retrieving data by find query it is giving date fields in this format Array ( [0] => Cake\I18n\FrozenDate Object ( [date] => 2016-08-01 00:00:00 [tim...
Lydell asked 11/10, 2016 at 5:13

4

I'm trying to disable the CSRF check for a single controller (API), but I'm unable to find how I'm able to achieve this. The pre 3.5.0 CSRF Component had the ability to be disabled on certain requ...
Assumption asked 8/12, 2017 at 13:0

4

I had this piece of code in my services.ctp file which was working fine before in CakePHP 2.3.10. href="<?php echo $this->webroot . 'intro/services/1'; ?> I just copied this file into C...
Cirque asked 23/3, 2015 at 17:43

3

<?php namespace App\Model\Entity; use Cake\ORM\Entity; /** * User Entity. */ class User extends Entity { /** * Fields that can be mass assigned using newEntity() or patchEntity(). * Note...
Confiscatory asked 10/9, 2015 at 15:42

1

I 'm working on the integration of Microsoft Teams and the PHP client framework (which can save data in the database). The app I built uses actionable messaging to do this. This app can't send any ...
Scend asked 14/8, 2020 at 6:2

3

Solved

How can I view the result (final mail) with the email transport class "Debug" in CakePHP 3? Or where can I find the returned result? There's no detailled information about email debugging in the bo...
Hanker asked 7/8, 2015 at 14:37

5

Solved

In my CakePHP 3 app, I have a somewhat elaborate tree of entities that I need to clone and save. The root of the structure is a Questionnaire, a Questionnaire hasMany Questions, each Question hasM...
Lennon asked 10/11, 2015 at 15:23

5

Solved

I started using CakePHP 3 after a time using CakePHP 2 and I am having troubles to create the authentication login. The new auth function $this->Auth->identify() always return false. On the...
Meliamelic asked 9/4, 2015 at 18:9

4

Solved

I am trying to install CakePHP by referring to their website link: http://book.cakephp.org/3.0/en/installation.html I use the below command to install Cake, which it does, but it installs the late...
Pseudonymous asked 4/2, 2016 at 9:2

© 2022 - 2024 — McMap. All rights reserved.