Solved

How does CodeIgniter work

Posted on 2014-03-07
3
459 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 110

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 110

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
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…

738 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