Posts by Rodrigo Gaster • 71 points
12 posts
-
0
votes2
answers100
viewsQ: Save the data from the array and not your key
Galera blz..., I am editing a field to save to db, I send to Edit.ctp the following array $result = array_merge($cones->toArray(), $cda->toArray()); debug($result); //Upshot: [ (int) 0 =>…
-
0
votes0
answers44
viewsQ: Login Facekook - PHP
I believe everything is right in the App settings, someone has already gone through it and managed to resolve ? In my settings it’s like this…
-
0
votes1
answer298
viewsQ: requestAction Cakephp 3
Good afternoon, I would like a help to make a requestAction on Cakephp 3, before on cake2 I did so: <?php $post = $this->requestAction('/Posts/latest'); foreach ($post as $value) : ?>…
-
1
votes0
answers16
viewsQ: Problems in find() Cakephp
Good afternoon, I’m making one find() to check if in the period chosen by the user the feature he will use is available, the only problem I found in it was that if I have an event at 10:00 to 15:00…
cakephp-2asked Rodrigo Gaster 71 -
2
votes1
answer93
viewsQ: Sort Birthdays by Day
Guys, I needed a help to display on the screen the Birthday of the Month ordered by the day, in the bank he pulls the information from Senior so the date comes ex: 1970-10-30, in my controller is…
-
1
votes1
answer56
viewsA: Assembling a CAKEPHP Array
Just to be on the record and thank Kadu, this is the solution to this problem. public function obter_eventos(){ $datos = $this->Agenda->find('all'); foreach ($datos as $key => $dato) {…
-
1
votes1
answer56
viewsQ: Assembling a CAKEPHP Array
Guys, I need some help setting up a bad array here. I got a calendar (bootstrap Calendar) ready and I’m trying to implement it on my site with Cakephp. All right with the layout but when searching…
-
0
votes2
answers58
viewsQ: Find birthday girls of the month
I would like to make a condition where only show the birthday of the month. My controller looked like this: public function index() { $ultimoDia = date("t", mktime(0,0,0,date('m'),'01',date('Y')));…
-
1
votes1
answer82
viewsA: Edit TXT File with cakephp
Just for the record, I was able to solve the problem. The function was like this: public function edit() { if($this->request->is(array('post', 'put'))) { $retornoJson =…
-
-1
votes1
answer82
viewsQ: Edit TXT File with cakephp
Guys if possible would like a help to edit a file .txt that is formatted with json_decode(). On the controller went like this: public function index() { $json_str =…
-
0
votes0
answers230
viewsQ: Converting Date To Milliseconds
I’d like some help converting this function to the Cakephp standard. She takes the date from datetimepiker and turns it into milliseconds, but I’ve searched a lot and I can’t find anything similar…
-
1
votes0
answers84
viewsQ: Showing error message
I made the following validations in Model: class Inscricao extends AppModel { public $name = 'Inscricao'; public $useTable = 'inscricoes'; public $validate = array( 'nome' => array( 'between'…