Solved

How does CodeIgniter work

Posted on 2014-03-07
3
449 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 109

Accepted Solution

by:
Ray Paseur earned 500 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 109

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

There is a huge demand for CodeIgniter among the PHP web developers due to its dynamic features and benefits these days. It is one of most popular and agile open source PHP framework for creating robust web applications in PHP web development field.…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

776 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