Hi,
First of all, I am a PHP beginner.
I am using a (layout) template to build a application, that consists of smaller applications (actually, I am trying to build some sort of PIM with an addressbook, a bookmarks section etc). This template can be given a header, a footer, a menu, a titlebar and a body.
My main-file (let's call it myApp.php) looks something like:
template -> setTitleBar ("myTitleBar.php");
.. etc ..
template -> setBody ("myBody.php");
template -> toHTML ();
In the body (the file myBody.php) I would like to use a form, that gets back to itself using the $PHP_SELF function, but of course, the layout is determined in the main-file (myApp.php)
I clearly cannot use the $PHP_SELF function, since I would loose all layout related stuff like headers, footers, styles etc that are defined in the template.
I could point the action to the mainClass, but the main-class just feeds the template with proper layout information, so that would not be very useful...
It is a bit hard to explain what goes wrong, but I hope I made it understandable.
Any input appreciated
Barry