Re: Controller:redirect to blank page
Wow! I didn't knew about whitespaces after ?>... Fixed. Thankyou =] On 8 jul, 21:26, "Jonathan Snook" <[EMAIL PROTECTED]> wrote: > Seems like there might be a page with some extra whitespace. Check to > make sure there's no files with extra space after the closing ?>. > > On Tue, Jul 8, 2008 at 6:29 PM, MauroEC04 <[EMAIL PROTECTED]> wrote: > > > Debug mode level 2 just show de mysql dump (with no errors) and a > > "Cannot set header information". --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: Controller:redirect to blank page
Debug mode level 2 just show de mysql dump (with no errors) and a "Cannot set header information". On 8 jul, 00:24, "Jonathan Snook" <[EMAIL PROTECTED]> wrote: > Do you get anything if debug mode is set to 2? any error messages? > > On Mon, Jul 7, 2008 at 10:25 PM, MauroEC04 <[EMAIL PROTECTED]> wrote: > > > Hello. > > > Just some hours ago, I've spent my time migrating from CakePHP 1.2 > > beta to RC2. > > > Now, I'm having troubles with de Controller::redirect() method. All > > methods from all controlers using $this->redirectare returning blank > > pages (except for the debugs messages, but none about why the blank > > pages). > > > A single example: > > > function template($id) { > > $_SESSION["Blog"]["template"] = "template" . $id; > > $this->redirect("/"); > > } > > > If I comment theredirectcall, Cake tries to render the template.ctp > > view. I think that prooves that's aredirect() fail. > > > Can somebody helps? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Controller:redirect to blank page
Hello. Just some hours ago, I've spent my time migrating from CakePHP 1.2 beta to RC2. Now, I'm having troubles with de Controller::redirect() method. All methods from all controlers using $this->redirect are returning blank pages (except for the debugs messages, but none about why the blank pages). A single example: function template($id) { $_SESSION["Blog"]["template"] = "template" . $id; $this->redirect("/"); } If I comment the redirect call, Cake tries to render the template.ctp view. I think that prooves that's a redirect() fail. Can somebody helps? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: Multiple views inside one Layout
In my opinion, a view is the visible mode of one controller... Showing more controllers in one page is responsability to layout, isn't it? Like, if I need to change the layout (what's going to appear and where in the page), I want to edit only the layout and none of views... That's because I want (and I need) to allow the web-art-designer not touching any web-programming file. But, anyway, thanks for the help. Mauro On May 9, 8:38 am, AD7six <[EMAIL PROTECTED]> wrote: > On 7 mayo, 22:06, MauroEC04 <[EMAIL PROTECTED]> wrote: > > > Hello people! > > > Well. I'm programming a extreme-large portal and using Cake. > > > I need to include several (about 6 to 8) views in a layout (including > > the 1st page). > > > I can't just use the requestAction() method in the view classes, it > > would be very complicated... > > Why not? > > See the info on the use of requestAction and elements listed > here:http://groups.google.com/group/cake-php/web/frequent-discussions > > hth, > > AD --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Multiple views inside one Layout
Hello people! Well. I'm programming a extreme-large portal and using Cake. I need to include several (about 6 to 8) views in a layout (including the 1st page). I can't just use the requestAction() method in the view classes, it would be very complicated... Is there some how? Thanks, Mauro --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---