Hi All,
I have created a Simple tab in SS Admin below is the code
Days.php
<?php
class AddDays extends DataObject {
static $db = array(
'day_title' => 'Varchar(100)',
'day_date' => 'Date'
);
static $searchable_fields = array(
'day_title'
);
static $summary_fields = array(
'day_title',
'day_date',
);
}
?>
and for Admin
<?php
class DayAdmin extends ModelAdmin {
public static $managed_models = array(
'AddDays '
);
static $url_segment = 'daylocator';
static $menu_title = 'Add Days';
}
?>
fine upto this point I can add the Days from Admin as well but when i try to delete the data I got this warning message
Deprecated: Function ereg_replace() is deprecated in /sapphire/core/control/Director.php on line 494
Number of elements must be positive ......
EDIT:Forgot to mention I am a PHP beginner
Any Hints why is it behaving so
Thanks in Advance
K_T