cakephp-model
CakePHP - $this->data disappears before Model::save
I have a page for editing records of the Venue model in my app.This page was working at some stage, but is now broken.[详细]
2023-04-03 10:16 分类:问答Cakephp Find Problem
I have a deals table, with a field start date in the controller i am trying the below code and it is not returning any deal when there is deals with these conditions[详细]
2023-04-01 06:35 分类:问答CakePHP: Limit Fields associated with a model
I have several fields in some of my database tables that my CakePHP models never need to retrieve. Is there some way to set a default set of fields to fetch at the model level? For instance 开发者_开发[详细]
2023-03-31 23:14 分类:问答Does CakePHP support transactions over multiple models?
I\'m writing an application which supports multiple units of measurement.In the r开发者_如何学Care event a user wanted to change their system of measurement, I need to run a query which applies a mult[详细]
2023-03-31 19:23 分类:问答Bake Models - CakePHP - Ubuntu
I am currently trying to bake models for a project in CakePHP. I have set up my database tables and baked my skeleton project. I then execute the following via terminal:[详细]
2023-03-30 03:13 分类:问答Conditional afterFind based on prefix or page
I have a behavior with an afterFind function that I 开发者_运维百科only want called on a non-admin prefix.$this->params does not work, since $this is referencing the behavior.How can I make this behav[详细]
2023-03-28 07:31 分类:问答CakePHP beforeSave & HABTM
I\'m trying to write some beforeSave logic in CakePHP 2.0 beta. Basically I want the user to be able to submit some text for tag-like functionality. The beforeSave function would search a related tabl[详细]
2023-03-28 00:29 分类:问答CakePHP HABTM find all records that have associated records
I have a model - \"Category\" which HABTM \"Blog\".I need to create a query that will only select categories that have more zero blogs associated with them.I\'m having t开发者_高级运维rouble working o[详细]
2023-03-27 07:33 分类:问答Load model or $uses array which need to be used ? while we accessing other models
I have a users controllers, I need to use photos model on that users_controllers which can i use to access that model from the following and which is standard to use?[详细]
2023-03-26 13:33 分类:问答Best way to handle a form with password field in CakePHP 1.3?
I have a User controller and User model. This model and associated database table is used for authentication and naturally there\'s a password field.[详细]
2023-03-25 14:57 分类:问答