Questions tagged as 'cakephp'

1
answer

Cake PHP Relationship - 3 Tables

I have the following 3 tables: Status Table: id nomeEstado City Table: id idEstado //(que busca da tabela estado) nomeCidade Participant Table: id Nome idCidade Now I want to put in page Nome , Cidade and...
asked by 31.08.2014 / 20:07
1
answer

How to make a slug pagination in Cakephp?

Cakephp by default generates a pagination with indexes, for example: noticias/listar/page:2 I would like to paginate this way: notícias/listar/2     
asked by 19.05.2014 / 20:27
3
answers

Problem with function call in CakePHP

I have this in the Pass.php template: <?php class Passagem extends AppModel { public $name = 'Passagem'; }?> And this in PasswordsController.php: <?php class PassagensController extends AppController { public $helpers =...
asked by 29.01.2014 / 03:59
1
answer

Incorrect method in form generated by CakePHP 2.4

My problem occurs with the following code: <?php echo $this->Form->create( 'Page', array( 'url' => array( 'controller' => 'pages', 'action' => 'delete', $this->request->data['Page']['id'],...
asked by 16.01.2014 / 17:19
1
answer

How to make the homepage of a website using CakePHP 3.0

How should a site's home page be made using the CakePHP 3.0 Framework (3.0.3)? This page has dynamic content. What this page consists of: It is a display page for key products and product categories (both searched by the bank), and it will di...
asked by 23.07.2015 / 19:20
2
answers

Handling data output from the database in PHP

In many cases we have data in the database that is not in the format that we want them to be displayed. As an example, let's say I have a table called users and in this table a field called role that will store a user's access level. Let'...
asked by 20.02.2015 / 17:40
1
answer

Combo does not display name of state

Hello. Through the bake, I created a form to include a City. However, bake when generating the form, displays the state id and not the name of it. How do I make the name appear and not the state id? If possible, I would like to change the label...
asked by 16.12.2014 / 02:17
1
answer

How to get the last query executed by CakePHP?

I want to get the last query executed by CakePHP Example $data = $this->Ticket->find('all', array('conditions' => $conditions, 'order' => array('Ticket.id' => 'DESC'))); $this->query = $this->Ticket->getLa...
asked by 11.07.2014 / 23:41
0
answers

How to call a function in CakePHP 3.x [closed]

I have a add view which is a form called help desk (referring to the function add of course), and I have this upload which is to attach file to the request, which is linked with a component , but I do not want to leave them in different...
asked by 11.12.2015 / 14:44
2
answers

When should I use GET function and when should I use POST function?

I have a question and I think it's even "stupid" but when should I use GET and when should I use POST? I know that when using GET the text or message written in a form or field, it is also passed to the link or URL address, so I know that GET...
asked by 15.03.2016 / 14:22