im using something like this:
$content=$this->requestAction('/something/preview/'.$id,array('return'));
and ofcourse its without layout
i need to get this view with layout wraper (to save it to db or static
file)
how to achive this?
maybe other way?
i can always do something like this but i prefer requestAction :
$socketConnection = fsockopen($domain, 80, $errno, $errstr,
$numberOfSeconds);
if (!$socketConnection) {
print ("<!-- Network error: $errstr ($errno) -->");
} // end if
else {
$xml = '';
fputs($socketConnection, "GET /$resourcePath
HTTP/1.0\r\nHost:
$domain\r\n\r\n");
while (!feof($socketConnection)) {
$xml .= fgets($socketConnection, 128);
} // end while
fclose($socketConnection);
} // end else
echo $xml ;
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---