Cake is built on the MVC
(http://manual.cakephp.org/chapter/basic_concepts and
http://en.wikipedia.org/wiki/Model-view-controller )  development
paradigm, and the framework is designed to enforce those boundaries
between model / view and controllers.  You will be much happier
(living with cakephp) if you try to rethink your task within the MVC
design constraints.



On Dec 16, 2007 8:32 PM, manuj bansal <[EMAIL PROTECTED]> wrote:
>
> 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;
> }
>
>
> ******************************************************default.ctp
> (code)************************************
>
> now how can i call this function by passing the argument $y and get
> the value $v
> <?php    ?>
>
> *****************************************************************************************
> thanks in advance
>
> >
>



-- 
(the old fart) the advice is free, the lack of crankiness will cost you

- its a fine line between a real question and an idiot

http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/

--~--~---------~--~----~------------~-------~--~----~
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