PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, February 3, 2022

[FIXED] Trait 'Crud\Controller\ControllerTrait' not found in Cakephp

 February 03, 2022     azure, cakephp, cakephp-3.0, php     No comments   

Issue

I transferred my cakephp api from linux vps to azure cloud. I configured redirects too but I am getting "Trait 'Crud\Controller\ControllerTrait' not found" error. I checked the bootstrap.php file to check whether its loading crud plugin or not. It does.

Do I need to run composer autoload to load the plugin? If yes then how to in azure as its windows vm.


Solution

Frist, you should check whether the folder named friendsofcake exists in \vendor directory or not. If not, you need to run the following command to install it by using composer:

composer require friendsofcake/crud:^4.3  

Refer to this doc for more details.



Answered By - Aaron Chen
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing