Yes you can. User sessions are not only for logged in users but are used per
user visiting your site. It just so happens that PHP's $_SESSION global is
handy to use for authenticating so thats what it has been used for
primarily.

On Thu, Apr 2, 2009 at 3:59 PM, dziobacz <aaabbbcccda...@gmail.com> wrote:

>
> Yes, yes, yes !! It works !! - I forgot about clear cache - thx Sid,
> second Sid, Dheeraj and Gareth xD
>
> Can I add an error communicate like that:
> $this->getUser()->setFlash('msg', 'horrible error');
> $this->forward404();
>
> and in error404Success.php:
> <?php
> if ($sf_user->hasFlash('wiad5')):
>    echo $sf_user->getFlash('wiad5')
> endif;
> ?>
>
> I ask because of "$this->getUser()->setFlash" and "$sf_user->getFlash"
> - names these words looks like these words were only for log in users,
> can I use it also for not log in users ? It works for not log in users
> but I would like to know it is really correct also for not log in
> users from you ? :) hehe ;)
>
>
> On 2 Kwi, 15:34, Gareth McCumskey <gmccums...@gmail.com> wrote:
> > Clear cache .. thats what has caused your problem. The autoloader hasn't
> > loaded your new classes and is still using looking for the symfony
> defaults
> > based on the cached autoloader file
> >
> > On Thu, Apr 2, 2009 at 3:30 PM, dziobacz <aaabbbcccda...@gmail.com>
> wrote:
> >
> > > I made apps\frontend\modules\default\templates\error404Success.php
> > > with code:
> > > ERROR !!!!
> >
> > > and apps\frontend\modules\default\actions\actions.class.php with code:
> > > <?php
> >
> > > class defaultActions extends sfActions
> > > {
> > >  public function executeError404(sfWebRequest $request)
> > >  {
> >
> > >  }
> > > }
> >
> > > But when I use: $this->forward404();  I still see symfony error page -
> > > why ??
> >
> > > On 2 Kwi, 15:08, Dheeraj Kumar Aggarwal <dheerajcom...@gmail.com>
> > > wrote:
> > > > hi
> >
> > > > simply copy the default directory into your modules directory
> > > > $sf_symfony_lib_dir/controller/default/
> > > > then customize them according to you
> >
> > > > for more info:
> > >http://www.symfony-project.org/book/1_1/17-Extending-Symfony
> >
> > > > On Thu, Apr 2, 2009 at 5:35 PM, Sid Ferreira <sid....@gmail.com>
> wrote:
> > > > > Create a module named default.there, you add the action error404
> and a
> > > > > template to it.
> > > > > It's DONE :D
> >
> > > > > On Thu, Apr 2, 2009 at 09:04, Sid Bachtiar <sid.bacht...@gmail.com
> >
> > > wrote:
> >
> > > > >> Error page? It's just like any other page on Symfony. You need to
> be
> > > > >> more specific.
> >
> > > > >> On Thu, Apr 2, 2009 at 2:35 AM, dziobacz <
> aaabbbcccda...@gmail.com>
> > > > >> wrote:
> >
> > > > >> > could somebody give me some tutorial or tell how I can create my
> own
> > > > >> > error page ?
> >
> > > > >> --
> > > > >> Blue Horn Ltd - System Development
> > > > >>http://bluehorn.co.nz
> >
> > > > > --
> > > > > Sidney G B Ferreira
> > > > > Desenvolvedor Web
> > > > > Cia2
> >
> > > > --
> > > > Regards,
> > > > Dheeraj
> >
> >
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to