Questions tagged [cakephp-2.2]

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

The release of CakePHP 2.2 beta was announced CakePHP official site on April 30, 2012.

Following hot on the heels of 2.1.0, the CakePHP 2.2.0-beta was launched directly as beta as the new features were expected to be relatively stable, and could be generally transparent when upgrading.

Main features added are:

  1. Timezone support for CakeTime utility.
  2. Support pagination for complex custom finders.
  3. ACL methods now part of Permission model.
  4. New Hash class.

The latest CakePHP 2.2.x stable version is 2.2.1 release was published on July 14, 2012.

Official site: cakephp.org

Documentation: book.cakephp.org

See also:

250 questions
0
votes
2 answers

CakeEmail Could Not Send Email

I need help guys. I can't get this working. Could you help me? Thanks in advance! config/email.php public $default = array( 'transport' => 'Mail', 'from' => 'sender@yahoo.com', 'charset' => 'utf-8', 'headerCharset' =>…
njay
  • 61
  • 5
0
votes
1 answer

Cakephp 2.2 without mod_rewrite redirecting wrong

I did all the settings to not use mod_rewrite Apache 2.2 and CakePHP. Apache2 is up and running and Cake seems to be running too. If I go http://127.0.0.1/cake/index.php, all green tags along (using PostgreSQL 9.1). I followed the tutorial to…
jose mey
  • 81
  • 1
  • 1
  • 8
0
votes
1 answer

add a newline character to an existence registry at CakePHP

I don't know if this question is so stupid but... How can i add a newline character to a database registry? I just want to add a new line character after the input that is shown to the user in the edit or add form. For example: //edit view echo…
Alvaro
  • 40,778
  • 30
  • 164
  • 336
0
votes
1 answer

CakePHP Star Rating

I am looking to implement a 5 star rating using jQuery Ajax in CakePHP. I came across a few plugins but they seem to be for 1.x version only. Has any one implemented the same in the 2.2 version of CakePHP Older…
Harsha M V
  • 54,075
  • 125
  • 354
  • 529
0
votes
2 answers

Modify returned array CakePHP 2.2

I was wondering if there's any simple way to modify and add a new index to a given array at CakePHP. Currently I'm doing a loop like this: $posts = $this->paginate('Post'); $a=0; foreach($posts as $post){ $posts[$a]['Read'] =…
Alvaro
  • 40,778
  • 30
  • 164
  • 336
0
votes
1 answer

cakephp how to group file data when upload multiple file

I use cakephp FormHelper to generate html form code. echo $this->Form->create('newGallery.', array('type'=>'file')); echo $this->Form->input('Photos',array( 'type' => 'file', 'label' => 'Photos (jpg,png,gif)', …
Toomtarm Kung
  • 594
  • 2
  • 7
  • 11
0
votes
1 answer

Paginator->sort using contain at CakePHP 2.2

I am using contain behavior and i want to be able to sort the data as always but I am having troubles. It might be because the columns i want to sort are not columns on the paginate table but on the contain tables. Subscriptions table only contains…
Alvaro
  • 40,778
  • 30
  • 164
  • 336
0
votes
2 answers

Baking in cakePHP 2 in windows 7

I am new to the cakePHP and first starting to bake so I face this problem when following a tutorial and do the following: Add paths to php and cakePHP Run the CMD and type "cake" and get the following message: Welcome to CakePHP v2.2.3…
Johhny P
  • 163
  • 1
  • 2
  • 9
0
votes
1 answer

Converting named parameters to GET parameters for pagination at CakePHP 2.2

I am trying to convert named parameters to GET parameters for pagination at CakePHP 2.2 following the instructions given in the documentation but it is not working. Instead of…
Alvaro
  • 40,778
  • 30
  • 164
  • 336
0
votes
1 answer

Losing data in hasAndBelongsToMany relation when updating record

I have a hasAndBelongsToMany relation between Post and User called "Subscriptions". (instead of posts_users) It contains the user_id and the post_id. I have it working but when i update a field of the Post model, then the record is deleted from the…
Alvaro
  • 40,778
  • 30
  • 164
  • 336
0
votes
1 answer

Getting data from a $hasAndBelongsToMany relation at CakePHP 2.2

I have 3 tables: - users - posts - Subscriptions (which should be by default posts_users (n-n)) The subscriptions table is the n-n table needed for this relation. I didnt want to call it "posts_users" as it is very confusing for my system because i…
Alvaro
  • 40,778
  • 30
  • 164
  • 336
0
votes
1 answer

Redirect without Auth Component

Is there a way to redirect in cakephp without using the Auth component? I don't have a database or a need for one so I do not have a users table to be able to instantiate the Auth component to use redirects. When I put a regular header redirect, it…
Tim Joyce
  • 4,487
  • 5
  • 34
  • 50
0
votes
1 answer

How to use haml - sass in CakePHP 2.2?

I am trying to follow step given in http://www.travisberry.com/2011/01/haml-sass-markdown-and-cakephp-oh-my/ this link, but it is supposed to be for cake 1.3. I have changed configurations according to cake 2.2. But still not able to use it…
0
votes
1 answer

Variables with set are not passed when using redirect method at CakePHP 2.2

Is there any way to pass variables to the view i am going to redirect the user? I noticed this doesn't work: $this->set('var', 'value') $this->redirect(array('controller' => 'example', 'action' => 'view', $this->request->data['Post']['id'])); The…
Alvaro
  • 40,778
  • 30
  • 164
  • 336
0
votes
1 answer

CakeDC Search Plugin producting duplicate conditions

So I'm using the (totally awesome) Cake DC Search plugin. Among other things, I want to have a 'min' and 'max' input, and search for records where 'amount' is within 'min' and 'max', if both are set, or greater-than/less-than min/max if only one is…
joshua.paling
  • 13,762
  • 4
  • 45
  • 60