Questions tagged as 'cakephp'

2
answers

Access the data of an Array that receives 2 Arrays

Let's say I have an Array $testes that gets 2 arrays $variavel1 and $variavel2 . So I make $this->set('testes', $testes) to use in the view. In the View how do I access the values of $variavel1 and $var...
asked by 06.05.2015 / 16:58
1
answer

PHP Build-in class does not work in CakePHP 3.0

I'm trying to use a class Built-in of PHP inside CakePHP but it's returned one:    Error: Class 'App \ Controller \ Component \ DateTime' not found Where it's being used: public function listNewBanners($newBannersQuantit...
asked by 30.07.2015 / 19:23
1
answer

Create Infinite PHP Menu

I am trying to create an infinite menu, I already mounted the object the way I need, but I can not print. It should look something like this: User User > User1 User > User2 User > User2 > User3 User > User2 > User4 User >...
asked by 05.04.2018 / 21:07
1
answer

Problems installing cakePHP on linux ubuntu 16.04

I'm having trouble installing cakePHP on linux. When I run the command composer create-project --prefer-dist cakephp/app [app_name] the following error message appears: Installing cakephp/app (3.5.0) - Installing cakephp/app (3.5...
asked by 24.08.2017 / 16:38
1
answer

Resolve Undefined namespace Mailer CakePHP 3.0.3

I'm trying to create a Reusable Email provided by CakePHP 3 but even following the documentation but I get the following error: use Cake\Mailer\Mailer; Error:    Undefined namespace Mailer       Referenced namespace is not found....
asked by 06.08.2015 / 16:43
1
answer

Hide domain directory using htaccess or router in cakephp

I'm having a hard time creating a configuration in .htaccess to hide a folder from my site. My domain has the following structure: www.site.com.br/cake, where are the files and folders related to the project. I want to hide the / cake directo...
asked by 03.07.2015 / 15:26
1
answer

How to remove the 'Invalid username or password, try again' message from the CakePHP login page?

I started using the cakephp recently and I created a page from login to my project. The login works perfectly, but is always displaying an invalid user or password. What can I do to display this message ONLY when login is invalid?...
asked by 11.09.2015 / 19:41
1
answer

Cakephp-file-storage 3.0 plugin does not run and does not display Error

Following the cakephp-file-storage 3.0 plugin installation tutorial (which aims to give you the ability to load and store files on virtually any type of backend storage) but did not succeed in the file upload (also in its allocation), I did not...
asked by 17.08.2015 / 20:03
1
answer

Recursive in CakePHP - Explanation

I'd like to know, by way of example, how CakePHP recursive works. $this->Model->recursive=2; What exactly does it do in practice?     
asked by 08.06.2015 / 16:49
1
answer

Use a component inside a Shell Console in CakePHP

Does anyone know how to use a component that I created in cakephp within a cake console script? I've tried using App :: import but I could not. For example in a normal controller I can use my component as follows: public $components = ar...
asked by 25.04.2014 / 21:15