Posts by Devidy Oliviera • 381 points
14 posts
-
1
votes0
answers211
viewsQ: What is the right way to get values with / or special characters using jQuery?
I have a jquery function in a view, which takes the date in a text type field. The problem is that my jquery function . val() does not take value after bars separating dates. For example 12/06/2013…
-
15
votes3
answers2003
viewsQ: In PHP the correct is Else if or elseif?
In PHP, the correct is else if or elseif? What’s the difference between them? The language allows writing everything together and separately, and apparently the results are identical…
-
0
votes1
answer849
viewsQ: How to get back data from a function via ajax?
I have an ajax in my view add that makes an asynchronous request in an action test in my controller, in this function I need to return the variable $balance to my view add, I would like to know how…
-
0
votes1
answer60
viewsQ: How to add an array with itself more data?
It’s the following guys. I have a for and inside it I have an array ($smses) that receives ($smses = $smses + 'my application’s data'). The problem is that this does not work, I would like to know…
-
0
votes1
answer136
viewsQ: Console. My application works normally no longer I can use the Console
My application works normally more when I try to use the Console it gives the following error: PHP Warning: include(Cake/Console/Shelldispatcher.php): failed to open stream: No such file or…
-
2
votes0
answers20
viewsQ: How do I pass vectors from one controller to another in cakephp?
I wonder if you have how to go from one controller to another passing parameters. For example: I have an array with information in one view and would like to send it to another controller. How to do…
-
1
votes0
answers268
viewsQ: How to pass a vector from a view to a controller?
I have a view that prints a report on the screen. I put a button and am doing a function to export this report to excel. My question is: How to send this data that is in an array to my controller?…
-
3
votes1
answer1567
viewsQ: Horizontal scroll bar in the sublime text3, how to activate?
I use Sublime text 3 in my cakephp projects. By default the html files in cake have the extension . ctp and when I need to tinker with a file. ctp where I have a very large line of code it gives a…
-
1
votes2
answers72
viewsA: Contain or John, huh?
I managed to do it using Join: $contacts = $this->Contact->find('all', array( // 'fields' => array('campaign_id'), 'conditions' => array( 'Contact.campaign_id is not NULL',…
-
0
votes2
answers72
viewsQ: Contain or John, huh?
I have the following code: $contacts = $this->Contact->find('all', array( 'limit' => 20, 'contain' => array('Address', 'Phone' => array('fields' => 'Phone.phone' ), 'Campaign'),…
-
1
votes1
answer1288
viewsQ: How to pass parameters using cakephp redirect?
I am using the following code snippet in my controller: $this->redirect(array('action' => 'duplicate', $contact)); The $contact variable contains an array. The command redirects to the…
cakephp-2asked Devidy Oliviera 381 -
0
votes1
answer421
viewsQ: How to Download Files in Cakephp?
I have the path to a saved image in my bank. I would like to put a button in my view to download that image. How to do?
cakephp-2asked Devidy Oliviera 381 -
1
votes1
answer362
viewsA: How to customize error pages in cakephp?
Thanks for the help, I found the answer on the link http://book.cakephp.org/2.0/en/development/exceptions.html#Exception-Renderer Just create View/Errors/ and create views with names corresponding…
cakephp-2answered Devidy Oliviera 381 -
1
votes1
answer362
viewsQ: How to customize error pages in cakephp?
How to create custom error pages in cakephp?
cakephp-2asked Devidy Oliviera 381