inovat / CodeIgniter
- Source
- Commits
- Network (0)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
| name | age | message | |
|---|---|---|---|
| |
Controllers/ | ||
| |
Libraries/ | ||
| |
Models/ | ||
| |
README.markdown |
About
We sometimes find that we have built things at Inovat that may be helpful to other developers and we want to share them. This is where we release those libraries, models, controllers, etc. that we built for the CodeIgniter MVC Framework.
Note: These files are written for PHP5 and while they may work for PHP4, we make no guarantee that they will.
Note2: We use the default "MY_" prefix for subclasses, if you have changed the prefix in your config.php file, you will need to rename this file accordingly.
Current Files
- Libraries
- Picnik - A very simple library for the Picnik.com API
- MY_Exceptions - An extension of the core CI_Exceptions class.
- Models
- Views
- Controllers
Each file's functionality is documented below.
Picnik
Currently being refactored, information for the new version will be available when it is complete. The current version is commented in such a way that you should be able to get it working in a short amount of time.
MY_Exceptions
MY_Exceptions.php
The actual class that extends the existing base Exceptions class. This file must be placed in your applications libraries folder.
neat_errors() method

Neat Errors combines and removes duplicate PHP errors returned and presents them in a clean easy to read fashion (see image above) that you can place anywhere in your views. To specify where the new errors should appear simply place a <? MY_Exceptions::neat_errors(); ?> in your view (we recommend calling it just before your end BODY tag).
Note: You will only see errors that match your level of error reporting. We generally run our error reporting as E_ALL for development/beta purposes (it's also the only time we run Neat Errors).
MY_Exceptions.css
This is the CSS file that specifies the styling of the Neat Errors output. You will need to call it in your HTML file's HEAD area.

