I have installed SF1.2 beta release and followed Fabien's post at :
http://www.symfony-project.org/blog/2008/10/31/new-in-symfony-1-2-the-admin-generator.

I ran into the following problems :

* First, I got to rename route to singular name (i.e. article instead
of articles). Otherwise Sf tells me module articles and action Index
do not exist.
* Than I created the __tostring method for article, tag, category and
author table.

Then I called the category/index => works fine (I can see categories I
uploaded in the database)

But :

* when I click on new, I get the create category form. When I save, it
goes back to the index but does not save the category. I looked at the
HTML and I am surprised to see the form looks like :

<div class="sf_admin_form">
  <form method="post" action="/backplan_dev.php/category">
  .........
</div>

Shoudn' the action be : /backplan_dev.php/category/create ????


* when I tried to edit a category, It goes to : 
http://.../backplan_dev.php/subcategory/1/edit
and give the following error :

404 | Not Found | sfError404Exception
Action "category/1" does not exist.
stack trace

    * at ()
      in SF_SYMFONY_LIB_DIR\controller\sfController.class.php line
202 ...
             199.         $this->dispatcher->notify(new sfEvent($this,
'application.log', array(sprintf('Action "%s/%s" does not exist',
$moduleName, $actionName))));
             200.       }
             201.
             202.       throw new sfError404Exception(sprintf('Action
"%s/%s" does not exist.', $moduleName, $actionName));
             203.     }
             204.
             205.     // create an instance of the action
    * at sfController->forward('category', '1')
      in SF_SYMFONY_LIB_DIR\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_SYMFONY_LIB_DIR\util\sfContext.class.php line 159 ...
             156.    */
             157.   public function dispatch()
             158.   {
             159.     $this->getController()->dispatch();
             160.   }
             161.
             162.   /**
    * at sfContext->dispatch()
      in SF_ROOT_DIR\web\backplan_dev.php line 13 ...

=> I am suprised about these routing issue and I am wondering if it is
not due to my platform. I am using XAMPP and I have enable the
mod_rewrite options. Does this routing system requires rewriting
enable or not ?

Thanks for help. This beta release looks very promising.

Fredlab.

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