What's the best way to overwrite the show_error() function in Common.php?
Dani 4,675 The Queen of DaniWeb Administrator Featured Poster Premium Member
Recommended Answers
Jump to PostThat's the best way to overwrite anything in a framework.
In CodeIgnitor just extend the base class and put it in the appropriate folder.
CodeIgnitor has empty Library , helper etc... folders. Simply extend the class you want and put it in those empty folders.
Jump to PostI found CI gave me even more bad habits as it didn't stick rigidly enough to MVC. The model is pretty much optional. That really messed me up when trying to figure out other frameworks like Yii and Symfony2 - well less said about S2 the better - my nose …
All 8 Replies

diafol
Banderson 29 Junior Poster in Training
cereal 1,524 Nearly a Senior Poster Featured Poster
Dani 4,675 The Queen of DaniWeb Administrator Featured Poster Premium Member
jkon 672 Posting Whiz in Training Featured Poster

diafol
Dani 4,675 The Queen of DaniWeb Administrator Featured Poster Premium Member

diafol
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.