Go to the menu - Go to the contents

[Site map] You are here --- > Newbies Paradise > Forums > Newbies Community > General Discussion > KaraTemplates > Read the topic

KaraTemplates

can somebody explain to me what it really is?

You have to be registered to post messages

SolvedThis topic's problem has been solved

Page 1 
Author Message
1 visitor on this topic (1 anonymous user)
Page 1 
Offline yabberyabber # Posted on 07/03/2008 08:58:54 AM
i found pink mold in my trash
Avatar
Group : Members
i was looking at the learn more page of this site and stumbled upon the word KaraTemplates. it doesn't explain on the page so can somebody explain to me what it really is?

i need a french pen pal to show my fiend I'm cool
User image
 
Offline mwsaz # Posted on 07/03/2008 10:25:40 AM
Tremulous : open source FPS
Avatar
Validators
This answer helped the author of this subject This answer helped the author of this subject
Just what is known as a template engine. More info here :
http://www.sitepoint.com/article/beyond-template-engine

Computers are like air conditioned : they stop working when you open windows.
About tutorial validation: I deal with newly submitted tutos every Monday, Wednesday and Thursday.
 
Offline M@teo21 # Posted on 07/03/2008 10:35:50 AM
Yeah man!
Avatar
Admins
KaraTemplates is just the name of one piece of the framework behind newbies paradise. It generates web pages using the MVC architecture.
You can learn more about this on wikipedia. ;)
Edited on 07/03/2008 10:36:08 AM by M@teo21

Doh! Nuts.

Mmmh, donuts!



 
Offline Delroth # Posted on 07/03/2008 01:31:45 PM
Group : Members
Templates are used to separate web pages rendering from PHP computations : for example, most of the template engines work like that :
Code: PHP
1
2
3
4
5
<?php
$template = tpl_load("myfile.tpl");
tpl_define($template, "name", "Delroth");
echo tpl_render($template);
?>


Then the template file don't need to know from where come the "name" variable we defined, it can use it whenever it comes from a cookie, a database, computations, etc.

On this website for example, the same PHP code is used by both NP and SdZ, but templates allow the two websites to show different pages ;) .
Edited on 07/03/2008 01:32:07 PM by Delroth
Offline mwsaz # Posted on 07/04/2008 05:35:32 AM
Tremulous : open source FPS
Avatar
Validators
In fact, (just a reply tom be annoying :D ) the templates [html code] are the same for the fr and the en version.
There are other templates [language vars] which of course arent the same for NP and the SdZ.

Computers are like air conditioned : they stop working when you open windows.
About tutorial validation: I deal with newly submitted tutos every Monday, Wednesday and Thursday.
 
Offline yabberyabber # Posted on 07/04/2008 06:24:23 AM
i found pink mold in my trash
Avatar
Group : Members
so basically... you separate the php from the html so that you only have to change 1 html file if you want to change the layout of the whole layout then have all the php in other files (like a class library)? omg i need that! is that in the untranslated portion of the php tutoreal?

excitment!!!!!!!! :D :D :D :D :D :D :D :D
Edited on 07/04/2008 07:40:09 AM by yabberyabber

i need a french pen pal to show my fiend I'm cool
User image
 
Offline mwsaz # Posted on 07/04/2008 08:23:21 AM
Tremulous : open source FPS
Avatar
Validators
Thats in part 3 :)
If you are feeling adventurous, have a look at this :
http://php.net/include

Computers are like air conditioned : they stop working when you open windows.
About tutorial validation: I deal with newly submitted tutos every Monday, Wednesday and Thursday.
 
Offline M@teo21 # Posted on 07/04/2008 02:16:26 PM
Yeah man!
Avatar
Admins
In fact this is not exactly in part III, which will be released soon btw, but I plan writing something about this in french in a few weeks (or months :D ) and we'll have it translated here of course ;)

Doh! Nuts.

Mmmh, donuts!



 
Offline alex.css # Posted on 07/04/2008 07:53:17 PM
Trust nobody, do it yourself !
Avatar
Group : Members
Nice :)
I hope to see it soon ;)

Or else I'll read it in french :p
 
Offline Leo # Posted on 07/04/2008 08:45:12 PM
Avatar
Group : Members
Quote: M@teo21
In fact this is not exactly in part III, which will be released soon btw, but I plan writing something about this in french in a few weeks (or months :D ) and we'll have it translated here of course ;)


Great :)

User image
<a href="http://sunnypix.free.fr/index.php">Sunnypix</a>
<?php echo "Website showing travel pictures"; ?>
printf("Go to my website !");

==> Sunnypix :sun:
 
Offline yabberyabber # Posted on 07/05/2008 02:48:08 AM
i found pink mold in my trash
Avatar
Group : Members
lol...
Quote: mzwas
Thats in part 3 :)
If you are feeling adventurous, have a look at this :
http://php.net/include


its in German :lol: who says nobody speaks German :lol:

i need a french pen pal to show my fiend I'm cool
User image
 
Offline mwsaz # Posted on 07/06/2008 05:17:13 AM
Tremulous : open source FPS
Avatar
Validators
Strange IP localisation ^^
http://ca3.php.net/manual/en/function.include.php

Computers are like air conditioned : they stop working when you open windows.
About tutorial validation: I deal with newly submitted tutos every Monday, Wednesday and Thursday.
 
Offline alex.css # Posted on 07/08/2008 12:41:10 AM
Trust nobody, do it yourself !
Avatar
Group : Members
Probably due to his browser options :whistle:
If you habe FF3, you may change it into whatever you want.
 

Back to "General Discussion" or to the boards list

You have to be registered to post messages

Change your template | Learn more about NP | Site map | Terms of use | Rules | RSS feed | XHTML 1.0 | CSS 2.0
Powered by Simple IT SARL: Contact us

There is nothing else to read, you have to go up now !

Do you want to be published here? Contact us.

Number of Newbies connected 3 Newbies Connected | SQL requests 8 Requests | Page loading delay 0.0344s (0.0241s)