CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 PHP wTemplate - homepage howto?

Print topic Send  topic

Author Message
Chip Cotton
Posted: 07/01/2002, 3:04 AM

First off, will there be a NON-template option for PHP?

My problem here is that, in creating an index.php, CCS creates
index.htm, and my webserver loads .htm before .php files.

OK, the current workarounds are to (any one)

1) rename the index.php to home.php or somesuch, and add a refresh
command in the body of an otherwise empty index.htm

2) change the order in apache

3) create an .htaccess file to this effect.

My response to any of these: UGH!

My question:
I know I can hard-code the published page to access the template with
a different name, or in a different directory.

Is there any way to rename the template file in codecharge (and
continue to edit the file in codecharge)?
Alexey Alexapolsky
Posted: 07/01/2002, 7:35 AM

You can rename template file name used right in the generated code
inside CCS , it keeps these changes , e.g.
$TemplateFileName = "AdminMenu.html";
replace with something else. But I am not sure you can reflect these changes
in
Design mode.

--
Alex
CodeCharge Developer


"Chip Cotton" <please.no.email@Jail-Spammers.com> wrote in message
news:sv90iuob3tc4piuqscq215t6221ftnce98@4ax.com...
> First off, will there be a NON-template option for PHP?
>
> My problem here is that, in creating an index.php, CCS creates
> index.htm, and my webserver loads .htm before .php files.
>
> OK, the current workarounds are to (any one)
>
> 1) rename the index.php to home.php or somesuch, and add a refresh
> command in the body of an otherwise empty index.htm
>
> 2) change the order in apache
>
> 3) create an .htaccess file to this effect.
>
> My response to any of these: UGH!
>
> My question:
> I know I can hard-code the published page to access the template with
> a different name, or in a different directory.
>
> Is there any way to rename the template file in codecharge (and
> continue to edit the file in codecharge)?

Jeff Stuart
Posted: 07/07/2002, 3:07 AM

Chip Cotton wrote:

> First off, will there be a NON-template option for PHP?
>
> My problem here is that, in creating an index.php, CCS creates
> index.htm, and my webserver loads .htm before .php files.
>
> OK, the current workarounds are to (any one)
>
> 1) rename the index.php to home.php or somesuch, and add a refresh
> command in the body of an otherwise empty index.htm
>
> 2) change the order in apache
>
> 3) create an .htaccess file to this effect.
>
> My response to any of these: UGH!

Uhh.. #3 is a ONE LINER!!! I do it all the time!!!!

IE:

DirectoryIndex index.php index.htm

Use the right too for the right job... This way, you don't have to futz with
things on CCS's side, and on Apache's side, you're not futzin with it there
either. Just using the mechanisims that were created to solve this exact
problem.

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.