Oh, thank you!

On Sep 15, 7:34 pm, Tilen Majerle <[email protected]> wrote:
> emm...manual is in core.php before
> {{{
>
> Configure::write("debug", 0);
>
> }}}
>
> --
> Tilen Majerlehttp://majerle.eu
>
> 2010/9/15 psybear83 <[email protected]>
>
> > Thank you! Where is the manual you mention? I'm sorry, I don't really
> > understand what manual you exactly mean...
>
> > On Sep 15, 4:27 pm, Tilen Majerle <[email protected]> wrote:
> > > You need to set debug to 0 in APP/config/core.php ... look manual at this
> > > file about debug... :D
>
> > > --
> > > Tilen Majerlehttp://majerle.eu
>
> > > 2010/9/15 psybear83 <[email protected]>
>
> > > > Hi everybody
>
> > > > I have  baked CRUD for my Users controller, but it seems that the
> > > > generated code is buggy...?!
>
> > > > As to my understanding, $this->flash(...) should redirect to the page
> > > > specified in the supplied 2nd argument.
>
> > > > But whether my add nor my edit actions redirect - they just show a
> > > > blank page with the flash message, and that's it!
>
> > > > Here's the code for the edit action (I generated everything, nothing
> > > > edited):
>
> > > >        function edit($id = null) {
> > > >                if (!$id && empty($this->data)) {
> > > >                        $this->flash(__('Invalid User', true),
> > > > array('action' => 'index'));
> > > >                }
> > > >                if (!empty($this->data)) {
> > > >                        if ($this->User->save($this->data)) {
> > > >                                $this->flash(__('The User has been
> > saved.',
> > > > true), array('action'
> > > > => 'index'));
> > > >                        } else {
> > > >                        }
> > > >                }
> > > >                if (empty($this->data)) {
> > > >                        $this->data = $this->User->read(null, $id);
> > > >                }
> > > >        }
>
> > > > I've played around a bit... at least $this->redirect works.
>
> > > >  function asdf() {
> > > >    $this->flash('blah', array('action' => 'index')); // Does not work
> > > >    $this->redirect(array('action' => 'index')); // Does work
> > > >  }
>
> > > > Anyone got an idea, what's wrong here? I'm using CakePHP 1.2.8.
>
> > > > Thanks,
> > > > Josh
>
> > > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp
> > others
> > > > with their CakePHP related questions.
>
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "CakePHP" group.
> > > > To post to this group, send email to [email protected]
> > > > To unsubscribe from this group, send email to
> > > > [email protected]<cake-php%[email protected]>
> > <cake-php%[email protected]<cake-php%[email protected]>>For
> > more options, visit this group at
> > > >http://groups.google.com/group/cake-php?hl=en
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> > with their CakePHP related questions.
>
> > You received this message because you are subscribed to the Google Groups
> > "CakePHP" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]<cake-php%[email protected]>For
> >  more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" 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

Reply via email to