Welcome Guest, Not a member yet? Register   Sign In
Application Design (new to CI)
#9

[eluser]crumpet[/eluser]
[quote author="Richard Rowe" date="1229149906"]
Few questions though, what is the difference between a model and a library? Are models my functions that I plan on re-using over and over again, or is that the library?
[/quote]
Model is designed specifically to interact with a database. So for oyur jobs table you have a jobs model which as functions like get() and save()

libraries can be used for anything really. they basically let you add functionality. Most 'plguins' you find on this website are libraries . They should be application independant which means you can put them on any app you are doing.

[quote author="Richard Rowe" date="1229149906"]
Oh, and something else I just thought of. When I'm loading style sheets, javascript documents, etc... where do I put them? In views/js, views/css?
[/quote]
no these go outside of the application in css and js
/application
/views
/system
/css
/js

[quote author="Richard Rowe" date="1229149906"]
I'm still quite unsure how I get controllers in /admin/ folder to work correctly. For example if my URL was /admin/jobs/edit/5, jobs would be the controller in /admin/ folder. But wouldn't CI think admin is the controller, jobs is the function, and edit and 5 is just get data?
[/quote]
don't think so..


Messages In This Thread
Application Design (new to CI) - by El Forum - 12-12-2008, 02:53 PM
Application Design (new to CI) - by El Forum - 12-12-2008, 05:29 PM
Application Design (new to CI) - by El Forum - 12-12-2008, 05:34 PM
Application Design (new to CI) - by El Forum - 12-12-2008, 05:51 PM
Application Design (new to CI) - by El Forum - 12-12-2008, 06:03 PM
Application Design (new to CI) - by El Forum - 12-12-2008, 06:20 PM
Application Design (new to CI) - by El Forum - 12-12-2008, 06:31 PM
Application Design (new to CI) - by El Forum - 12-12-2008, 07:05 PM
Application Design (new to CI) - by El Forum - 12-12-2008, 07:08 PM
Application Design (new to CI) - by El Forum - 12-12-2008, 10:53 PM
Application Design (new to CI) - by El Forum - 12-13-2008, 07:08 AM
Application Design (new to CI) - by El Forum - 12-13-2008, 01:38 PM
Application Design (new to CI) - by El Forum - 12-14-2008, 12:49 PM
Application Design (new to CI) - by El Forum - 12-14-2008, 02:50 PM
Application Design (new to CI) - by El Forum - 12-14-2008, 04:08 PM
Application Design (new to CI) - by El Forum - 08-21-2009, 11:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB