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 am not find way how to call function from app_model

On Dec 17, 10:58 am, Grant Cox <[EMAIL PROTECTED]> wrote:
> Please be more clear in your 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)***************************
>
> > function abc($y)
> > {
> >     $v = $this->query(using $y);
> >     return $v;}
>
> > *************************************default.ctp
> > (code)**********************************
>
> > i want to call above function frome here by passing some argument
>
> > ***************************************************************************-******************-
> >  Hide quoted text -
>
> - Show quoted text -

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to