NYCPHP Meetup

NYPHP.org

[nycphp-talk] How would I call a non-class outer function fromwithin a class method?

soazine at pop.erols.com soazine at pop.erols.com
Wed Oct 15 11:06:26 EDT 2003


I did just that.  On top of viewinterns.php I have include("../macros.inc")
and include("../html.inc");

Phil

Original Message:
-----------------
From: Nunez, Eddy enunez at tiaa-cref.org
Date: Wed, 15 Oct 2003 10:50:54 -0400
To: talk at lists.nyphp.org
Subject: RE: [nycphp-talk] How would I call a non-class outer function
fromwithin a class method?



Ever thought of simply including macros.inc inside html.inc?
There's nothing in the php manual that says you can't do that.

Or, if you don't feel that's very koser, on every page that
the class DropdownGenerator class needs function(s) from macros.inc
just do:

include('macros.inc');
include('html.inc');

Regards,
-Eddy


-----Original Message-----
From: soazine at pop.erols.com [mailto:soazine at pop.erols.com]
Sent: Wednesday, October 15, 2003 10:41 AM
To: talk at lists.nyphp.org
Subject: [nycphp-talk] How would I call a non-class outer function from
within a class method?


I'm sorry guys but this is a bad day for me.  I tried researching this one
and was totally stonewalled (see
http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=calling+functions+ins
ide+class+functions+php&btnG=Google+Search)

I have a function "preSelect" inside a PHP script macros.inc.  I have also
got a DropdownGenerator class with methods inside a script html.inc.  The
methods in the DropdownGeneator class have to call the preSelect function
from macros.inc for a proper return of values.  How in the planet do I do
that?

Phil

--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .


_______________________________________________
talk mailing list
talk at lists.nyphp.org
http://lists.nyphp.org/mailman/listinfo/talk


**************************************************************
This message, including any attachments, contains confidential information
intended for a specific individual and purpose, and is protected by law. 
If you are not the intended recipient, please contact sender immediately by
reply e-mail and destroy all copies.  You are hereby notified that any
disclosure, copying, or distribution of this message, or the taking of any
action based on it, is strictly prohibited.
TIAA-CREF
**************************************************************

_______________________________________________
talk mailing list
talk at lists.nyphp.org
http://lists.nyphp.org/mailman/listinfo/talk

--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .





More information about the talk mailing list