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 8451051
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:08:00+00:00 2026-06-10T11:08:00+00:00

public function actionCheckout() { echo Hello World!; } I just created this very simple

  • 0
public function actionCheckout()
{
     echo "Hello World!";
}

I just created this very simple code in the controller but when I try to browse it in my URL it shows me this error:

enter image description here

Even if i’m currently logged in as an Admin but still why can’t i access that very simple code.

I will post the accessRules that the CRUD generated, I don’t know if this are related to each other but when I try to delete this line, I can already access that page.

public function accessRules()
    {
        return array(
            array('allow',  // allow all users to perform 'index' and 'view' actions
                'actions'=>array('index','view'),
                'users'=>array('*'),
            ),
            array('allow', // allow authenticated user to perform 'create' and 'update' actions
                'actions'=>array('create','update'),
                'users'=>array('@'),
            ),
            array('allow', // allow admin user to perform 'admin' and 'delete' actions
                'actions'=>array('admin','delete'),
                'users'=>array('admin'),
            ),
            array('deny',  // deny all users
                'users'=>array('*'),
            ),
        );
    }

If you can see there’s no checkout being declared on that code so it won’t matter.

What do you think are/is the reason for that? Your help would be greatly appreciated and rewarded!

Thanks! 🙂

  • 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-06-10T11:08:01+00:00Added an answer on June 10, 2026 at 11:08 am

    If you have access rules in your controller, then you need to add this “checkout” action to those rules.

    You need to add ‘checkout’ to whichever level of access you require in your accessRules() function. If it is to be accessible to everyone, you’ll need:

            array('allow',  // allow all users to perform 'index' and 'view' actions
                'actions'=>array('index','view', 'checkout'),
                'users'=>array('*'),
            )
    

    Or for admin only access:

            array('allow',  // allow admin user access
                'actions'=>array('admin','delete','checkout'),
                'users'=>array('admin'),
            )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

public function index() { $this->redirect('/'); } I will just go insane soon... How can
public function create() { echo $this->equipment->getCatId() . <br/>; echo $this->equipment->getName() . <br/>; echo $this->equipment->getYear()
Here is my controller public function login() { $this->load->model('admin_model'); $access = $this->admin_model->check_login(); $data['content'] =
I have this code public function TalentBox(x:int, y:int, arg_color:int = 0xFFFFFF):void { this.graphics.beginFill(arg_color); this.graphics.lineStyle(1.0,
Consider this code: public function showActiveJobsAction($slug) { $em = $this->getDoctrine()->getEntityManager(); $category = $em->getRepository('JobeetBundle:Category')->findBySlug($slug); if
I have this code public function getList() { $array = array(); $r = mysql_query(
I have this code: public function getRecurringEventsByGrouped($grouped){ $query = SELECT * FROM `event` AS
public function receiveDomainNames($keyword) { try { $stmt = $this->_dbh->prepare(SELECT d.someField FROM domain d WHERE
The code: public function couts_complets($chantier,$ponderation=100){ function ponderation($n) { return($n*$ponderation/100); //this is line 86 }
Given this class: class Tacobell{ public function order_taco(){ echo 3 Tacos, thank you.; }

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.