Re: showing data in a popup in aftersave()
You're getting server-side/client-side code confused. PHP code runs on
the web server, not on the visitor's web browser. It can't create pop-
up windows in the browser.
If you want to use PHP to generate JavaScript in the _view_ to pop up
a window, then you need to do that in the view, not in the model. The
model is only for reading/writing/manipulating your data.
On Jun 14, 12:03 pm, mivogt-LU <c...@mivogt.net> wrote:
> HI @ all,
>
> I would like to know if there is a way to settle some function inside
> my aftersave() (inside the modelcode) to open an popupwindow showing
> the modeldate in a printable format.
>
> I am thinking on something like
> function aftersave()
> {
> doPopupwindows($this->data)
>
> }
>
> and inside the popup
>
> echo $this->data->model->field;
>
> Any suggestions on this?
>
> Thanks
>
> Michael
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home