Welcome Guest, Not a member yet? Register   Sign In
Working with packages
#1

[eluser]Bramme[/eluser]
Hi guys

I'm working on some code in CI I'd like to reuse in the future. After reading the docs and finding out about "packages" (http://ellislab.com/codeigniter/user-gui...oader.html) I thought it'd be interesting to bundle my reusable code in a package, but I find the docs a little lacking here and came across some problems.

I put my libraries, config files, views, core/MY_Controller and default controllers in a folder in the third_party folder. I'm autoloading the package and the libraries are working, though I'm stumbling across some problems:

- I'm using Colin Williams' template library, but the config file isn't loading, neither are the views. I am not certain this is a CI or Template library problem.
- I got a 404 and had to put my default controller back in application/controller instead of application/third_party/app/controllers
- I'm overwriting CI_Controller with MY_Controller in application/core. I was hoping I could move this to the package as well, but no luck.

Are these problems that are easily fixable? Or am I trying to do something packages were not intended for?


Messages In This Thread
Working with packages - by El Forum - 02-29-2012, 04:06 AM
Working with packages - by El Forum - 03-15-2012, 09:11 PM
Working with packages - by El Forum - 06-14-2012, 08:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB