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

CakePHP does not insert linking Association for HABTM Relationship

I have got two Models in CakePHP 2.2.1: class Episode extends AppModel { public $hasAndBelongsToMany = array( 'Tags' => array('className' => 'Tag') ); } and class Tag extends AppModel { public $hasAndBelongsToMany = array( …
YMMD
  • 3,730
  • 2
  • 32
  • 43
0
votes
1 answer

auth session destroyed while working with firebug

I am using CakePHP - 2.1 Whenever I tried to work with firebug to trace ajax requests in the website, then suddenly my Auth Session destroyed. It is not sometime but always. To work with firebug, I just have to open the firebug before entering the…
Arun Jain
  • 5,476
  • 2
  • 31
  • 52
0
votes
1 answer

CakePHP magic findBy method for comparisons

We have plots and beans that can be planted into the plots. I am absolutely determined to use the following to find all plots the owner has, with a bean inside them. $plots = $this->Plot->findAllByOwnerAndBean_id(uid, '> 0'); However, it gives me…
Vael Victus
  • 3,966
  • 7
  • 34
  • 55
0
votes
3 answers

Input dates with text box

What's the standard way to get rid of the three control? Requirements include: Date format must be D/M/Y Existing dates must be printed correctly Cannot break…
Álvaro González
  • 142,137
  • 41
  • 261
  • 360
0
votes
1 answer

Paginator->sort() using joined model does not work

My models association chain: ArchitectPurchase belongsTo ArchitectProfile belongsTo User My action: $this->ArchitectPurchase->recursive = -1; $this->ArchitectPurchase->Behaviors->attach('Containable'); $this->paginate['joins'] =…
0
votes
1 answer

Cakephp HABTM join between plugin and core application

I'm having real issues doing a HABTM join between a model/table on a plugin and a model/table in my core application. Basically my core application has a model for Items, and my plugin has a model for Purchases. One purchase can be of many…
Oli Stockman
  • 322
  • 3
  • 10
0
votes
1 answer

dynamic drop down with cakephp and Jquery

Hi all want to generate a dynamic drop down for Cities , as per the selection of country in cakephp 2.2 app. I am quite new to cakephp.Moreover i hardly find any tutorial for they are mostly for 1.3 or 1.2 version. I am having Drop down menus for…
Diablo Geto
  • 457
  • 4
  • 21
0
votes
1 answer

dispatcher calls code from another app occasionally

We just upgraded some of our apps (from 1.3) to cakephp 2.2 and refactored the code. our basic server setup looks like htdocs/subdomain.domain/cakeapp1/... htdocs/subdomain.domain/cakeapp2/... sometimes we receive errors, which are due to the…
Johannes N.
  • 2,364
  • 3
  • 28
  • 45
0
votes
1 answer

jquery function working on jsfiddle but not on my site in cakephp

I have got stuck in a dump issue but am not able to work it out , I have a range selection of age through two select input buttons. I took the code from the mark up and it works on the fiddle but not on the page. I have tried putting the script on…
Diablo Geto
  • 457
  • 4
  • 21
0
votes
2 answers

Add image file using cakephp and mongodb

I'm new user on mongodb, I'm working with cakephp. I'm trying to test the cakephp's plugin from ichikaway. This plugin allow cakephp working with a mongodb (NoSql database). So, I'm wondering if someone have already tried to do an image upload with…
0
votes
1 answer

Call Component Constructor in Controller

I have written a component as below. class GoogleApiComponent extends Component { function __construct($approval_prompt) { $this->client = new apiClient(); $this->client->setApprovalPrompt(Configure::read('approvalPrompt')); …
Sanganabasu
  • 943
  • 7
  • 21
  • 39
0
votes
1 answer

How to set cookie in a CakePHP dispatcher filter?

In my application I need do some kind of "auto login" logic at the beginning of app work. In this "auto login" function I do many actions, and one of them - setting cookie, using CookieComponent. When I use this autoLogin in controller or component…
Vovkin
  • 436
  • 1
  • 5
  • 14
0
votes
2 answers

Generating an html link in CakePHP 2.2.1+?

How can I easily generate an HTML link, using the HtmlHelper class in CakePHP 2.2.1? Imagine I declared a route that routes /finest-perfumes-ever-2012 to the Perfumes/Index Controller/Action. I need this generated link to…
Only Bolivian Here
  • 35,719
  • 63
  • 161
  • 257
0
votes
1 answer

CakePHP - Customer has multiple Country fields. How do I link the Country model to Customer?

The countries table looks like this: iso | name -------------------------- AD | Andorra AE | United Arab Emirates AF | Afghanistan ...etc My customers table has the following fields which all store a country code: id | country_origin |…
BadHorsie
  • 14,135
  • 30
  • 117
  • 191
0
votes
2 answers

CakePHP - Best way to customise form action?

I have a search form, which uses a Search controller/model. echo $this->Form->create('Search', array('action' => 'query', 'type' => 'get')); ... echo $this->Form->end(); But by default the form submits to '/searches/query'. How do I get the URL…
BadHorsie
  • 14,135
  • 30
  • 117
  • 191
1 2 3
16
17