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

  • Home
  • SEARCH
  • 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 6731669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:33:23+00:00 2026-05-26T10:33:23+00:00

Hi I am adding a dynamic sub menu for CakePHP and get this error:

  • 0

Hi I am adding a dynamic sub menu for CakePHP and get this error:

Notice (8): Undefined property: PagesController::$GamesRewiewTypes

I have created controller called rewiew_types_controller.php and it doesn’t work??

App_Controller.php:

        $rewiewTypes = $this->GamesRewiewTypes->find('all', array('conditions' => array('GamesRewiewTypes.menu_show' => 1), 'order' => 'GamesRewiewTypes.title ASC'));

    $rewiewTypes = Set::combine($rewiewTypes, '{n}.GamesRewiewTypes.title', array('/reviews/{0}', '{n}.GamesRewiewTypes.id'));



    $mainMenu = array(

        '3dreviews' => $rewiewTypes,
    );

Rewiews_Type_Controller.php:

class RewiewTypesController extends AppController {
var $name = 'rewiewTypes';
var $uses = array('GamesRewiewTypes');

Pages_Controller.php:

class PagesController extends AppController {
var $uses = array('Banner');

public function index() {
    $banners = $this->Banner->find('all', array('order' => 'position ASC'));
    $this->set('banners', $banners);
    /*
    pr ($banners);
    exit;
    */
}
  • 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-26T10:33:23+00:00Added an answer on May 26, 2026 at 10:33 am

    Replace $uses in your app_controller and pages_controller with

    var $uses = array('Banner','GamesRewiewTypes');
    

    that should do the trick

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

Sidebar

Related Questions

How would I go about adding a dynamic .......... to a restaurant menu in
I've got some dynamic created buttons in my GridView (adding them OnDataBound), but when
I have a problem with adding a dynamic style element with @import statements for
I have a panel, where my program is adding dynamic controls. Either I want
.NET 2 // dynamic textbox adding myTextBox = new TextBox(); this.Controls.Add(myTextBox); // ... some
I have a dynamic datatable, created from a database. I want to add a
I want to create a dynamic menu that will get it's items from a
I have a page to which I am adding a dynamic UpdatePanel with more
I'm using jquery, superfish to create a dynamic menu. But, I'm having trouble adding
I have created a New Dynamic Project under Eclipse Helios Version, where my JRE

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.