Peter
|
| Posted: 02/15/2006, 4:09 PM |
|
I am wanting to place a custom e-mail message function that I have created in a page so that is available for "after Insert" and After Update" events and wondered if there was any specific place that it had to go?
|
|
|
 |
Benjamin Krajmalnik
|
| Posted: 02/15/2006, 10:32 PM |
|
If you want it to be available only in that page, I would place it at the bottom of the page_events.php page.
If you want it's context to be global (available in every page), place it at the bottom of common.php
You did not mention which target language you are usin, so I assumed PHP.
|
|
|
 |
Peter
|
| Posted: 02/16/2006, 6:47 AM |
|
You are right - PHP
Thanks
|
|
|
 |
Walter Kempees
|
| Posted: 02/16/2006, 6:54 AM |
|
someone said it could also be put in the Page's AfterInitialize
I used a
include_once("function_name.php");
with success.
<BenjaminKrajmalnik@forum.codecharge (Benjamin Krajmalnik)> schreef in
berichtnews:243f41c6a4d41d@news.codecharge.com...
> If you want it to be available only in that page, I would place it at the
> bottom
> of the page_events.php page.
> If you want it's context to be global (available in every page), place it
> at
> the bottom of common.php
>
> You did not mention which target language you are usin, so I assumed PHP.
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
Nader
|
| Posted: 02/16/2006, 8:28 AM |
|
IF you want it to be available for After Inserto or Update of a particular for, you could Add Action Send Email to those events and replace the code the tool generates with what you have.
|
|
|
 |
wkempees
Posts: 1679
|
| Posted: 02/16/2006, 10:23 AM |
|
Whatever way works for you, stick to using one and always the same method.
So that later you'll be able to remeber where you put it.
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
 |
 |
|