Questions tagged as 'cakephp'

1
answer

Is using PDO the safest way to connect to a DB with PHP?

I am a beginner in PHP and would like to know if PDO (PHP Data Objects) is the safest way to connect to a database? I also need an example of how to make this connection and insert / select data.     
asked by 09.06.2015 / 15:26
2
answers

What is Lazy Loading and Eager Loading?

What is Lazy Loading and Eager Loading ? I saw these terms in a documentation but I do not quite understand it, so mine is to know what these terms mean and I would like to if possible restrict the scope of the answer / question to PHP...
asked by 20.07.2015 / 14:59
4
answers

Understanding the Node and Applications in real time

Since I first met CakePHP , I got used to programming with it, as it had a small learning curve and greatly speeded up development. For my recent application, I needed the data entered by the users to be monitored in real time in terms of th...
asked by 13.03.2014 / 15:12
1
answer

CakePHP Actions Not Found in Vhost from Wampserver

I'm trying to make my admin actions protected by SSL, including login action. However whenever I try to access one of these actions, I always get the 404 error. For example, when trying to access the login page, Cake redirects to link , with er...
asked by 29.07.2014 / 15:35
2
answers

How to use database in CakePHP without complying with the naming conventions?

CakePHP has conventions for naming tables, classes, etc., such as having the username and password columns for tables that hold users. In my current situation, I have tables that do not meet these standards. How could I continue to us...
asked by 13.01.2014 / 15:17
3
answers

Disable Auto Redirect after login in CakePHP 2.4

I'm using CakePHP 2.4 Auth and if I try to access a link that needs to login it redirects to the login form. For example: I try to access: / projects / edit / 34 without being logged in. Then CakePHP redirects to / login. After informing the...
asked by 08.01.2014 / 19:19
3
answers

Use .on () instead of .bind () in CakePHP's JsHelper

When I write Ajax with CakePHP's JsHelper, if I write something like this $this->Js->get('#searchCity')->event( 'click', $this->Js->request( 'http://api.geonames.org/searchJSON', array( 'async...
asked by 14.02.2014 / 13:31
2
answers

How to access variable from another controller - CakePHP

How do I access variables of another controller ? For example: I have controller X , and in action index , I create a variable (or a constant). From controller Y , I want to access the value of the variable (or cons...
asked by 10.02.2014 / 21:46
2
answers

How to release a sub-directory protected with .htaccess?

I have .htaccess in my test environment developed in CakePHP and the .htaccess has authentication so that not anyone is accessing it. Now I need to release a directory from the site, actually a CakePHP plugin, I need anyone to have acc...
asked by 07.01.2014 / 19:28
1
answer

How to change this JSON object?

I have a problem with this: I am using CakePHP and sending JSON to a datagrid of EasyUI as follows: $rows = $this->Produto->find('all', array('fields' => array( 'id', 'codigo_produto', 'codigo_pedido' ))); $total = $this->Pr...
asked by 29.09.2015 / 15:02