Hi all,

I want to change my url site...

I have http://mysite.com/posts/show?id=1234
I want to change to http://mysite.com/posts/some-title-name

I have looked the Zend site and I think that I have to do this:

$route = new Zend_Controller_Router_Route(
    'posts/:title',
    array(
        'controller' => 'posts',
        'action'     => 'show'
    )
);
$router->addRoute('postShow', $route);

I dont know how can i send the url and i dont know where i send and
get the post_id in the controller...

Am i doing something wrong?

Thanks,

Junior Grossi
[EMAIL PROTECTED]

Reply via email to