Questions tagged [cakephp-1.2]

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

CakePHP is a rapid development MVC framework for PHP that provides an extensible architecture for developing, maintaining, and deploying applications.

Full information, downloads and more are available at the official CakePHP site.

See also:

315 questions
18
votes
5 answers

Good DB Migrations for CakePHP?

I have been trying a few migration scripts for CakePHP but I ran into problems with all of the in some form or another. Please advice me on a migration option for Cake that you use live and know works. I'd like the following "features": Support…
Martin Westin
  • 1,419
  • 1
  • 14
  • 25
17
votes
3 answers

Version numbers for CakePHP

I have inherited code from old contractors overseas. The cakephp version I see is: CakePHP v 0.2.9 Where does this fit in? Does it predate 1.0 or is this some 2.0 convention?
cdub
  • 24,555
  • 57
  • 174
  • 303
13
votes
12 answers

Using DISTINCT in a CakePHP find function

I am writing a CakePHP 1.2 app. I have a list of people that I want the user to be able to filter on different fields. For each filterable field, I have a drop down list. Choose the filter combination, click filter, and the page shows only the…
Frank Luke
  • 1,342
  • 3
  • 18
  • 33
11
votes
3 answers

CakePHP - Quick way to get /controller/action path?

Is there a Controller property that will allow me to get just /controller/action from the URL without any additional parameters there might be? At the moment I am having to join $this->name . '/' . $this->action.
BadHorsie
  • 14,135
  • 30
  • 117
  • 191
10
votes
3 answers

How to Master/Slave switch, load balancing in CakePHP

I need to implement master/slave/load balancing into an existing site. Does anyone use these (or other) implementations for master/slave switching? The resources I found on how to implement master/slave into Cake:. (preferable)…
9
votes
5 answers

How to Limit the paginate in cakephp

How to Limit the paginate in cakephp ? Assume that i have 400 records. I need to get only 25 records from 50th record to 75th record and need to display 5 records per page. How i can do this in paginate ? Sample Code: $this->paginate =…
AnNaMaLaI
  • 4,064
  • 11
  • 53
  • 93
9
votes
1 answer

CakePHP Auth Component Using 2 Tables

CakePHP Version 1.2.5 I would like a single user to have multiple email addresses. I would like a single user to have a single password. I would like users to log in using any of their multiple email addresses and their single password. I have…
BWelfel
  • 532
  • 6
  • 20
9
votes
2 answers

Getting randomly logged out when using ckeditor in cakephp 1.2

I have an old cakephp-1.2 application in production. This system has a screen where html content can be edited using ckeditor 3.2. The problem is that almost every time when I try to edit some html content I got logged out when submitting the form,…
Frederico Schardong
  • 1,946
  • 6
  • 38
  • 62
8
votes
3 answers

Names of HTML form naming conventions

In Rails and CakePHP1.2, forms tend to include input elements with names like the following: Is there a formal name for the notation used in the "name" attribute? Likewise, in CakePHP1.1 I do believe that the same…
8
votes
5 answers

CakePHP: Passing $this->data to the View from Controller

I'm using CakePHP 1.2 and I'm just wondering if there is any side affect on passing the $this->data to the View from the Controller. Ex: // inside PostsController, I have this code: $this->data['Posts'] = $this->Post->find('all'); instead of…
Kien Pham
  • 2,679
  • 2
  • 23
  • 23
7
votes
4 answers

How do I query data in CakePHP using HABTM relationships?

I'm working on a CakePHP 1.2 application. I have a model "User" defined with a few HABTM relationships with other tables through a join table. I'm now tasked with finding User information based on the data stored in one of these HABTM tables.…
Daniel
7
votes
1 answer

How to prevent controller and action from coming up in URL in cakephp?

I have one route that looks like this: Router::connect('/Album/:slug/:id',array('controller' => 'albums', 'action' => 'photo'),array('pass' => array('slug','id'),'id' => '[0-9]+')); and another like…
r0nny1l
  • 172
  • 1
  • 8
5
votes
4 answers

How to call Controller action in another controller in cakephp?

I want to use "getpoll" ,which is action of users controller ,in another controller(events controller). How can i use it? in advance thanks...to all...
chetanspeed511987
  • 1,995
  • 2
  • 22
  • 34
5
votes
9 answers

CakePHP: Action runs twice, for no good reason

I have a strange problem with my cake (cake_1.2.0.7296-rc2). My start()-action runs twice, under certain circumstances, even though only one request is made. The triggers seem to be : - loading an object like: $this->Questionnaire->read(null,…
tehstu
5
votes
3 answers

How to send a multiple emails at a time in cakephp

I need to send multiple emails at a time, can any one have example? or any idea ? I need to send mail to all my site users at a time (Mail content is same for all) Currently i using following code in a for loop $this->Email->from =…
AnNaMaLaI
  • 4,064
  • 11
  • 53
  • 93
1
2 3
20 21