Re: rfe to template.inc

Mike Gifford <[email protected]> Wed, 31 Dec 2003 11:25:33 -0500
Newsgroups gmane.comp.cms.phpslash.devel
Organization OpenConcept Consulting http://www.openconcept.ca
Message-ID <[email protected]>
Howdy Joe,

On Tue, 2003-12-30 at 12:16, Joe Stewart wrote:
> On Tue, Dec 30, 2003 at 09:49:43AM -0500, Mike Gifford wrote:
> > In talking to the Back-end.org team though, it seems like the following
> > modification to template.inc would make it easier for us to ensure that
> > the file names are accurate and easily accessible.
> I like it if optional or debug type setting.  Or if your template editor
> module can turn display on.  I don't like the comments on all production sites.

Glad to know that there is general agreement on:
$str = "<!-- START $filename -->' . $str . '<!-- END  $filename -->';

I also think that turning the comments on/off would be very useful.  I
guess it's a matter of being something that is configured within
template.inc or passed to template.inc from slashTemplate.class (and
probably set in the config.ini.php file)..

I'm not sure how you'd make it configurable without something like:
	function loadfile($varname, $showComments=true) {

or perhaps another global variable.

I do think the comments should be there by default, but would be awfully
nice if they could be turned off in a live site.

Mike
-- 
Mike Gifford, OpenConcept Consulting
Free Software for Social Change -> http://www.openconcept.ca
Stop Cdn Pension Plan War Investments -> http://coat.openconcept.ca/
Another world is not only possible, she is on her way -Arundhati Roy



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click