Questions tagged as 'cakephp'

1
answer

How to update CakePHP from version 0.2.9 to the latest version, with security

I've taken a site to administer which is a content manager that was developed in CakePHP in the 0.2.9 version. I'd like to know the correct and safest way to upgrade to 2.0 and 3.0 .     
asked by 31.08.2015 / 20:44
2
answers

How to set flash in CAKEPHP view?

In the method on my controller I will flash the box, according to the condition. if ($this->Auth->user()) { //redireciona apos o login; echo $this->Session->setFlash("Bem-vindo"); } How can I display this directly from t...
asked by 17.10.2015 / 15:19
1
answer

Rule in model to format date

I have two rules in two fields. In the data_expenditure field, I want to get the form d/m/a and pass a-m-d . It turns out that when saved in the database, it stays as 0000-00-00 . I do not know how to debug in the model to...
asked by 19.11.2015 / 13:44
1
answer

Select Betweeen on CakePHP data

I'm trying to select records in a date range. $mesAtual = $this->requestAction(array('controller' => 'compras', 'action' => 'comprasMes'), array('condicoes' => array('Compra.status' => array(1,2), 'Compra.data BETWEEN ? AND ?' =...
asked by 14.07.2015 / 12:20
1
answer

disable select in cakephp

I have 2 selects, and I want to make that when one of the select is with an option other than empty, the other select goes into disable. Follow my code: <script type="text/javascript"> function handleSelect() { if (this.value == '30...
asked by 29.09.2015 / 15:37
1
answer

How to make two relationships for the same table?

I have a table named advertencias , in this table I have 2 foreign key for the same table named pessoas in this table person I have two types of Person Student and Teacher, then in table advertencias when I am going to create...
asked by 26.08.2015 / 07:55
1
answer

Get data from another Model

I'm not getting a phone related to a user in View edit() . I can get the phone number in ver() but not edit() . Controller Patient : public function edit($id = null) { if (!$this->Patient->exists($id)) {...
asked by 16.04.2015 / 20:14
1
answer

How to add and remove fields generated via CakePHP, dynamically?

Hello. I have a <select> that is fed by data from the database. I need to manipulate this select and multiply it if the user wants to send two different data. Since the <option> s depends on the data coming from the...
asked by 11.12.2014 / 13:42
1
answer

Automatic process in PHP [duplicate]

I wanted to know what form (and if possible) of leaving something automatic occurring in PHP. My idea is, a site where it automatically collects data from another site and stores it in a database only that automatic, at every given time for ex...
asked by 14.11.2014 / 18:08
1
answer

Performance in dynamic menus

I am putting together a cakephp and mysql application, and would like to display some menus and items dynamically through the database. For example: View the latest updates, the latest database inserts, the menu with categories registered in...
asked by 11.06.2014 / 22:25