It looks like you are doing everything correctly so far. I am going to type
all the things you need to do to get this to work:

1. Did you create the _about_us.php file in static/templates?
2. Did you add the static page/content route in
apps/frontend/config/routing.yml (you may have to delete the default route)?

3. Do you have the include partial line in your indexSuccess.php file in
your static/templates folder?
4. If you have all these things clear your cache (./symfony cc) and if you
have apc or some other caching system running restart apache.

Good luck!

On Sat, Oct 16, 2010 at 2:31 PM, xpanshun <[email protected]> wrote:

> Hi all,
>
> I made the module for static pages (following the tutorial at
> http://trac.symfony-project.org/wiki/HowtoServeStaticContent). But it
> doesn't work. I do everything the tutorial says but when I try to
> browse the "about us" page I get a '404 not found error' page. What
> could be wrong?
>
> This is the default actions.class.php after creation of the module:
>
>
>      class staticActions extends sfActions
>      {
>       /**
>        * Executes index action
>        *
>        * @param sfRequest $request A request object
>        */
>        public function executeIndex(sfWebRequest $request)
>        {
>          $this->forward('default', 'module');
>        }
>      }
>
>
> Which honestly, I'm not sure what is going on inside the function :\
>
> The tutorial, however, shows this for actions.class.php:
>
>
>      class staticActions extends sfActions
>      {
>              public function executeIndex()
>              {
>                $this->content = $this->getRequestParameter('content');
>              }
>      }
>
>
> I'm highly confused as to what's going on and why the process isn't
> working for me. What should my actions.class.php look like? If you
> need any more info just let me know. Thanks in advance for the help!
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<symfony-users%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" 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/symfony-users?hl=en

Reply via email to