Solved

How does CodeIgniter work

Posted on 2014-03-07
3
442 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 108

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 108

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to dynamically set the form action using jQuery.
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 …

706 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now