[英]No SQL Model in CakePHP
I'd like to create a Model as following: 我想创建一个模型,如下所示:
class User extends AppModel {
var $name = 'User';
var $useTable = false;
var $primaryKey = 'user_id';
var $hasOne = 'Profile';
}
but, the Model User is saved as No SQL. 但是,模型用户另存为No SQL。
How can I use that model? 如何使用该模型? BTW this model is readonly.
顺便说一句,此模型是只读的。 (EDIT/CREATE USER are done by another functions(no cake))
(编辑/创建用户由其他功能完成(没有蛋糕))
I'm assuming crypted cookie datastore 我假设加密的cookie数据存储
You can look at example on how to using MongoDb with CakePHP. 您可以查看有关如何在CakePHP中使用MongoDb的示例。 Read Mark Story's post about that in http://mark-story.com/posts/view/using-mongodb-with-cakephp .
在http://mark-story.com/posts/view/using-mongodb-with-cakephp中阅读有关Mark Story的文章。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.