Working with popups and such in a class
Posted on
16th Feb 2014 07:03 pm by
admin
I've recently started building my applications completely enclosed in classes. I like the fact that I can base everything off one root and work with that, but I'm having a problem with popups (Facebox) and getting the application working with the popup.
Currently what I have is a class for users, within that users class all my user SESSIONS get handled, login/logout actions, and my login, register, and forgot password templates are included through a get() function within the class.
Did you know?Explore Trending and Topic pages for more stories like this.
I also have the main class. Here's a quick example
class main()
{
public function __construct()
{
require_once(MAIN_PATH.'plugins/users/users.php');
$this->USERS = new USERS;
}
}
When i include the login page I'm calling it like this
$this->USERS->get('tmpl','login');
Which works, everything works good, but the problem is when I popup the register and forgot in the facebox. I have a helper.php that I popup with a $_GET global tmpl that will equal either register or forgot, and through that I want to be able to do $this->USERS->get('tmpl',$_GET['tmpl']).
I don't know if I'm explaining this right but if anyone had some hints or a tutorial on how I deal with popups and still having everything within my class. My ultimate goal is to make it as if that popup was basically the same as being apart of the page, where I can access everything since as I would normally be able too.
Thanks
No comments posted yet
Your Answer:
Login to answer
90
40
Other forums
PHP4 to PHP5 Conversion
Hi Everyone,
I am working on a site that is built up on PHP4 and each page is being started f
System copy error in RUN ABAP REPORT PHASE
Hi,
I am performing system copy on my test server. I have previously taken export of JAVA + A
problem in program for counting no of chars using pointers
Hi all, I was trying to make a program which counts number of chars in a string using concpt of poin
utl_file open error
i have file in the unix path
Path /popdev01/pop/popdevb/tfi/
File name
DOMDocument
Hello All,
I need to take an XML document, modify some of the nodes in it and then perform a
Can I use a loop
Hi buddies!
Once again with my doubts here.
Right now I am using this sql stat
moving mouse to display image coordinates
I have an existing MFC application that shows an image in the main window.
I'd like to be able to
Giving the below syntax error
Dear Experts,
I have used 2 buttons in gui status as display and cjhange.When the user wi
Shopping Cart
Can anyone direct me to a Simple, Basic structure of a shopping cart.
New to classes. I want to s
FlashVar function how to insert variables
Hi guys. Im new in this forum and also new in php programming. Can you help me about this code?
<