Questions tagged as 'cakephp'

1
answer

Save entities related to cakephp-3

I do not understand why related entities are not working with cakephp, for example: I have an entity company, and this company has a user. In my view, the company values correctly put [$ company-> cnpj] and the values for user, I put through the...
asked by 01.09.2016 / 01:42
1
answer

PostLink method does not exist in version 2.4.4 of CakePHP?

I'm trying to use the postLink method to delete images, using their name. However Cake gives me an error saying: Warning (512): Method HtmlHelper :: postLink does not exist
asked by 21.03.2014 / 17:33
1
answer

Invalid argument supplied for foreach ()

I get this error:    Warning (2): Invalid argument supplied for foreach ()   [CORE \ Cake \ Utility \ Validation.php, line 490] using the admin_upload_image action from my Galleries controller. But this action was working properly, and I...
asked by 26.03.2014 / 18:13
1
answer

Change domain and site server CakePHP [closed]

I developed a site in CakePHP and had to change it from domain and server. I passed the files to the server and set up the database files in the app/config/database.php folder. All right, though, it's not pulling the css in webroot...
asked by 20.03.2014 / 21:53
2
answers

Dropdown does not work

I have a Dropdown menu that shows the links to the gallery and videos, however, if it is in a view other than the index.ctp the dropdown no longer works. But if I get the dropdown.js of the source code distribution and include it in the l...
asked by 31.03.2014 / 19:30
1
answer

Hash from some CakePHP2 field

I created some tables with scaffold of CakePHP2, I have a model called account and I created a setter and getter: public function setPassword($password) { $this->password = Security::encrypt($password); } public function getpass...
asked by 26.06.2018 / 16:23
3
answers

Uploading Images with PHP - Mysql

I need to upload an image in MySQL, ie the image path, do you have any practical method to do?     
asked by 17.03.2014 / 15:24
1
answer

Site opens in the webroot folder

The site I'm putting online is displaying http://mysite.com/app/webroot/ whenever you put www.mysite.com in the path to access it. However I wanted it to just go to http://mysite.com/ , where the Home.ctp view is. I...
asked by 07.04.2014 / 17:04
1
answer

Error saving with cakephp

Hello. I do not understand why this error. The code is apparently correct. link Follow error print: link The user table fields are: table users id, name, email, password. In the Expense table you have the primary key of the...
asked by 17.08.2017 / 18:40