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
1
vote
1 answer

SaveMany for update multiple records at a same time in cakePHP not working

I am facing problem with updating multiple record at a same time with saveMany, I have association like: Candidates hasMany CandidatesEmployer CandidatesEmployer belongsTo Candidates Model associations in Candidate.php: public $hasMany = array( …
Iglance3
  • 105
  • 1
  • 11
1
vote
2 answers

Cakephp Form is not getting submiited but giving Notice (8): Array to string Coversion, many other Warnings (2)

I am having trouble submitting/saving data to the CakePHP Model. I constructed the form as usual as I always do, but this time I am getting notices and warning an also data is not getting saved. Here is the form I have constructed and method in…
Iglance3
  • 105
  • 1
  • 11
1
vote
2 answers

Cakephp Composite Primary Key

I am new in Cakephp. Please, how can I implement this logic in cakephp model knowing that cake doesn't accept composite key. I have 3 Tables. CREATE TABLE satelites( id INTEGER PRIMARY KEY, name TEXT, location TEXT); CREATE TABLE…
aagargoura
  • 396
  • 2
  • 6
  • 22
1
vote
1 answer

CakePHP query returns empty array where no record found in contained belognsTo model

We sell DNA tests where I need to link each OrderItem to Sample (via belongsTo association - OrderItem.sample_id). Code to retrieve OrderItem and associated model data: $data = $this->OrderItem->find('first', array( 'conditions' =>…
1
vote
1 answer

CakePhp Config.timezone gives me wrong time

If I use in core.php Configure::write('Config.timezone', 'Europe/Paris'); Time displayed will be 2 hour less than date_default_timezone_set('Europe/Paris'); Should I set something else in my core.php ? Thanks.
zeflex
  • 1,487
  • 1
  • 14
  • 29
1
vote
0 answers

Cakephp Caching using Xcache

I have an issue trying to use cacheengine with Xcache: When I use File Or Memcache, the cache engine works fine, it save datas and read them successfully from cache. When I try to use Xcache, it saves datas (Cache::Write() returns 1) but…
zeflex
  • 1,487
  • 1
  • 14
  • 29
1
vote
1 answer

DebugKit.ToolbarComponent could not be found

I followed the instruction in the README.md file in the directory DebugKit. But when I add this line I am getting this error above but when i comment out the line in the AppController then everything is ok and i'm getting "DebugKit plugin is…
Aex Sun
  • 337
  • 5
  • 13
1
vote
3 answers

dropdown checkbox list cakephp

Can we do something like image below on cakephp. If can, how to do it? I am struggle with it. I try to find any answers but can not found something like this. Any answers for this problem will be great appreciated.
Siemhong
  • 381
  • 1
  • 3
  • 19
1
vote
0 answers

Shop with discount system

I am writing shop system in CakePHP Framework. I am stuck on writing flexible discount system. I have Product model that can have many different attributes (ProductVariant Model and ProductAttribute model). ProductVariant is the part where there is…
Piotr
  • 671
  • 6
  • 17
1
vote
1 answer

CakePHP 2.5.2 Themeing and theme.ctp

I've created a simple application that is about to be vastly expanded upon and get a bit out of hand if I don't get the theme sorted out early as I need to start working with tinyMCE. I created my theme in app/View/Themed/Default and added the…
Chris Morris
  • 943
  • 2
  • 17
  • 41
1
vote
1 answer

The correct way to set CakePHP base URL

My CakePHP site resides at http://localhost/somepath/. How should I set up CakePHP so that everything works? I tried adding add the line RewriteBase /somepath/ to .htaccess and app/webroot/.htaccess. There's no other way I can make URL rewriting…
ondra.cifka
  • 755
  • 1
  • 9
  • 17
1
vote
1 answer

CakePHP containable HABTM limit

According to the second sentence on the Containable Behavior section of the Cookbook, contain() supports the limit clause. A new addition to the CakePHP 1.2 core is the ContainableBehavior. This model behavior allows you to filter and limit model…
user2511309
  • 309
  • 3
  • 18
1
vote
1 answer

cakephp find associated models of associated model

I am calling a find on a model called Book which is associated with a model Page(book_id) However Page is associated with a model called Asset(page_id). I would like to get the array with all three models Book Page1 Asset1 …
Keith Power
  • 13,891
  • 22
  • 66
  • 135
1
vote
2 answers

Cakephp 2.5x password hashing. Security class or SimplePasswordHasher?

I am looking for option where I can encrypt an application password which is unique to that app. Example, the same database won't work if the salt changes Security.salt of an app is usually unique. This link shows an example of new…
Keval Domadia
  • 4,768
  • 1
  • 37
  • 64
1
vote
2 answers

Setting up a CakePHP test database by using app/Config/Schema/schema.php

I'm setting up self-hosted continuous integration using buildbox.io. I need to create the tables and columns in my test database. On my own computer, I've been using public $import = 'MyTable'; for every fixture, to copy the table defenitions from…
joshua.paling
  • 13,762
  • 4
  • 45
  • 60