how to create simple library |
[eluser]my9006ci[/eluser]
Hi, i have questions, 1. how to create a simple library? 2. how to used model, config, in my library? 3. how to used the library in my controller? please help me thanks
[eluser]pickupman[/eluser]
Simple...read the user guide. Naming conventions for libraries works the same for controllers and models, first letter capitalized, the rest lowercase. You can use any 3rd party php classes and rename to the right pattern, and you can use CI's syntax. In order to use CI syntax you need to declare the CI global instance. Code: class Your_class {
[eluser]mashary[/eluser]
wow this is very usefull, i can create my own now! thanks |
Welcome Guest, Not a member yet? Register Sign In |