https://github.com/useallfive/ua5adminthemeplugin
https://github.com/useallfive/ua5adminthemeplugin
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/useallfive/ua5adminthemeplugin
- Owner: UseAllFive
- Created: 2013-08-26T22:56:38.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-09-30T21:26:52.000Z (over 12 years ago)
- Last Synced: 2024-12-20T07:07:38.465Z (over 1 year ago)
- Language: PHP
- Size: 1.09 MB
- Stars: 0
- Watchers: 27
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
*Login form feature*
settings.yml - use ua5GuardAuth instead sfGuardAuth
.......
all:
.settings:
login_module: ua5GuardAuth
login_action: signin
secure_module: ua5GuardAuth
secure_action: secure
enabled_modules: [default, ua5GuardAuth, sfGuardUser]
# Form security secret (CSRF protection)
csrf_secret: b2ad37b22dfa0e54e1965ffed0f76bd8d593b774
...........
Setup help index page in app.yml
all:
ua5_theme:
help_index: help/index
...........
Add to lib/filters/doctrine/BaseFormFilterDoctrine.class.php::setup()
$date_filter_template = <<from %from_date%
to %to_date%
EOF;
foreach ( $this->widgetSchema->getFields() as $key => $field ) {
if ( "sfWidgetFormFilterDate" == get_class($field) ) {
$field->setOption('template', $date_filter_template);
}
}