Using the Framework: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Tm (Diskussion | Beiträge) |
Tm (Diskussion | Beiträge) |
||
| Zeile 15: | Zeile 15: | ||
In contrast to the basic CodeIgniter framework, every output of a controller will be surrounded by a master-template. The basic layout of the master template looks like this: | In contrast to the basic CodeIgniter framework, every output of a controller will be surrounded by a master-template. The basic layout of the master template looks like this: | ||
<syntaxhighlight> | <syntaxhighlight lang="html"> | ||
<doctype [...] /> | <doctype [...] /> | ||
<html [...] > | <html [...] > | ||
Version vom 22. August 2012, 20:26 Uhr
Basics
MVC Approach
First of all you should learn to create a webpage. CodeCoupler use CodeIgniter as base. CodeIgniter is a web application framework using the Model-View-Controller approach, which allows separation between logic and presentation.
Here is a very very quick "Hello World" example: Hello World
To understand the whole CodeIgniter framework you should read the very clear and thorough documentation here: http://codeigniter.com/user_guide/index.html
Master Template
In contrast to the basic CodeIgniter framework, every output of a controller will be surrounded by a master-template. The basic layout of the master template looks like this:
<doctype [...] />
<html [...] >
<head>
<charset [...] />
<title> [...] </title>
</head>
<body>
[YOUR CONTROLLER OUTPUT]
</body>
</html>
