Gonzalo, I gave up on the hidden tag method via submit as I figured
thru the API that the form element goes back thru the controller and
that would mean doing the filter functions again in function indexPdf

I tried to get a debug($this->data) in the view of index_php.thtml
working but it does not show up the page at all so i dont know what
really is happening or going wrong, it just whizzes back to the index
view.

To my desperation I got the print to  PDF working thru a link in the
view, here is what i put in the controller of
members_controller.php

function indexPdf($id = null) {
            $this->layout = 'pdf'; //this uses the pdf.thtml layout
            if(!$id)    {
                                $this->Session->setFlash('Invalid id for 
Member.');
                                $this->redirect('/members/edit');
                                        }
                                        $this->set('arr', 
$this->Member->read(null, $id));
            $this->render();
        }

in the index view where they filter for the name or ZIP in the file
index.thtml is where i made this link which allows them to get a pdf
copy of the data they searched for

<?php echo $html->link($html->image('pdf22.png'),'/members/
indexPdf/' . $name_array['Member']['id'],null,null,false)?>

and finally in the index_pdf.thtml i use the $arr which contains the
searched for data

There is one important thing though ... when there are multiple
records found the user has to go through each pdf icon for each
records pdf output, sad but true.

I'am at my thinking limits for now, for now i'll carry on with it like
this way, if somebody wants to make some more experiments I can
alwalys try them.

Thanks to all once again.
.Aniston


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