Questions tagged as 'cakephp'

0
answers

isUnique valitadion not working cakephp 2x

In my template, I created a valitaion for my email field, where if you have another email it shows that it is not possible to register, but this validation is not working. public $validate = array( 'nome' => array( 'notempty' =...
asked by 04.02.2016 / 17:47
0
answers

CakePhp does not load Css, JavaScript and images

I'm with CakePHP in version 1.3.15 installed on a CentOS server and the same project that works on the internet, the local server only loads text and nothing else. As I enabled the developer mode, if it had any errors, it would load. I believe t...
asked by 05.02.2016 / 14:59
1
answer

How to know the current connection that the system is using in CakePHP 3.0?

Hello, I'm working with two types of connections on databases with different settings. I want to know how I can get the current connection that the page is running dynamically. I currently use this: use Cake\Datasource\ConnectionManager;...
asked by 29.01.2016 / 19:37
0
answers

Amadeus session error with cakephp

First, let me clarify that I know the documentation is private. I have the documentation in hand, I followed everything right, but amadeus still gives this error:    17 | Session | No agreement on destination My method in Client.php is as...
asked by 27.01.2016 / 18:56
3
answers

Sort query with paginate cakephp 3.0

$this->paginate = [ 'contain' => ['Unidades'], 'fields' =>['PontoDeColetas.id','PontoDeColetas.nome','PontoDeColetas.status','Unidades.id','Unidades.nome'], 'order' => ['Unidades.nome' => 'desc'] ]; As I s...
asked by 19.02.2016 / 12:51
1
answer

Use multiple database

I'm not very knowledgeable about database and have never worked with large systems ... I'm creating an application with CakePHP that will serve as a webservice for two types of distinct clients, a client is simple and will only have a table rela...
asked by 21.04.2015 / 04:33
1
answer

Google Adsense with CakePHP?

I'm trying to put an adsense banner in CakePHP and I'm not getting it, the banner just does not show up. How to do this? footer.ctp <footer> <?php echo $this->fetch('script');?> <script async src="//pagead2.googlesy...
asked by 18.12.2015 / 19:30
0
answers

Popular a select with php result using jQuery and cakephp

Hello, I'm trying to populate a select with the options that are returned, according to what the user selects in a particular select. The problem is that I'm a layman with jquery and I do not know if I'm doing it properly. In my select I call...
asked by 04.01.2016 / 14:23
0
answers

CakePHP leave "action" and "template" more concise

I have some questions about how I can improve this "action" in my "controller":    Question discussed in: Post functional code in stackoverflow for refactoring? My template has a navigation bar with dynamic content (if the user is "...
asked by 02.12.2015 / 13:59
1
answer

Redirect Loop Cakephp

I am performing maintenance on a system made with cakephp however when trying to log in the browser returns the following error.    This webpage has a redirect loop I looked at stack em ingles and found a "solution" that said to in...
asked by 15.12.2015 / 12:39