What is the way to manage UI messaging for PHP / jQuery -
i've been tasked setting user interface manage our success & error messaging our web application, has php/mysql backend. use lot of jquery on frontend.
currently messages in php array descriptive name key , message value. echo them out jquery message popup plugin through json. we've echo'd array out json_encode var make messages accessible through js files.
i contemplating throwing array db table columns like: 'id','editable'(boolean),'org_id'(int),'title'(varchar),'message'(varchar),'description'(varchar),'module_event'(varchar, value, maybe json), 'status'(bolean active/inactive)
, create array there.
the question: any packages exist? if not, please make suggestions based on info provided. thanks!
i'd suggestions of existing solutions or best way manage situation. love automate of if possible. these success & error messages things along lines of "this record has been saved", "username or password incorrect" etc.. (my manager, not programmer, wants ability review messages in web ui, see appear , under circumstances. wants ability create , edit these messages - understands programmer have implement or remove messages in codebase, , ok - ideas around point welcomed though). note: messages have tokens in them switch out, @@username@@.
also, 1 more point, wanted ability customer alter messages organization. that's thinking if message record flagged editable, create new record has org_id
of current org, , override global, have null
or empty value.
Comments
Post a Comment