CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 Functions used by more than one event procedure

Print topic Send  topic

Author Message
John R Ramsden
Posted: 12/07/2002, 9:09 AM

First off, RonB (if you're reading this), many thanks
for your two replies to my other questions in the
www.gotocode.com discussion forum.

I have some functions that are used by the BeforeShowRow
event handler on several grids (on more than one page).
So I put these in separate php files and used 'include'
to include them in each the <page_name>_event.php
where they are used.

But I've found that the only way they are found when I
click on "Live" is if I have first copies them to the
final document root directory.

I'd like to include these files as part of the CCS
project if possible, to keep everything together
and be able to edit them in CCS; so is there a way
to somehow import them into the project?

Also, is there any way to tell CCS to set up its files
for a project in a specified directory instead of the
default of C:\Program Files\CodeChargeStudio\Projects?
I'd rather keep the project on a network drive, which
is backed up daily and can be seen by other users.

Cheers

John R Ramsden (john_ramsden@sagitta-ps.com)

Neil Munro
Posted: 12/09/2002, 11:40 AM

What I do is have a folder called "custom" in the CC project folder where I
put all the custom php code (and anything else like images/javascript) and
then in the Properties/Files section (usually used for copying images) I put
Source as "custom" and Target as "." (both without quotes, the single dot
means copy to main directory). In CC Open Event I include "mycode.php" and
when I generate the project, the contents of the custom folder are copied
along with CC generated code and it all works fine. I use HTMLKit
(www.chami.com) for PHP/HTML editing as it provides syntax highlighting,
find/replace etc and try to keep all custom code OUT of CC, just placing
function calls in the Events.

The benefit is that all the code is in the original CC folders along with
the project file so I don't get confused about manually updating custom
files to the server. This even works if you you want to tweak a CC file
(such as templates.php) as the custom one overwrites the CC one.

There is no problem setting up the Project files somewhere else, just use
Save As.. and chose the folder you want and the next time you start, it will
be in the history list of projects read to open.

Neil.

Neil Munro
Posted: 12/09/2002, 1:28 PM

Sorry my answer relates to CodeCharge as opposed to Studio...


   


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

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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