Questions tagged as 'cakephp'

0
answers

Error using span in CakePHP

As the attached image I can not use the span when I move to the Cake pattern. Can someone help me, pfv. <div class='col-md-12'> <div class="input-group" > <!-- Span Bootstrap --> <span class="input-group-addon" i...
asked by 06.06.2017 / 15:21
1
answer

Call component method on all controllers in CakePHP 3

I would like to know how to call a method of a component that I created in CakePHP 3 on all controllers, as well as Auth that checks whether the user is logged in or not on all controllers. However I also want to be able to call another method o...
asked by 11.06.2017 / 14:42
1
answer

Query Counter

I'm learning about cakephp and would like some help. I have to do the sum of a column in my table (Use Postgres). I'm trying to use the sum () function of the cake itself. My controller use Cake\ORM\TableRegistry; public function ind...
asked by 02.06.2017 / 01:58
0
answers

How to retrieve the array from a post sent on Android to a php?

Android code: String caminho = "http://10.0.2.2/system/pages/login"; HttpURLConnection conn = null; BufferedReader reader = null; try{ URL urlConection = new URL(caminho);...
asked by 07.04.2017 / 02:06
1
answer

Filter in CAKEPHP 2.0

My controller has the following verification: $this->loadModel('User'); $this->loadModel('Conta'); $this->loadModel('Unidade'); $this->loadModel('Periodicidade'); $this->loadModel('AgendamentoFinanceir...
asked by 15.04.2017 / 19:37
0
answers

Error requesting internal CakePHP pages?

I have a problem with my CakePHP , I am completely new to this framework and my erro is as follows:    2017-05-01 10:09:45 Error: [MissingControllerException] Controller class PagesController could not be found. E...
asked by 01.05.2017 / 15:27
1
answer

Class 'SimpleXMLElement' not found

As debug of cakephp in Snippet below: p.error { font-family: Monaco, Consolas, Courier, monospace; font-size: 140%; padding: 0.8em; margin: 1em 0; } .success, .message, .cake-error, p.error, .error-messa...
asked by 24.03.2017 / 13:36
1
answer

Query between two different databases postgresql cakephp

I have two distinct database clients and tickets . Where in the clients_tickets table of the clients database a configuration is stored that I need to access certain values in tickets . So I tried to use construct of cakephp...
asked by 20.03.2017 / 14:31
1
answer

A Model with 2 relationships but in the view only 1

I have a model called doctor who belongs to a city, and belongs to a specialty code: App::uses('AppModel', 'Model'); class Medico extends AppModel { public $belongsTo = array( 'Cidade' => array( 'className' => 'Cidade',...
asked by 11.03.2017 / 23:07
0
answers

Format all Date objects in CakePhp 3

In my database I have some fields with type Date. Therefore the data is stored in '2016-01-23' format. However, when I retrieve this data to display it in VIEW, it appears in '23 / 01/16 'format and needs to be left in '23 / 01/2016' format. I k...
asked by 08.02.2017 / 19:28