0
votes
1answer
33 views

CakePHP Error: Class 'appModel' not found

I have been working on the same CakePHP application for several months (no version migrations) and have recently run into an error that I can't seem to find any reason for its cause. The error message ...
0
votes
1answer
31 views

Joining two tables in CakePHP using bindModel method Cakephp

I am working on a cakephp 2.x .. I have two tables in my database both have the userid I am using bindModel.. my query is working fine ... I just have one problem .. I want to add the condition in ...
1
vote
1answer
29 views

Sequence call cake php 2 behavior callback function

I want to know how possible cakephp 2.3.6 execute behavior callback in sequence on one more behavior? for example, I have three behavior: CustomBehavior1 CustomBehavior2 CustomBehavior3 and they ...
1
vote
2answers
26 views

Defining global conditions in Model

Is it possible to define global conditions for Model ? I have 2 Models: User and Student. In database both of them are using table users but each student has set parent_id to its owner (which is set ...
0
votes
1answer
36 views

Virtual Fields and model aliases

I'm newbie in cakephp and a I have the next problem: Model: CostsCenter->Scholarship->ScholarshipsDetail 1. Virtual Field in Scholarship Model: public $virtualFields = array( 'code' => ...
0
votes
1answer
34 views

CakePHP - Re-imported model and (i18n) translate with empty strings

The problem is that I import a model. App::import('Model', 'Carrier'); $this->Carrier = new Carrier; And I re-import and instacing this model later. Normally it would work as well. However, this ...
0
votes
1answer
50 views

Saving current view id 14 in /localhost/topp/events/view/14 to comments table field

Trying to save the current event id '14' in the url '/localhost/topp/events/view/14' to a event_id field in a comments table. I am using the add function in the comments controller and an 'add ...
0
votes
0answers
59 views

Adding a value to a table field in CakePHP 2.x

Iam trying to add the value '1' to int field 'profile_created' in mysql when I add/save a profile for a user, any ideas here? Thanks in advance. Add action: public function add() { if ...
2
votes
2answers
93 views

Making variables available to all controllers in CakePHP 2.x

I am using Cakephp 2.x and the CakeDC Users plugin. I am trying make variables *'editprofile' and 'profile_area_pic' available to all controllers by placing the below code in my AppController's ...
0
votes
0answers
131 views

Cakephp find returning null values for associated model

I have two models A and B. Relationships are defined as mentioned below. A hasOne B B belongsTo A Everything was working great till a few days back. In last couple of days something has changes and ...
-1
votes
1answer
58 views

cakephp friendship between users Linking models together

What I need: A facebook-like friendship system. User (A) sends a requests for a friendship with User (B) User (B) confirmes the request User (A) and User (B) are friends now My problem: I'm ...
0
votes
2answers
188 views

Error PDO Exception SQLSTATE[42000] when using CakeDC Users plugin

Iam using cakephp 2.2.1 and trying to use the cakedc users plugin, when I try to create a user I get the following error, can anyone give some tips or advice to resolve this error - I have loaded all ...
1
vote
1answer
382 views

Cakephp 2.x Admin Login not working,login redirect as well

I have done admin routing for my admin panel. Right now the url is localhost/app/admin. Now I have 2 Tables Admins and Users. I have created an url for the login localhost/app/admin/admins/login. ...
0
votes
1answer
39 views

How to write associated linking for a model?

Let's say I have a "users" table with a field called "user_type", for simple explanation if user_type is "C" this user is a clinic's owner, if user_type is "D" this user is a dentist. I would like ...
0
votes
1answer
317 views

Multiple image upload - Meio Upload

I am using the 'MeioUpload' plugin found here 'https://github.com/jrbasso/MeioUpload' and Cakephp 2.x. Currently using this for single image uploads, please can anyone give advice on how to handle ...

1 2 3 4
15 30 50 per page