Questions tagged [cakephp-2.4.7]

The latest stable version (actually) of CakePHP. CakePHP makes building web applications simpler, faster and require less code.

CakePHP makes building web applications simpler, faster and require less code.

Home: http://cakephp.org/#

10 questions
3
votes
3 answers

Dynamically add form field rows - cakePHP

I have a invoice table and an invoice_item table. Each Invoice hasMany invoiceItem. When creating an invoice the user is presented with a form with the invoice form fields and also a row with invoiceItem form fields. What I want to do is to have a…
user3504209
  • 41
  • 1
  • 4
2
votes
4 answers

FlotChart 0.8.2 Time mode requires the flot.time plugin

I'm working with flotchart to make a custom linechart (which is call in ajax) but I'm probably doing something wrong because he will not be displayed and i get the error : Uncaught Error: Time mode requires the flot.time plugin. But the…
hidewak
  • 299
  • 1
  • 4
  • 16
1
vote
1 answer

cakephp findbyid not working correct

i am developing a webservice (cakephp 2.4.7) where i am using the findById method on a user model. What i have is: $user = $this->User->findById($userid); if (!$user) { throw new NotFoundException(__('Invalid User')); } And the…
q0re
  • 1,401
  • 19
  • 32
0
votes
1 answer

SQL Statement issue with the Postgresql Support in CakePHP 2.4.7 and TreeBehavior

I run a CakePHP 2.4.7 application, using PostgreSQL as Database. It seems that CakePHP or the PGSQL DBO source don't correctly format the SQL queries for Postgre when contain Group By or Order BY. I gotten this error trying to save a "simple" model…
Rémi Becheras
  • 14,902
  • 14
  • 51
  • 81
0
votes
1 answer

403 Forbidden, only CakePHP - PHP-FPM - Apache 2.4 and mod_proxy_fcgi

This weekend I installed this software on my system. Ubuntu 14.04LTS Apache 2.4.7 (from repository) PHP 5.3.29 (compiled) - with PHP-FPM (CakePHP 2.4) My VHOST config: ServerAdmin martin.fink@sandstein.de ServerName…
sensedrive
  • 11
  • 3
0
votes
1 answer

Cakephp ajax form won't load the right view

I'm just trying to call a function from a form submision (which is also call from ajax). I want to call the add method but it's the index which always called. My ajax view with the ajax submission form :
hidewak
  • 299
  • 1
  • 4
  • 16
0
votes
3 answers

change the url rewrite on Cakephp app

it is possible to change the url rewrite in a cake app ? Actually it's like this : http://myapp.fr/myapp/admin/users/view/30 I want to hide everything after the ".fr" in every page, like this : http://myapp.fr/ Thank you for your help.
hidewak
  • 299
  • 1
  • 4
  • 16
0
votes
4 answers

CakePHP Form Validation only on Entering Data

I am trying to Upload a photo for one of the models and when i am going to the edit mode. It still asks me to upload the photo when the user only wants to edit the text related to that record. Below is my Validation Rules. 'display_photo' =>…
Harsha M V
  • 54,075
  • 125
  • 354
  • 529
0
votes
2 answers

Manage AJAX request data in a CakePHP controller

I'm trying to access an AJAX request's data from a CakePHP controller, but failing to understand where is the form's data once I'm in the controller. Inside my view, between form tags, I have the following code: echo $this->Js->submit( …
lucasreta
  • 965
  • 2
  • 10
  • 25
0
votes
2 answers

Using Hash::extract() on Array from Xml

I have an array as follows: array( 'items' => array( 'item' => array( (int) 0 => array( '@item' => '3-394-001068-00000'), (int) 1 => array( '@item' => '3-394-001069-00000'), …
Dirk
  • 115
  • 1
  • 2
  • 9