Re: internal redirect?

2006-05-15 Thread TheIdeaMan
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()) {

Re: internal redirect?

2006-05-12 Thread TheIdeaMan
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

internal redirect?

2006-05-04 Thread Dave
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

Re: internal redirect?

2006-05-04 Thread [EMAIL PROTECTED]
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

Re: internal redirect?

2006-05-04 Thread Armando Sosa
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