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

CakePHP can not find webroot/css/js files

I just download via svn controle version a CakePHP 2.5.2 app to a test server . After database configuration, the app does not open the css files located at app/webroot dir (bootstrap, jquery, main.css). Is the some aditional config parameter ? I…
Ângelo Rigo
  • 2,039
  • 9
  • 38
  • 69
1
vote
1 answer

How do I prevent HTMLHelper::link() from adding keywords to the URL path? (CakePHP 2.5)

I have a common layout with a button for opening a specific page : Html->link('My cart', array('controller' => 'shop', 'action' => 'cart'), array('escape' => false)) ?> This link will redirect to a page /shop/cart . But if I'm in…
Ty Yt
  • 466
  • 2
  • 9
  • 25
1
vote
0 answers

EncryptPasswordPasswordHasher Class not found : cakephp custom password haser

I am trying to create a custom passwordHaser. I have create files like below. EncryptPasswordPasswordHasher.php App::uses('AbstractPasswordHasher', 'Controller/Component/Auth'); class EncryptPasswordPasswordHasher extends AbstractPasswordHasher { …
Rav's Patel
  • 743
  • 6
  • 22
1
vote
1 answer

CakePHP Form Error to add a class

Is there a way to test if a particular text field has an error so that i can add a Class to highlight the who text box
Form->label('name', 'Name:', array('class' => 'col-sm-2 control-label')); ?> …
Harsha M V
  • 54,075
  • 125
  • 354
  • 529
1
vote
1 answer

Omit majority of columns from tables in CakePHP schema

I have a legacy database linked to a CakePHP (2.5.3) application. The database has a LOT of columns in all of its tables, many of which are completely unused (for example in one table I only need 2 columns out of 80 blank ones), so as a result I…
Kez
  • 760
  • 5
  • 19
1
vote
0 answers

PHP __METHOD__ magic constant as default parameter value

I was using CakePHP 2.5, and wrote a timer to time CURL request.
Justin Moh
  • 1,450
  • 3
  • 14
  • 21
1
vote
1 answer

No result for mongodb query

I am using ichikaway mongodb plugin for cakephp. cakephp version is 2.5.1 ichikaway mongodb shell version 2.6.8. I use following simple find first code: $conditions['$and'] = array( array('User.username' => $this->Cookie->read('username')), …
Jimil Choksi
  • 351
  • 4
  • 9
1
vote
2 answers

Cakephp save() fails on one field

My code is: public function save_paypal_transaction() { if ($this->request->is('post')) { $this->loadModel('PaypalTransaction'); $fields = $this->request->data; if (!isset($fields['currency'])) { …
zeflex
  • 1,487
  • 1
  • 14
  • 29
1
vote
1 answer

List cakephp cache keys by prefix

Sometimes I need to write temporary keys using ids. For example: Cache::write('tsi_' . $tid, 1, '5m'); Is there a way to retrieve all keys by prefix (looking for tsi_xxxx) ? Using cakephp 2.5.3
zeflex
  • 1,487
  • 1
  • 14
  • 29
1
vote
1 answer

CakePHP - deleting data by associated key

I have a few tables that are joined through a distant relationship - for example: A.id = B.a_id, B.id = C.b_id, C.id = D.c_id And given A.id, I want to delete all the rows in D that are associated with A.id. Since Model::deleteAll() does not accept…
xiankai
  • 2,773
  • 3
  • 25
  • 31
1
vote
1 answer

Containable behavior only working when local

I'm having a very strange issue. I'm working with XAMPP on my local computer, and everything works perfect. But when I upload it to my server, suddenly ContainableBehavior stops recognizing associations. Cake's version: 2.5.6 Here's XAMPP's…
1
vote
0 answers

Cakephp one user getting other user's session

I am developing using CakePHP 2.5.6, and I am having an issue with users getting access to other users' info. When a user (let's say User1) registers and fills out some optional fields in their profile, and from the same IP another user (User2)…
Alice
  • 142
  • 3
  • 12
1
vote
0 answers

CakePHP isUnique when parent_id Matches

I have a table that is hierarchical and i want to say isUnique when the parent_id is the same. I want the below table entries to be possible: ID, Name, Description, Parent_id 1 , VLAN1, TEST , NULL 2 , VLAN2, TEST2 , NULL 3 ,…
Steven Marks
  • 704
  • 1
  • 6
  • 21
1
vote
2 answers

CakePHP - Can't Authenticate With Blowfish Algorithm

Having a bit of trouble getting cakephp to authenticate against a blowfish stored password. In AppController. Setup global compnents. User Model is CompaniesUser, which corresponds to a file on disk called CompaniesUser.php. Password Hasher is…
Squiggs.
  • 4,299
  • 6
  • 49
  • 89
1
vote
1 answer

Add error in to pdo_error.ctp

I want to add some errors in to pdo_error.ctp. What I exactly want to do? I have a form where I can insert values in to MySQL database, if I leave text or varchar input empty then its inserting in to database, but if I leave INT input empty, then I…
frantsium
  • 180
  • 3
  • 19