By the way thnks for the responseActually what I want to do is the
HasOne relationship, the problem is that I can't implement it. The
problem is like this
I have a users table:
id integer auto increment primary
firstname varchar(45)
lastname varchar(45)
also I have a userinformations table
I use this same concept but my userinformation is called profiles.
just what i like but here is how mine our set up:
users_controller.php:
class UsersController extends AppController {
var $name = 'Users';
var $scaffold;
}
user.php:
class User extends AppModel {
var
hi guys,
I just would like to ask about creating tables. I have read a book
Apress Beginning CakePHP in chapter 2 it says there that
Giving each record a unique id value is essential for Cake to
function without trouble.
This application is simple, so you may be able to get by without
In this case you'll have to tell Cake what the primary key is:
http://book.cakephp.org/view/437/primaryKey
Why would you want to name it this way though? An id column in the
Category table is obviously going to be the Category.id.
Category.category_id seems pretty redundant to me, and in