Using the Framework: Unterschied zwischen den Versionen

Aus CodeCoupler Wiki
Zur Navigation springen Zur Suche springen
Tm (Diskussion | Beiträge)
Tm (Diskussion | Beiträge)
Der Seiteninhalt wurde durch einen anderen Text ersetzt: „Using the Framework: Basics<br />How to create a webpage? What i have to pay attention to?“
Zeile 1: Zeile 1:
== Basics ==
[[Using the Framework: Basics]]<br />How to create a webpage? What i have to pay attention to?
 
=== 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
 
{{Hint|'''Do you know CodeIgniter?'''<br/>There is one big difference you should know. Please read the next chapter '''Master Template'''. In contrast to the pure CodeIgniter framework, CodeCoupler will surround every controller ouput with a master template.}}
 
=== 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:
 
<syntaxhighlight lang="html4strict">
<!DOCTYPE ... />
<html ... >
<head>
<charset ... />
<title> ... </title>
</head>
<body>
[YOUR CONTROLLER OUTPUT]
</body>
</html>
</syntaxhighlight>

Version vom 22. August 2012, 20:32 Uhr

Using the Framework: Basics
How to create a webpage? What i have to pay attention to?