Hello,

I've developed on localhost some code and now I transferred it to web
server and only trouble I have is:

On the page http://www.example.com/tax_classes/edit/7

I use:
$html->link(__('back to list of tax classes', true),
array('controller' => 'tax_classes', 'action'=>'index'));

and it generate the target url 
http://www.example.com/tax_classes/edit/tax_classes
instead of http://www.example.com/tax_classes

And I noticed it on $this->redirect();

I have a controller and a method

class CategoriesController extends AppController {

        var $name = 'Categories';
        var $helpers = array('Html', 'Form' );

        function index() {
                $this->redirect('/categories/view/5', null, true);
        }
}

when I visit http://www.example.com/categories it redirects to
http://www.example.com/categories/view/5
but when i point a browser to http://www.example.com/categories/index
or http://www.example.com/categories/index/ it redirects to
http://www.example.com/categories/categories/view/5

Can somebody help me with this?
Thanks

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to