How to use tempates |
[eluser]Suven[/eluser]
Hi! I'm new to codeIgniter and wonder how you handle with templates. My design is divided into 3 parts (header, footer and dynamic content). In the past, when not using frameworks, I made a function like getTemplate('start/welcome') which then included my header, then the welcome.php and then the footer. How is default approach on this in the CodeIgniter-Community? Do you write library's which do something similar, do you use whole template-engines or do you just load view after view in the controller? Are there any problems which might occur with catching or so when going a specific direction? Thanks for your answers (:
[eluser]BrokenLegGuy[/eluser]
I'm currently using this method of displaying multiple views. http://codeigniter.com/wiki/Displaying_Multiple_Views/ I don't know if this is the standard method of creating/using templates but it's what I'm doing. Ed
[eluser]Genuine Scope[/eluser]
You can use views. Code: $data['email'] = $email; Code: class Customers extends Controller { Code: {fname} {lname},
[eluser]InsiteFX[/eluser]
There are lots of template libraries in the ignited forums. InsiteFX |
Welcome Guest, Not a member yet? Register Sign In |