Title: Cakephp AppError file under Lib folder not getting included
Tags: php;cakephp
Question: I am using cakephp 2.2

I have created a class AppError under app/Lib folder.
when i am including it under bootstrap file I am not able to use its function. 
It seem it is not included 

I used
App181a:6c1c:918f:f3a4:2e8c:61d6:1a08:6b16uses('AppError','Lib')

Any help will b appreciated


Here is the accepted answer: App/lib directory is mostly used to override all the core functionality of cakePHP (refer here), you can create a component and use it in your case.

Thanks :)

Comment for this answer: Thanks for the reply.... It is working fine now... It was included but not showing any effect.... After doing changes in core.php it start working


{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2013:00:06/19/13', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<php><cakephp>', 'Title': 'Cakephp AppError file under Lib folder not getting included', 'ViewCount': 93, 'id': 17188323, 'user_AboutMe': '', 'user_AccountId': 2869919.0, 'user_DisplayName': 'Pankaj S', 'user_Reputation': 63.0, 'user_Views': 13.0, 'user_id': 2463495.0}}