hi all, i'm using Sf 1.4.3 and i'm fighting with something that worked
on a sf 1.2 project.

Turns out that i create the test action:

public function executeListTrasladar(sfWebRequest $request) {
        $this->redirect("http://www.google.com";);
    }

then, in the generator i write this:

# apps/gestion/modules/poa_propuesto/config/generator.yml
config:
  list:
    actions:
      trasladar:  ~

however, when i click that action in browser, this error shows up:

**********************************************************************************
404 | Not Found | sfError404Exception
Action "poa_propuesto/action" does not exist.
stack trace

    * at ()
      in SF_ROOT_DIR/lib/vendor/symfony/lib/controller/
sfController.class.php line 192 ...
             189.         $this->dispatcher->notify(new sfEvent($this,
'application.log', array(sprintf('Action "%s/%s" does not exist',
$moduleName, $actionName))));
             190.       }
             191.
             192.       throw new sfError404Exception(sprintf('Action
"%s/%s" does not exist.', $moduleName, $actionName));
             193.     }
             194.
             195.     // create an instance of the action
    * at sfController->forward('poa_propuesto', 'action')
      in SF_ROOT_DIR/lib/vendor/symfony/lib/controller/
sfFrontWebController.class.php line 48 ...
              45.       }
              46.
              47.       // make the first request
              48.       $this->forward($moduleName, $actionName);
              49.     }
              50.     catch (sfException $e)
              51.     {
    * at sfFrontWebController->dispatch()
      in SF_ROOT_DIR/lib/vendor/symfony/lib/util/sfContext.class.php
line 170 ...
             167.    */
             168.   public function dispatch()
             169.   {
             170.     $this->getController()->dispatch();
             171.   }
             172.
             173.   /**
    * at sfContext->dispatch()
      in SF_ROOT_DIR/web/gestion_dev.php line 13 ...

**********************************************************************************

On the other hand, if i modify the generator this way:

# apps/gestion/modules/poa_propuesto/config/generator.yml
config:
  list:
    object_actions:
      trasladar:  ~

then the redirection (specified in executeTrasladar action) works
perfectly


In Sf 1.2 any of the two ways work (actions or object_actions),
assuming there's an executeAction in actions.class.php, even the
jobeet for sf 1.4, day 12, gives an example with
"deleteNeverActivated" action wich is the same i did to Trasladar
action...

any ideas to overcome my problem?

Thanks in advance

-- 
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