Questions tagged as 'cakephp-2'

0
answers

Displaying error message

I made the following validations in the Model: class Inscricao extends AppModel { public $name = 'Inscricao'; public $useTable = 'inscricoes'; public $validate = array( 'nome' => array( 'between' => arra...
asked by 17.07.2015 / 15:54
1
answer

CakePHP 2.X: External SESSION

I have the following situation: I have my application running with CakePHP 2.X, however the authentication system is external and I do not have access to it, the only thing I was given is the $ _SESSION variables made available by the server....
asked by 26.08.2015 / 15:27
2
answers

CakePHP 2.x: Paging with Custom Query

I've hit my head so far to try to understand how CakePHP's pagination works with Custom Query's but I have not had much success. This is the method I currently have, I want to make a paging on top of it, how to use Paginator in this situa...
asked by 15.08.2015 / 03:47
0
answers

How to pass a vector from a view to a controller?

I have a view that will print a report on the screen. I put a button and I'm doing a function to export this report to excel. My question is: How to send this data in an array to my controller? My button is like this, Via get I can only pa...
asked by 26.01.2015 / 13:03
0
answers

How do I debug (display errors) on a system that uses MooTools?

Alright? I do not know JS in depth, but I need to debug a piece of code that uses MooTools. When I inform my code to write an array with print_r or debug (cakephp), nothing is displayed to me and on the console it looks like this: SyntaxErr...
asked by 06.03.2015 / 17:49
1
answer

Route + Pagination - Cake 2.x

I have a "classic" question about paging. I did as below, everything worked normally, but I could not mount the route for the pagination to stay as I want. I tried this: Controller class NoticiasController extends AppController {...
asked by 06.02.2015 / 20:49
1
answer

Site in Cakephp does not work on localhost

Hello. I have a website running in cakephp on a server on the internet. I'm trying to move to my local machine (Windows 8.1) where I already have xampp running with CakePHP in version 2.1.0. I downloaded the entire site to the folder C: \ WebSer...
asked by 02.07.2015 / 22:11
1
answer

Why is not the escape parameter recognized in Cakephp's HtmlHelper?

When trying to create an image as a link in cakephp using HtmlHelper, the HTML code is generated as String in the browser <?php echo $this -> html -> link( 'Visualizar' .$this -> html -> image('icone_visualizar.png').' | ', ar...
asked by 07.10.2014 / 17:48
1
answer

How to download files in Cakephp?

I have the path of an image saved in my bank. I would like to put a button in my view to download this image. How to do?     
asked by 06.01.2015 / 14:59
2
answers

Contain or join?

I have the following code: $contacts = $this->Contact->find('all', array( 'limit' => 20, 'contain' => array('Address', 'Phone' => array('fields' => 'Phone.phone' ), 'Campaign'), 'conditions' =>...
asked by 14.01.2015 / 16:47