I\'ve written a simple display_messages()
function that will search Session::get(\'errors\')
for flash data and echo it to the screen.
Where do
As Usman suggested,
class Demo() {
inside it{{ Demo::display() }}
Works because libraries and models are autoloaded in start.php line 76. I believe that filenames must match Classnames (note capital).
print_r($message)
";
}
}
Can't quite figure out why I had a problem using the classname Common, there may be a conflict (you could define a namespace if this were important)...