Yii Framework Forum: problem with new menu setup - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

problem with new menu setup Rate Topic: -----

#1 User is offline   Readme 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 02-March 10

Posted 24 June 2010 - 08:09 PM

Recently updated to the new version 1.1.2. When a create a model & crud it uses the new menu setup and I get this error:

Thanks for any help. -RM


CException
Description

Property "Business_leadsController.menu" is not defined.
Source File

/var/www/roadtrip/yii-admin/protected/views/business_leads/admin.php(7)

00001: <?php
00002: $this->breadcrumbs=array(
00003:     'Business Leads'=>array('index'),
00004:     'Manage',
00005: );
00006: 
00007: $this->menu=array(
00008:     array('label'=>'List business_leads', 'url'=>array('index')),
00009:     array('label'=>'Create business_leads', 'url'=>array('create')),
00010: );
00011: 
00012: Yii::app()->clientScript->registerScript('search', "

0

#2 User is offline   Readme 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 02-March 10

Posted 24 June 2010 - 08:35 PM

looks like I just needed to add this to my protected/components/Controller.php

Things have changed a lot in the new cruds!


class Controller extends CController
{

	public $menu=array();


0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users