Closed weierophinney closed 2 years ago
@alextech Don't forget the classes:
'view_helper_config' => [
'flashmessenger' => [
Zend\Mvc\Plugin\FlashMessenger\FlashMessenger::NAMESPACE_ERROR => [
'classes' => 'alert-box alert',
'message_open_format' => '<p%s>',
'message_close_string' => '</p>',
'message_separator_string' => '<br>',
],
// …
],
],
Originally posted by @froschdesign at https://github.com/zendframework/zend-mvc-plugin-flashmessenger/issues/11#issuecomment-271545859
Thank you, that would have been horrible oversight.
Originally posted by @alextech at https://github.com/zendframework/zend-mvc-plugin-flashmessenger/issues/11#issuecomment-271616037
Handled in #25
I would like to propose a feature (I can implement myself if useful) that allows to optionally specify additional keys in view helper configuration for templates per namespace. Currently, if even a single namespace needs to have different template, need to fully take out configuration and copy/paste all 5 namespaces in an html template. I think may help to match configuration with full capability of what renderer can do. If
flashmessenger
is one dimensional array, continue to apply that template to all namespaces. If some namespaces are listed, apply specified template and default template to unlisted.If this is useful, then I can do it. But since this is a view helper task, do not know procedure of writing against PR that is not going to be accepted for a while https://github.com/zendframework/zend-mvc-plugin-flashmessenger/pull/10, which ports the view helper from zend view to mvc plugin.
Originally posted by @alextech at https://github.com/zendframework/zend-mvc-plugin-flashmessenger/issues/11