Questions tagged as 'cakephp'

0
answers

Populating select via the other select option

I have a system done in CakePHP. I have 3 selects in one view: One to list the stocks; One to list inventory locations (A stock can have multiple locations); And one to list the products you have in the given location; How do I, when selec...
asked by 23.02.2018 / 14:42
0
answers

Error when hosting site, which does not appreciate when testo in localhost

I'm trying to upload a website that I made using cakephp 3.5.10. The site is working normally on my PC, the problem is when I try to put it online in the hostgator, which gives this error: Parse error: syntax error, unexpected T_STRING, expect...
asked by 06.02.2018 / 12:20
0
answers

File download on base 64 (Controller)

I have the following situation: I have a View that calls a link to Controller to download the file (without leaving the page). I was able to make it work by reading the file from the server, but what I am trying to do is to return...
asked by 02.02.2018 / 21:04
1
answer

Make multiple sql consoles in one query

Hello. I want to do a search for expenses entered in the expenses table. I want to do in the same query: add the expenses found according to the search parameters, count how many expenses were also found according to the parameters passed and...
asked by 29.03.2018 / 22:46
2
answers

How to break a line inside a link in CakePHP

I know it's not right but I have a situation where I needed to do a line break within the link as attached image. IwouldliketoworkwiththeCakepatternbutIhadtodothelinebreakthroughHTML.HowdoIdothisforCake?<navclass="columns" id="actions-s...
asked by 04.12.2017 / 14:34
1
answer

cakephp controller using functions from another controller

Good evening! I have 2 client and email tables , when saving the client I need to save the email next to the email table, however I need to call the "save" function of the email controller. how do I do? Thank you all     
asked by 25.10.2017 / 03:33
0
answers

Validate data and generate temporary password - cakePHP

Good morning, I need to create a function that validates the fields of the client and compares to see if they are correct if they are, generate a temporary password. Below is my code. function _gerar_senha_validando_campos(){ if...
asked by 06.10.2017 / 14:16
1
answer

Sorting paginate in CakePHP

I've never heard of CakePHP, I'm having a bit of trouble adjusting a purchased script where the developer does not support it. This code is responsible for listing some image records saved in the database. public function choose(Req...
asked by 26.09.2017 / 17:46
1
answer

Viewing images in the database with a separate cakephp file

I'm using phpcake as an administrator of a photo gallery, the images are saved inside the webroot / img / galleries folder / for each category a folder is created following a numbering. Until then everything is working. The problem is when I...
asked by 30.08.2017 / 01:11
1
answer

CakeDC / Users - Types of users

I've implemented the CakeDC / Users authentication plugin and want to add other types of users to my system. I currently have only the two default permissions: superuser and user. I'm doing permissions control through the permissions.php f...
asked by 04.07.2017 / 19:43