Questions tagged [cakephp-2.5]

This tag relates to the 2.5.x branch of the CakePHP MVC framework.

CakePHP 2.5 was released on May 12, 2014.

CakePHP 2.5 is a fully API compatible upgrade from 2.4.

You should add the generic tag in addition to this one.

Useful links:

238 questions
0
votes
1 answer

Cakephp 2.5 Numeric field (int in db) and allow Empty not working

I have a numeric input field that is allowed to be empty, but if is not empty I'd like to return a validation error if letters are entered for example. at the moment if I removed allow empty validation works just fine for both numeric and notEmpty…
0
votes
1 answer

Paginate ignores conditions

when I try to run this code, it will not change my query, the condition is just not taken: $this->paginate = array( 'conditions' => array( 'campaign_id' => $this->request->data['Campaign']['campaign_id'] ) ); $this->set('products',…
user1555112
  • 1,897
  • 6
  • 24
  • 43
0
votes
2 answers

Image Link with DIV tag

I have the following Link Format which i want to display using Cakephp HTML helper What i…
Harsha M V
  • 54,075
  • 125
  • 354
  • 529
0
votes
1 answer

$this->Agreements->save() - create only one record, why?

I need to read all records from table agreements, make changes in filed payments, and update all records, save to table. So, my problem is, that save() only create empty record. Do not update exists record. I show you how: Reading from…
tomas3man
  • 29
  • 7
0
votes
1 answer

cannot set id in cakephp postLink

I am unable to set the id of the form or the class of the submit button. I seen examples that follow my code but I am not getting either set. I am using cakePHP 2.5. Form->postLink( 'Confirm', array('controller'…
Keith Power
  • 13,891
  • 22
  • 66
  • 135
0
votes
1 answer

cakephp 2.5.1: catching misspelled function calls

I have an API wirtten and gave out instructions how to us it. For example to test the login you can call /api/login Now I see in the logs, that someone keeps calling /API/LOGIN and gets an error 500. Is there somehow a way, to catch such errors ONLY…
user1555112
  • 1,897
  • 6
  • 24
  • 43
0
votes
3 answers

cakephp highchart fatal error while rendering

Here I am, again. With another question concerning cakephp-2.5 and the plugin 'highcharts'. I've been looking at the demo's an all the different things I could find were the extendings from the controllers. But... that isn't required because it's a…
Tosfera
  • 512
  • 3
  • 14
0
votes
0 answers

Cakephp retrieve all controllers as object

I'm trying to create a dynamic menu by adding variables in every controller. Each controller will hold its own links which will be generated in the default template ( default.ctp ). The thing where I am stuck right now is that I have no clue how to…
Tosfera
  • 512
  • 3
  • 14
0
votes
1 answer

CakePHP 2.5 Theme and layout not loading

I'm trying to use themes with CakePHP 2.5.X and I'm failing to load the theme and associated layout inside that theme. What I've done is create "app/View/Themed/Hamilton", and within that directory I've created, "View/Layouts/default.ctp". In…
David Cole
  • 41
  • 11
0
votes
1 answer

Cakephp slow-done on ovh

I observed a strange behavior when I deployed my CakePhp website on my ovh server (mutualized): Response time seem to be ok (I have the webpage I asked for in less than a minute), but the browser seems to load again something. Looking with the…
zelus
  • 143
  • 8
0
votes
1 answer

Controller can view related field, but does not display it in add or edit action

Hello CakePhp developers, CakePHP 2.5.2 I have a database with an Agreements table. It belongs to Adults, Children, Groups, Prices and Courses tables. My Controller has 3 actions: index, add and edit. The first one, index, works fine, displays…
tomas3man
  • 29
  • 7
0
votes
2 answers

Different strings in MySQL between localhost and production

I would need your help on this one because I can't find the solution myself: I have a project built on cakephp ver 2.5.1. I'm entering data into my database on localhost (MAMP on my macbook; VARCHAR 255 utf8_bin - string being saved: HP) and all…
J.T.
  • 135
  • 11
0
votes
1 answer

cakephp2.5.1 Redirected to {app_folder}/{app_folder} after "isAuthorized" returned false

I am trying to authorize users depending on the type of the users(i.e. student,admin,staff), and here is the code which I have written in AppController.php . public function isAuthorized($user = null) { // Any registered user can access public…
hitochan
  • 1,028
  • 18
  • 34
0
votes
0 answers

Modifying userModel is totally ignored in Cakephp

I've tried all the possible combination for modifying the default model for authentication in cakephp 2.5 actually my current appController is class AppController extends Controller { public $components = array( 'Session', 'Auth'…
asdf
  • 685
  • 7
  • 23
0
votes
1 answer

cakePHP submitting a form with ajax

I am submitting a form with ajax and I am trying to return a json response. The problem is I get back missing view. When I add autoResponder=false I get nothing at all. I am using cakephp 2.5 I have another action in the same controller which I can…
Keith Power
  • 13,891
  • 22
  • 66
  • 135
1 2 3
15
16