Questions tagged [cakephp-1.3]

This tag relates to the 1.3.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.

Documentation for CakePHP 1.3.x

See also:

2092 questions
99
votes
6 answers

Set Response Status Code

I have an API call for which I need to be able to run some checks and potentially return various status codes. I don't need custom views or anything, I just need to return the proper code. If the user hasn't passed proper credentials, I need to…
Rob Wilkerson
  • 40,476
  • 42
  • 137
  • 192
61
votes
15 answers

Input value doesn't display. How is that possible?

This must be something utterly stupid that I've done or am doing, but I have an input with a value attribute that simply isn't being displayed:
Rob Wilkerson
  • 40,476
  • 42
  • 137
  • 192
38
votes
6 answers

TypeError: $(...).on is not a function

I am using jQuery litebox. After adding JS and CSS files I got this error TypeError: $(...).on is not a function at this line in js file "return $('body').on('click', 'a[rel^=lightbox],…
user1613870
  • 411
  • 1
  • 4
  • 5
35
votes
12 answers

404 Not Found The requested URL was not found on this server

I'm having small troubles and was wondering if someone can help me over the hump. I pulled a copy of a website down from Hostgator and I'm trying to set it up on my local machine using WAMP but, I keep getting an error when trying to access the…
SkillSet
  • 621
  • 2
  • 7
  • 15
27
votes
5 answers

CakePHP: best way to call an action of another controller with array as parameter?

In a controller, what is the most appropriate way to call the action of another controller and also pass an array as parameter? I know that you can use requestAction to call actions within other controllers. But is it possible to pass arrays as…
Vicer
  • 1,034
  • 5
  • 15
  • 22
26
votes
7 answers

How to eliminate php5 Strict standards errors?

After upgrading my PHP to 5.4.3 (WAMP server 2.2), my web app made in CakePHP 1.3, is showing the following errors in my index: Strict standards: Redefining already defined constructor for class Object in C:...\cake\cake\libs\object.php on line…
qxlab
  • 1,506
  • 4
  • 20
  • 48
21
votes
6 answers

How can I access a GET request in CAKEPHP?

How can I access a GET request in CAKEPHP ? If I am passing a variable in the url http://samplesite.com/page?key1=value1&key2=value2 Should I use $_GET or $this->params to get the values in controller? What is the standard in CAKEPHP ?
AnNaMaLaI
  • 4,064
  • 11
  • 53
  • 93
20
votes
4 answers

CakePHP Cookie/Session problems

I am having issues with my CakePHP application. This seems to be happenining only in IE, and only on certain computers. It is consistent on the computers where it is happening though. Issue one: User is logged in and on the page…
JD Isaacks
  • 56,088
  • 93
  • 276
  • 422
20
votes
9 answers

Cakephp - get user id in controller when using Auth

It seems like a two-step process to get this, $u = $this->Auth->user(); $uid = $u['User']['id']; Isn't there a variable set somewhere once a user is logged in?
Owen
  • 7,347
  • 12
  • 54
  • 73
17
votes
3 answers

How to get the field names of the table in CakePHP

I am a complete newbie in CakePHP. I want to read the field names of the table in the controller. I want the controller to list all the field names in the table. How do I do that?
Asim Zaidi
  • 27,016
  • 49
  • 132
  • 221
16
votes
4 answers

Cakephp Auth with multiple "Users" tables

I would like to know how to deal with only ONE authentification process and "users" in multiple tables. I have 4 Users table: users, admins, artists, teamadmins which all have specific fields, but I would like all of these users to be able to…
Nicolas
  • 2,754
  • 6
  • 26
  • 41
16
votes
7 answers

cakephp see the compiled SQL Query before execution

My query gets the timeout error on each run. Its a pagination with joins. I want to debug the SQL, but since I get a timeout, I can't see it. How can I see the compiled SQL Query before execution? Some cake code: $this -> paginate = array( …
yossi
  • 3,090
  • 7
  • 45
  • 65
15
votes
3 answers

use cakephp component inside a model

How do I use a component that I created in cakePHP inside one of my model classes? Is this possible? If so, please let me know how I can do so
user765368
  • 19,590
  • 27
  • 96
  • 167
15
votes
2 answers

cakephp one form, multiple models, not displaying one model's validation messages

I have a registration form and I am creating a record in both User and Identity tables (a user hasMany identities) the form looks like this Form->create('User');?>
Elwhis
  • 1,241
  • 2
  • 23
  • 45
15
votes
3 answers

Submitting current timestamp in CakePHP

What is the method to submit a current timestamp directly on an INSERT or an UPDATE? If I were running regular SQL, I would use the function NOW() for the specific SQL field on submission. How would I do that with…
macha
  • 153
  • 1
  • 1
  • 4
1
2 3
99 100