I want to use a class like constant in codignator 2.3 , can i make a library(class) for each controller or cofing (class- similar to cofig), because if i want to change any thing like message, then i change only in one file the whole controller messages will change .
Any body sugges me . that which one is better approach . 1- make config-file(load in config file) 2- make a class and load like a library
You should look into using the Language Class. Put your messages into an English language and then if you need to change them, you only edit the language file.