app_controller::redirect() version 0.2:
This one gives more consistent return--not sure what the problem was
before. 0.1 technically shouldn't have worked at all
Here's 0.2:
code type=php
function redirect($url, $status = null)
{
if ($this-RequestHandler-isAjax()) {
I've run into the same problem. The closest thing I've found is the
requestAction() function of the Controller object (I'm using 1.0).
Trouble is, requestAction() doesn't seem to load the JavaScript which
is problematic if you're doing AJAX.
Ideally, the Controller::redirect() method would
Is there a way to do an internal redirect? In other words:
Controller-redirect() redirects via the browser, sending a redirect
page down from which the browser requests the redirect destination.
What I'd like to do is switch from one action to another before
anything gets sent down to the browser
I think this could get out of control quickly and be very hard to
debug. Pages coming up from other methods but listed in the browser
under another method. Could get very confusing and no real way to
debug. If you used AJAX at least you could have a program to capture
the XMLHTTPRequests.
I
maybe just calling the action?$this-action()or using controller::setAction()On 5/4/06, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
I think this could get out of control quickly and be very hard todebug.Pages coming up from other methods but listed in the browserunder another method.Could get very