BUGFIX: Fixed test modeladmin

This commit is contained in:
Sam Minnee 2010-01-26 09:02:35 +00:00
parent ac78bf05a9
commit de6d375b6c
2 changed files with 4 additions and 12 deletions

View File

@ -1,11 +1,3 @@
<?php
// Set up TestModelAdmin
/*
Director::addRules(100, array(
'admin/test' => 'TestModelAdmin',
));
CMSMenu::add_menu_item('test', 'Test ModelAdmin', 'admin/test', 'TestModelAdmin');
*/
Object::add_extension('Member', 'FrameworkTestRole');

View File

@ -1,16 +1,16 @@
<?php
class TestModelAdmin extends ModelAdmin {
static $url_segment = 'test';
static $menu_title = 'Test MdAdm';
public static $managed_models = array(
"Client",
"Contact",
"Project",
"Developer",
);
function Link() {
return 'admin/test';
}
}
?>