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
5
votes
2 answers

Using Oracle database with CakePHP 2.0

I have noticed there's no datasource for Oracle in CakePHP 2.0 for the moment, although it seems they are working on in it now: http://ask.cakephp.org/questions/view/any_news_about_oracle_datasource_with_cakephp_2_0 There are some people explaining…
Alvaro
  • 40,778
  • 30
  • 164
  • 336
5
votes
1 answer

CakePHP 2 Basic Auth Authentication

I am moving from CakePHP 1.3 to CakePHP 2.2.2 and want to use Basic Http authentication for a simple admin area. I am just not able to make it work and I am thinking that I understood something wrong in the documentation. From the documentation I…
Mark
  • 3,389
  • 2
  • 28
  • 52
5
votes
4 answers

CakePHP controller alias

I know there are a couple of other topics about this subject, but non of them seems to fit my needs. What I have example.com/log/ LogsController.php I have LogsController instead of LogController (plural) because CakePHP wants you to have…
Jelmer
  • 2,663
  • 2
  • 27
  • 45
4
votes
1 answer

Only half of page loading

I have an application (CakePHP 2.2) that worked fine up until lately, however all of a sudden it's started only delivering part of the page. The HTML for the page is truncated, however it doesn't always truncate at exactly the same place each time…
TobyG
  • 1,692
  • 3
  • 21
  • 36
4
votes
2 answers

cakephp form input with no name attribute

I am using CakePHP 2.2.4. I am using the Form Helper to create a form. I need to have a form input with no name attribute. Is this possible with the formhelper or should I just use HTML for creating this form? eg in HTML:
Softinio
  • 638
  • 1
  • 6
  • 19
4
votes
3 answers

How do I add a HABTM record in CakePHP?

I am new to CakePHP and have a fairly basic question. I have two tables : books and users. books and users have a habtm relationship. I have created the MVC for the above. Now when a user logs into the system, I want the user to be able to…
Ajay K
  • 354
  • 1
  • 4
  • 14
4
votes
3 answers

Best way to filter access to controller actions according to a specific client id

Using CakePHP 2.2, I am building an application in which each client has it's own "realm" of data and none of the other data is visible to them. For example, a client has his set of users, courses, contractors and jobs. Groups are shared among…
IanBussieres
  • 959
  • 13
  • 27
4
votes
2 answers

Error: SQLSTATE[42S02]: Base table or view not found

I am using CakePHP Version 2.2.3. Having imported my database into PHPMyAdmin, I went on to create my MVC sing CakePHP's bake console. This all went well, I declared my relationships etc... The problem occurs on creating the last 'view' (All the…
user860511
4
votes
1 answer

Namespaces in vendor files (CakePHP2.x and PHP5.4.3)

I want to use a css parser that uses namespaces. I put the files in vendors and app imported it. but the script itself does not seem to find its classes At the top of my class I import the file: App::import('Vendor', 'Sabberworm', array('file' =>…
mark
  • 21,691
  • 3
  • 49
  • 71
3
votes
1 answer

Cannot use 'Object as class name as it is reserved Cake 2.2.x

I'm having an issue trying to set up a testing copy of a site we have running, I have the files and applications installed under a Mint VM and when I point apache at the directory I get a 500 error and the following- [Thu Oct 25 15:09:39.714201…
James McGrath
  • 187
  • 1
  • 4
  • 15
3
votes
3 answers

CakePHP how to set a message from Model?

I'm trying to send a specific message from Model in beforeSave() method. Flash messages don't work. I could send this message from Controller and use some parameters but I don't this this best solution. Use of print isn't good either. So my question…
Sebastian Piskorski
  • 4,026
  • 3
  • 23
  • 29
3
votes
1 answer

CakePHP 2.2.3 FormHelper cannot set default meridian when using minute interval and default minute value

In my application, the following is expected to output the hour, minute, and meridian