Hi, i'm following the
http://www.symfony-project.org/jobeet/1_4/Doctrine/en/19 but i'm getting a
problem after the "And create the corresponding action:"..when i go to see
the website i get this error:

> Oops! An Error Occurred
> The server returned a "500 Internal Server Error".


i will show my files:
# apps/frontend/config/routing.yml

# default rules
homepage:
  url:   /:sf_culture/ipoint
  param: { module: ipoint, action: index }
  requirements:
    sf_culture: (?:fr|en)

ipoint:
  url: /:sf_culture/ipoint
  param: { module: ipoint, action: index }
  requirements:
    sf_culture: (?:fr|en)

software:
  url: /:sf_culture/software
  param: { module: software, action: index }
  requirements:
    sf_culture: (?:fr|en)

noticias:
  url: /:sf_culture/noticias
  param: { module: noticias, action: index }
  requirements:
    sf_culture: (?:fr|en)

contacto:
  url: /:sf_culture/contacto
  param: { module: contacto, action: index }
  requirements:
    sf_culture: (?:fr|en)

# generic rules
# please, remove them by adding more specific rules
default_index:
  url:   /:sf_culture/:module
  param: { action: index }
  requirements:
    sf_culture: (?:fr|en)

default:
  url:   /:sf_culture/:module/:action/*
  requirements:
    sf_culture: (?:fr|en)

localized_homepage:
  url:   /:sf_culture
  param: { module: ipoint, action: index }
  requirements:
    sf_culture: (?:fr|en)

change_language:
  url:   /change_language
  param: { module: language, action: changeLanguage }
class ipointActions extends sfActions

#apps/frontend/modules/ipoint/actions/actions.class.php

{
        public function executeIndex(sfWebRequest $request)
        {
          if (!$request->getParameter('sf_culture'))
          {
                if ($this->getUser()->isFirstRequest())
                {
                  $culture = $request->getPreferredCulture(array('en', 'fr'));
                  $this->getUser()->setCulture($culture);
                  $this->getUser()->isFirstRequest(false);
                }
                else
                {
                  $culture = $this->getUser()->getCulture();
                }
                $this->redirect('@localized_homepage');
          }
        }
}

#apps/frontend/templates/layout.php

  <div id="body">
        <!-- Body start -->
                        <div class="content">
                                 <?php include_component('language',
'language') ?>
                                <?php echo $sf_content ?>
                        </div>
        <!-- Body end -->
  </div>

#apps/frontend/modules/language/actions/components.class.php

<?php

class languageComponents extends sfComponents
{
  public function executeLanguage(sfWebRequest $request)
  {
    $this->form = new sfFormLanguage(
      $this->getUser(),
      array('languages' => array('en', 'fr'))
    );
  }
}



#apps/frontend/modules/language/templates/_language.php

<form action="<?php echo url_for('@change_language') ?>">
  <?php echo $form ?><input type="submit" value="ok" />
</form>



#apps/frontend/modules/language/actions/actions.class.php

<?php
class languageActions extends sfActions
{
  public function executeChangeLanguage(sfWebRequest $request)
  {
    $form = new sfFormLanguage(
      $this->getUser(),
      array('languages' => array('en', 'fr'))
    );
    $form->process($request);
    return $this->redirect('@localized_homepage');
  }
}



Can you help me? what's wrong?

-- 
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 developers" 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-devs?hl=en

To unsubscribe from this group, send email to 
symfony-devs+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to