Re: controller calling an other controller with an array as parameter

2007-01-21 Thread Klaus Schwarzkopf
Hi wirsi, i used this in the messages_controller.php: $document= array('1', '/2007/01/01/filename.pdf', 'example'); foreach ($document as $i = $value) { $document[$i] = str_replace(/, _SLASH_, $value); } $serialized= serialize($document);

Re: controller calling an other controller with an array as parameter

2007-01-11 Thread [EMAIL PROTECTED]
hey ho try: $serializedscenes = serialize($scenesarray); $maplocations = $this-requestAction('locations/within/'.$m['x1'].'/'.$m['y1'].'/'.$m['x2'].'/'.$m['y2'].'/'.$serializedtypes.'/'.$serializedscenes); wirtsi On 8 Jan., 20:36, klaus1977 [EMAIL PROTECTED] wrote: Hi TJ Singleton, i know

Re: controller calling an other controller with an array as parameter

2007-01-08 Thread Klaus Schwarzkopf
Hi TJ Singleton, i know the function requestAction. I want to know, can i call this function with an array as parameter, like this: $document= array('1', '/2007/01/01/filename.pdf', 'example'); function saveDocument($document){ //do something with the $document array } Klaus Schwarzkopf

Re: controller calling an other controller with an array as parameter

2007-01-08 Thread klaus1977
Hi TJ Singleton, i know the function requestAction. But i want to know, can i call this function with an array as parameter from an other controller. $document= array('1', '/2007/01/01/filename.pdf', 'example'); function saveDocument($document){ //do something with the $document array }

controller calling an other controller with an array as parameter

2007-01-07 Thread [EMAIL PROTECTED]
I would like to save my date with this method: function saveDocument($document){ if ($this-Document-save($document)) { $this-flash('Das Dokument wurde gespeichert.','/documents/view/'.$this-Document-getLastInsertId()); } } but i don't know, how can i calling this method from

Re: controller calling an other controller with an array as parameter

2007-01-07 Thread TJSingleton
Try requestAction($url, $extra) From the Manual: This function calls a controller's action from any location and returns the rendered view. The $url is a Cake URL (/controllername/actionname/params). If the $extra array includes a 'return' key, AutoRender is automatically set to true for the