21278 Posts in 5728 Topics by 2599 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 158 Views |
-
Admin Console issue

9 August 2012 at 2:07am Last edited: 9 August 2012 2:21am
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 beginnerAny Hints why is it behaving so
Thanks in Advance
K_T
| 158 Views | ||
|
Page:
1
|
Go to Top |

