I have a problem with the "SaveAll" function in CakePC 1.2+:
I have 3 models Relationships that are A, B, C are:
A passerby B
B is A
B is to c
<This means that A, B, C is all relation 1-1
I have a form that contains all areas of A, B, C, to make it new Is A, B, C While saving, I can not create a new A, B, C with the SaveAll function, because SQL log does not generate the SaveAll function while checking the cake INSERT sql for model
Does this help me solve this problem?
index.ctp
& lt ;? Php echo $ form- & gt; Create ('Customer', array ('action' = & gt; 'customer / add')); Counterpart $ form-> Input ('customer name'); Counterpart $ form-> Radio ('Customer Reverend Dotement'); Counterpart $ form-> Radio ('customer raival.value'); ? & Gt; In the customers_controller.php file
class client controls AppController extended {var $ name = 'customer'; Function Index () {$ this- & gt; Layout = 'site'; If ($ empty- ($ --- data)) (if ($ this-> Customer- & gt; Savings All ($ this-> Data)) {$ this-> Session-> ; Set Flash ('Thanks for Response!');}}}} Customer = A Customer Review = B Customer Writing = C
Comments
Post a Comment