creating a Yii calculator -
I'm new to Yii and MVC, and I'm still trying to extract things.
I'm trying to make a calculator in Yii, below is my file directory for my calculator module.
true, 'client option' = & Gt; array ('validateOnSubmit' = & gt; true; 'validate on chain' => true;))); ? & Gt; & Lt ;? Php echo $ form-> ErrorModer ($ Models); ? & Gt; & Lt; div class = "form-group" & gt; & Lt ;? Php echo $ form- & gt; Label x ($ model, 'value'); ? & Gt; & Lt ;? Php echo $ form-> TextField ($ model, 'value', array ('class' => form-control')); ? & Gt; & Lt; / Div & gt; & Lt; div class = "form-group" & gt; & Lt ;? Php echo $ form- & gt; Label x ($ model, 'downpayment'); ? & Gt; & Lt ;? Php echo $ form-> TextField ($ model, 'downpayment', array ('class' => form-control)); ? & Gt; & Lt; / Div & gt; & Lt; div class = "form-group" & gt; & Lt ;? Php echo CHtml :: submitButton ('Submit', array ('class' = & gt; 'BTN BTN-LG BTN-Primary BTN-Block')); ? & Gt; & Lt; / Div & gt; & Lt ;? Php $ this- & gt; Endvijet (); ? & Gt; & Lt; / Div & gt; & Lt ;! - form - & gt; & Lt ;? Php endif; ? & Gt; & Lt; / Div & gt;
In my model / calculatorform.fp folder, I have this By using AJAX, how do I get input from my debt-calculator.php and calculate it in the backend and return result to loan-calculator .php I know I can use javascript, but I do not want to share my calculation formula. Second, when I advance Use < / P> You can use it to send form data in your action, and then posting a few results back, you can experiment with javascript. Something like this should look like:
ajaxSubmitButton :
'function' (data) {// 'data' will be the production of the loan, clone operator} },)); ? & Gt;
Comments
Post a Comment