ok... does anyone know why the following the the router are being
deprecated?
00503 /**
00504 * Deprecated
00505 *
00506 */
00507 $_this->connect('/bare/:controller/:action/*',
array('bare' => '1'));
00508 $_this->connect('/ajax/:controller/:action/*',
array('bare' => '1'));
I had to mod the ajax one to:
00508 $_this->connect('/ajax/:controller/:action/*',
array('bare' => '1', 'ajax' => '1'));
So that I could mod the sessionComponent to start the session if it
was a ajax call.
sessionComponent...
lines 79 - 86:
function initialize(&$controller) {
if (isset($controller->params['bare'])) {
$this->__bare = $controller->params['bare'];
}
if (isset($controller->params['ajax'])) {
$this->__ajax = $controller->params['ajax'];
}
}
lines 298 - 312:
function __start(){
print_r($this->__webservice);
if ($this->__started === false) {
//if ($this->__bare === 0) {
if ($this->__bare === 0 || ($this->__ajax == 1 &&
$this->__bare ===
1)) {
if (!$this->id() && parent::start()) {
$this->__started = true;
parent::_checkValid();
} else {
$this->__started = parent::start();
}
}
}
return $this->__started;
}
What are webserivce ones becoming and will session state be
maintainable with webservices and ajax?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---