Many thanks Grant, obviously changing the function to return $data in
stead of send it, worked. By the way I also think the best way could
be to use it in the app_controller but in that case, how I force
beforeFilter in app_controller to use the proper model?

Thanks again.

2007/3/6, Grant Cox <[EMAIL PROTECTED]>:
>
> Also, you may find better performance to have this controller
> functionality in your app_controller beforeFilter, rather than using a
> requestAction.  While this is messier in that it does not really
> separate your code properly, a requestAction is a fairly heavy
> function - as it runs through the entire cake pipeline again.
>
> Anyway, if the requestAction works and is fast enough, stick with it.
> If page load times are a problem for you, look at replacing
> requestActions first of all.
>
>
> >
>


-- 
--
Javier Ramírez Molina
UN Producto
Dirección I+D y Nuevos Productos
Ingeniería e Integración Avanzadas (Ingenia), S.A.
Parque Tecnológico de Andalucía
Tfno.: 34 952 029 300 (ext. 1409)
http://www.ingenia.es

La información transmitida en este mensaje está dirigida solamente a las
personas o entidades que figuran en el encabezamiento y puede contener
información confidencial, por lo que si usted lo recibiera por error, por
favor destrúyalo sin copiarlo, usarlo ni distribuirlo, comunicándolo
inmediatamente al emisor del mensaje.

The information transmitted in this message is only addressed to the persons
or institutions that appear in the heading and may contain confidential
information. If you receive it by error, please, destroy it without copying,
using nor distributing it, and communicate it immediately to the message
sender.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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