Questions tagged as 'cakephp'

2
answers

Taking the last position in the bank

I need to get the last row of a column using CakePHP. I'm trying like this: $idAtual = $this->Albun->find('all', array('fields' => 'codigo')); Only he is returning all lines. How to get only the last?     
asked by 25.03.2014 / 20:48
3
answers

Login CakePHP 2.0 does not work

I have successfully made the login system with the table and fields that come by default in cakephp, I have decided to change the table and fields to login and now does not log in. Logs / Login.ctp file: <div class="large-4 columns...
asked by 27.02.2014 / 15:58
1
answer

CakePHP does not show special characters present in the contents of the database

I get something like: Produ��es - Casamento Catarina & Lu�s _ Caves Taylor�s But what was expected was to get: Produções - Casamento Catarina & Luís _ Caves Taylor's This only happens with data coming from the database, which i...
asked by 15.04.2014 / 18:45
1
answer

App: Uses does not work on the server

I created a class in the Lib folder of cakephp with some functions. Testing locally, and adding in controller App::uses('readMessages', 'Utility'); Everything works correctly, but when I upload to the actual server, it says it can no...
asked by 04.04.2014 / 16:32
1
answer

Controllers in CakePHP subfolders

I wonder how I can put controllers in subfolders in Cake? I made the following change in bootstrap.php but it did not work: App::build(array( 'Controller' => array( ROOT . 'app/Controller/Admin/' ) )); That is,...
asked by 30.06.2014 / 15:18
1
answer

Keep sessions in subdomains with CakePHP

I am having problems keeping the sessions active among the subdomains of the system, I am using the CakePHP version 2.4.7, I already added the function below in App/bootstrap.php ini_set('session.cookie_domain', env('HTTP_BASE')); I...
asked by 28.04.2014 / 15:22
1
answer

How to make only the webroot folder visible to everyone?

In the Cake documentation, it indicates there that you should only have this folder visible to everyone. How can you do that? Does this protect my application code from being tampered with?     
asked by 18.06.2014 / 16:33
1
answer

In Cakephp, why does the input method generate an empty selector?

In my application there are 2 related models and Shortcut and Role, where Role has several Shortcuts, the connection between the two normally occurs, except when trying to create an input in the "save" view of the controller Shortcut to select a...
asked by 22.06.2014 / 21:09
1
answer

Update CakePHP Version to latest

I have a project in hand with the version of CakePhp 2.2.3, I would like to upgrade to a newer version of the framework, because if I'm not mistaken, it's already in version 3.5. I have seen some links on the internet and I did not quite underst...
asked by 06.03.2018 / 00:28
1
answer

Index in JavaScript

I have a table where I can add rows dynamically, every time I click the button I add a new row to fill the field, my first row comes with index 0 <td><input type="text" name="data[Ticket][0][descricao_ticket]" size="20" placeholder="I...
asked by 26.11.2017 / 18:25