?
Solved

How does CodeIgniter work

Posted on 2014-03-07
3
Medium Priority
?
480 Views
Last Modified: 2014-03-07
Hello,

I have been working at employing CI to help me write better PHP/HTML/JavaScript applications but there is something that is eluding me and I haven't yet got a handle on.

MVC appears to be about modules of an application, that need to be assembled into the final application.

Is this the case?

If it is how are the modules chained into an application? I thought I had found it with redirect but redeploying in what appeared to be same circumstances gave me errors.

So do I have a global controller that I work progressively through or is there some way I can call a controller and in what conditions and in which m, v, or c. do I code my application

thank you


John Collins
0
Comment
Question by:johnecollins
  • 2
3 Comments
 
LVL 111

Accepted Solution

by:
Ray Paseur earned 2000 total points
ID: 39913014
The answer to this question is probably the third semester of a bachelor's degree in computer science, so I'm not going to be able to really give you a thorough answer, just as I could not give a thorough answer if you asked, "How do I build a car?"  But I can point you to some learning resources that appear to be worthwhile.
http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller
http://en.wikipedia.org/wiki/Observer_pattern
http://en.wikipedia.org/wiki/Three-tier_architecture#Three-tier_architecture

As you read over those articles, think about how you might organize the work of several programmers working on a web application at the same time.
0
 

Author Closing Comment

by:johnecollins
ID: 39913339
Ray,

Thanks a lot I have looking for a long time and was not getting anywhere but I was consuming a lot of time in cul-de-sacs so thank you very much.

Everything I have read about CodeIgniter says how easy it is and how quickly you can be writing the world.

This hasn't been my experience but I still needed to get to grips with an application I have to write,

So thank you very much for this help off I go and get on with the job

Thanks

John
0
 
LVL 111

Expert Comment

by:Ray Paseur
ID: 39913386
Thanks for the points, John.  MVC architectures are one of those things like object-oriented programming and design - it just takes a while to get your head around the concepts (at least it did for me) but once the lightbulb goes on, you say, "How did I ever do without this?"
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses
Course of the Month15 days, 8 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question