Helpers are not "controller functions".
Firstly, Helpers are classes, not functions. But in any case they do
not belong to the controller, they belong to the view. The controller
instructs the view which helpers to load, but the view does the actual
loading, and could ignore / override the "sugge
On Dec 17, 9:21 am, MrTufty <[EMAIL PROTECTED]> wrote:
> It looks like you haven't really studied the whole MVC, separation of
> concerns thing. You shouldn't be callingfunctionsin the model from
> theview. You shouldn't even be calling controller functions from the view.
So how do helpers fit in
Manuj,
I'm not going to fall back to the standard RTFM response here... but
seriously, you do need to read the manual. All the information you
need to do this is there.
Tufty
On Dec 18, 5:03 am, manuj bansal <[EMAIL PROTECTED]> wrote:
> thanks for the idea
>
> plz help me how to use request act
thanks for the idea
plz help me how to use request action in view for calling function in
app_controller
and app_controller to model
and my view file is default.ctp
because for calling request action i need controller name
and for calling function in app controller i need model name
On Dec 17,
It looks like you haven't really studied the whole MVC, separation of
concerns thing. You shouldn't be calling functions in the model from
the view. You shouldn't even be calling controller functions from the
view. In short, the controller queries the model and then sends the
information on to the
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 qu
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
> ***
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 fr