Questions tagged as 'cakephp-2'

1
answer

How do I keep an item in a static controller part of the page?

It is the following, I have a project page that serves as the default for all the others, a Layout .. But I wanted to add an item (informative) to it, and it only stays on the homepage and CRUD of the informations, when goes to other pages that...
asked by 09.01.2015 / 18:35
1
answer

Is there a way to "summarize" the otherif's?

In my CakePHP project, there are two dropdown fields for doing a search in the database, both as string's. I need to add two more fields (both dates). In the code below (controller), I used 4 if's to do field verification, when I add the date fi...
asked by 09.01.2015 / 16:55
1
answer

Error: Shell class SyncAccessTokenShell could not be found

My application is cake 2.4.4, is hosted on Amazon. Before the server was apache, but now we migrate to nginx for better performance. As already expected several problems occurred (normal), one more of them that is giving me a certain headache is...
asked by 23.10.2014 / 18:00
0
answers

Access external webservice with cakephp

I'm trying to make requests in external WebServices with Cake's HttpSocket, the documentation has this example $HttpSocket = new HttpSocket(); // string query $results = $HttpSocket->get('https://www.google.com/search', 'q=cakephp'); // a...
asked by 13.11.2017 / 23:47
0
answers

Error sending email: Connection refused cakephp

Hello everyone, I have a problem with sending email on a site that is hosted, the local server works normally, but after it gets hosted it does not work. I made the hosting by goddady, has anyone ever had this problem? email.php: class EmailCon...
asked by 06.09.2017 / 19:42
1
answer

Log Shell cakephp

I have a SHELL file in cakephp as below: <?php class AtualizarIndicadoresNormaisShell extends AppShell { public function atualizar() { //Chama model e sua action ClassRegistry::init('DadoIndicadoresNormal')->atualizar...
asked by 31.03.2017 / 22:34
0
answers

Problems in find () Cakephp

Good afternoon, I'm doing find() to check if in the period chosen by the user the feature that he is going to use is available, the only problem I found in him was that if I have an event from 10:00 to 15 : 00 using a dell projector, and...
asked by 10.05.2016 / 20:00
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
1
answer

Using JQuery DataTable with CakePHP?

I'm trying to use JQuery's DataTable server-side with CakePHP but I'm not getting it. I'm looking for some example for this but I have not found it yet. When executing the JQuery of DataTable it returns an error: Uncaught TypeError: Cannot re...
asked by 11.10.2015 / 09:27
1
answer

I can not update a field in CakePHP with $ this-Model-saveField ()

I can not update a particular field in CakePHP. When you run $this->OrdemServico->saveField() , it simply does not execute. Code: class OrdemServico extends AppModel { public $name = "OrdemServico"; public $useTable...
asked by 03.08.2015 / 21:56