Re: break the code for controller file

2008-04-02 Thread manuj bansal
I have tried it down by making simple php file (quality.php) and then add functions in quality.php from animals controller then i use include(quality.php) in animals controller but it doesn't work On Wed, Apr 2, 2008 at 4:12 PM, Adam Royle [EMAIL PROTECTED] wrote: Well, CakePHP is just regular

Re: want to call function in default ctp from app model

2007-12-17 Thread manuj bansal
requestAction. This will work, but it's not exactly best practice. Tufty On Dec 17, 6:07 am, manuj bansal [EMAIL PROTECTED] wrote: i know the metod of calling functions from controller and settinng variable but i have to call it fron view file i found 1 method requestAction but i

want to call function in default ctp from app model

2007-12-16 Thread manuj bansal
my code is as follows ***app_model.php (code)*** function abc($y) { $v = $this-query(using $y); return $v; } *default.ctp (code)** i want to call above function

how to call function from app model in view file

2007-12-16 Thread manuj bansal
I want to call function in view by passing argument and wanted a value in return ***app_model.php (code)** function abc ($y) { $v = $this-query(using $y in query); return $v; }

Re: want to call function in default ctp from app model

2007-12-16 Thread manuj bansal
question. You cannot call model functions from a view. You must call the model function from your controller, and set() the data for the view. On Dec 17, 3:09 pm, manuj bansal [EMAIL PROTECTED] wrote: my code is as follows ***app_model.php (code

Re: select box validation in CakaPHP 1.2

2007-10-20 Thread manuj bansal
thanks for info i am not sure about it as mannual, it looks they remove $html-submit but they didn't mention their about $form-submit will be depreceated On Oct 20, 12:50 pm, senser [EMAIL PROTECTED] wrote: Hi manuj. Your proposal didn't solve my problem. I think I did read somewhere in

Re: select box validation in CakaPHP 1.2

2007-10-20 Thread manuj bansal
your problem may be solved by this link http://groups.google.com/group/cake-php/browse_thread/thread/8c89ca42d68496a0/89e2724d53aaad65?lnk=gstq=select+box+validation#89e2724d53aaad65 On Oct 20, 12:50 pm, senser [EMAIL PROTECTED] wrote: Hi manuj. Your proposal didn't solve my problem. I

Re: select box validation in CakaPHP 1.2

2007-10-19 Thread manuj bansal
i didnt get your code you want select option then why r you going thru input function try it *view code echo $form-label('modelname.name') echo $form-select('modelname.name',array('value'='text')); echo $form-error('it can't be blank');

Re: want to update more than one fields in one query

2007-10-19 Thread manuj bansal
what you have vs what you want in complete English sentences. Wayne On 10/19/07, manuj bansal [EMAIL PROTECTED] wrote: i want to update and add more than one fields in one query in cakephp1.2 becuse it is running many queries at at time in one bye one thanks in advance- Hide quoted

Re: problem in validation due to loop in view file

2007-10-19 Thread manuj bansal
i am working in cakephp1.2 **Model Code*** my view code is like this $i=0; foreach($rows as row) { $i++ echo

want to update more than one fields in one query

2007-10-19 Thread manuj bansal
i want to update and add more than one fields in one query in cakephp1.2 becuse it is running many queries at at time in one bye one thanks in advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP

problem in validation due to loop in view file

2007-10-18 Thread manuj bansal
i am working in cakephp1.2 my view code is like this $i=0; foreach($rows as row) { $i++ echo $form-submit('Modelname.name'.$i,array('labe'='labelname','error'='length should be less than 20 characters')); } in my model code validation is like this var $validate = array(*'name*' =

Re: want cake php tutorial

2007-10-14 Thread manuj bansal
one is wel known www.manual.cakephp.org another is http://www.ibm.com/developerworks/opensource/edu/os-dw-os-php-cake1.html On Oct 14, 8:17 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: can some buddy give me good tutorial of cake php plz give me i am want to work with cake php an i don't