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);
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
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
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
}
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
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