Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7622921
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:34:34+00:00 2026-05-31T04:34:34+00:00

I am using cakephp 2.0 ACL with Auth components. My groups table contain 3

  • 0

I am using cakephp 2.0 ACL with Auth components.
My groups table contain 3 types admin, manager and user

I enabled the Routings in Core.php file

  Configure::write('Routing.prefixes', array('admin','manager','user'));

default.ctp file contains following line to link to products:

   $this -> Html -> link(__('Products'), array('controller' => 'products','action'  => index'));

when i logged in as admin the above link is http://www.example.com/admin/products/index
when i logged in as manager the above link is http://www.example.com/products/index
the group name “manager” is not appending before products

I need the following output when i logged in as manager

http://www.example.com/manager/products/index               
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T04:34:36+00:00Added an answer on May 31, 2026 at 4:34 am

    Try this line in the view:

    $this->Html->link(__('Products'), array('controller' => 'products','action'  => index','manager'=>true));
    

    As in, adding 'manager'=>true to the list of options passed to the HtmlHelper::link() method, or whichever prefix name you need in the URL (i.e. admin, manager…).

    To work out which prefix is currently used, you can use this snippet:

    $opts = Router::parse(Router::url(''));
    $prefix = $opts['prefix']; // Contains 'admin' or 'manager', etc.
    

    You can then pass $prefix=>true as an option the Html link method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In CakePHP, when you are using Acl/Auth, do you need to have Routing.prefixes enabled
I'm using CakePHP , CAS for Authentication and ACL for Authorization. If the user
I'm trying to create an XML sitemap using CakePHP, from a table which has
Using cakephp, I have a generic address table, which I want to link to
I am using cakephp auth Plugin . After login what happening is . The
I'm using CakePHP 2.0. I have 2 models/controllers (Category/Coupon): // File: Model/Coupon.php // Table
I'm using CakePHP's ACL component to manage permissions for my app. I have about
So I am making a small site using cakephp, and my ACL is set
I have set up Auth and ACL successfully on my cakePHP app. How, now
Using CakePHP (On PHP 5.2.6) I do a list query on a table which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.