Results 11 to 16 of 16
Hybrid View
-
26th Jul 2010, 12:45 PM #1OPMemberWebsite's:
Doxsters.netRead it, im trying for something a bit different. Also, i'm not doing it just because I want a template engine, its more learning the php behind it. I learn by doing stuff, I can't just read a book and learn it, I prefer to code and learn as I'm coding through trial and error
timtamboy63 Reviewed by timtamboy63 on . Trying to code my own template engine. Ive got the basics working, it replaces variables. Now what I need it to do is replace for example {header} with the contents of header.tpl. How would I do that? I'm thinking of trying to use preg_match to do it, but im not too sure how to use it, etc. Is this the best way to do it? Thanks, timtam Rating: 5
Need a Designer/Web Developer? Click Me
MSN: PM me for it.
Email(Preferred):timtamboy63@gmail.com
"Power Corrupts. Absolute Power Corrupts Absolutely"
-
26th Jul 2010, 12:56 PM #2Member
well, dont use or invent any new syntax ({}, [] etc..), use classic php
if you will try to implement it with your syntax you will have to develop Cache layout so the app wont have to parse template every time and with that comes much more troubles (not really but its work which is not needed)
-
26th Jul 2010, 12:58 PM #3MemberWebsite's:
litewarez.net litewarez.com triniwarez.comlmao...
Your learning poor coding thoif your going to be learning php, stick to objects, you think sites like facebook,google,youtube,orkut use template engines..... i doubt it.
Listen to the masterstick to learning objects and speed.
Join Litewarez.net today and become apart of the community.
Unique | Clean | Advanced (All with you in mind)
Downloads | Webmasters
Notifications,Forum,Chat,Community all at Litewarez Webmasters
-
26th Jul 2010, 01:02 PM #4Member
actually i think they use some basic like one in Zend Framework (just to separate application logic from interface). But yeah, he is right. Stick to learning objects, OOP is most basic knowledge in this business, you will need it when you will be learning other programming languages ..
-
26th Jul 2010, 01:08 PM #5MemberWebsite's:
litewarez.net litewarez.com triniwarez.com*Wamer is Litewarez's Disciple*
Join Litewarez.net today and become apart of the community.
Unique | Clean | Advanced (All with you in mind)
Downloads | Webmasters
Notifications,Forum,Chat,Community all at Litewarez Webmasters
-
26th Jul 2010, 02:42 PM #6Member
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
[Selling] MP3 Search Engine Script - Promotion Code %50 off for limited time!
By tcmcem in forum Marketplace (Buy, Sell and Trade)Replies: 0Last Post: 4th Aug 2012, 09:54 AM -
[Selling] MP3 Search Engine Script - Promotion Code %50 off for limited time!
By tcmcem in forum Completed TransactionsReplies: 1Last Post: 28th Jul 2012, 03:34 AM -
parse if's in my template engine?
By timtamboy63 in forum Web Development AreaReplies: 6Last Post: 28th Jul 2010, 01:37 AM -
[Selling] Datalife Engine 8.5 Translated Template
By Last Word in forum Completed TransactionsReplies: 0Last Post: 9th Jul 2010, 09:34 AM -
How to translate datalife engine template?
By desibreaker in forum Webmaster DiscussionReplies: 6Last Post: 21st Dec 2009, 03:13 AM
themaLeecher - leech and manage...
Version 5.05 released. Open older version (or...