Coder Profile - Show off your skills, get a coder profile.
 
 
 
The Author
Craige
Craige Leeder
Send A Message
Rating
7.00
out of 10
( 1 Ratings )
Please login to rate source codes.

Click here to register a free account with us.
General Details
PHP (Hypertext Preprocess...
Posted 4.2 Years Ago
922 Views
Received 1 Rating
More Codes By This Author
Check List
ViewFinder

ViewFinder


Description
ViewFinder is a object oriented PHP template engine. It's goal is to allow flexability when using templates.
Technical
Install
-------

To start using ViewFinder 0.1a, place the files so they resemble this structure:

/
../public_html
..../templates
..../vf-test.php
../ViewFinder

And you're done. Using this configuration, you can easily get ViewFinder
running on your server. Further more, you can configure ViewFinder via
/ViewFinder/config.php
Source Code
Download Download Source Code
viewfinder.zip ( 0.01Mb )
NEVER open a .exe, .bat, .cmd, or other executable file since that is where viruses are likely to live. Please virus scan all files you download.
Comments
Please login to post comments.
 
Craige     Posted 3.18 Years Ago
 
 
I should probably have have this source removed. It's fairly old now, and an
early implementation at best.

I've gone another route now by creating an integrated template engine for my
framework. It doesn't even follow this same structure anymore.

Thanks for your input, CyberGeek. Though none of these exist in the new
implementation, input is always appreciated, even on old code.
 
CyberGeek     Posted 3.18 Years Ago
 
 
I downloaded it to take a quick peak after reading a forum post of yours. There are a
couple of issues I had seen immediately in the development/release of this.
First, you should not be forcing the developer/EU of this to place the ViewFinder/
outside of the public_html/. You should allow the developer/EU to choose where the
directory goes.

Secondly, to quote the post of yours I read and replied to:
(http://www.coderprofile.com/networks/discussion-forum/1855/expertrating-i-took-the-p
hp-exam-lol)
"I'm not a fan of those exams. Reason being, they test you on pointless
stuff like paramater order, libraries, etc. Nothing of any real relivance when
programming.

Modern IDE's sove most of the problems those exams test you on. With code
completion, debuggers and profilers, most of those questions have no relivance. If
they started asking program-design questions, I might think more of it. I think
knowing a handful of design patterns is far more useful than knowing a handfull of
functions inside and out."

Well, open up your class implementation of TemplateDirector. Do you notice anything
wierd about your init() method?

If you say no, well then - Why are you not returning by reference? You do realize
you are now making two instances of oInstance value correct? It seems you are trying
to enforce that the object instantiated to oInstance is static. Well, that means one
copy. Not two. Secondly, if you do modify your method signature to return by
reference, you might as well make the oInstance member variable public, because now
you lost the private visibility of it as soon as it has been returned by reference
and now is available out of scope.

;)
 
Izzmo     Posted 3.84 Years Ago
 
 
Very nice! I use kind of the same structure, just a little more in depth, on my
customer sites when they want to do templated websites.

You might want to put your first couple class calls ($Template->loadTemplate();)
in the try block just as a catch all though.
Page 1 of 1
More "PHP (Hypertext Preprocessor)" Source Codes By This Author
Recently Posted "PHP (Hypertext Preprocessor)" Source Codes
Recently Rated "PHP (Hypertext Preprocessor)" Source Codes
 
 
Latest News About Coder Profile
Coder Profile Poll
Which sounds better on your coder profiles, and makes more sense to you (think twitter, facebook, etc)?

Followers / Following
Fans / Following
Fans / Fan Of


please login to cast your vote
and see the results of this poll
Latest Coder Profile Changes
Coder Profile was last updated
3.49 Years Ago
Official Blog :: Make A Donation :: Credits :: Contact Me
Terms & Conditions :: Privacy Policy :: Documents :: Wallpapers
Version 1.46.00
Copyright © 2007 - 2012, Scott Thompson, All Rights Reserved