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.
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
Passing JS to PHP
So I have the following
Code: <?php
getdetails(?><script type="text/
Page Reload
I am having issues getting a page to reload after I submit data to a database. This form should inp
cURL Upload Help
OK, I am creating a bridge from a local program to my website and I am trying to find the best way t
uploading video files into mysql in php
hi,
I have the video files which i have to upload into mysql db. along with creating thumbnails f
unexpected T_STRING
error log "[Sat Jan 09 18:27:58 2010] [error] [client 127.0.0.1] PHP Parse error: syntax error
Taking an HTML form and a PHP program and making it into one working file.
Hello,
So I would like to display everything INSIDE a specific directory. In other words, I
Xml parsing
I need a suggestion about parsing xml with multiply parts like pervious...
i.e. different device
Search function
I am looking for some guidance from the experts.
I am trying to create a search function. It
Retrieving the 25 most recently added entries from all tables in a MySQL databas
Hello,
The code below works great. It creates a table that shows the 25 most recently added t
Sending an SMS Message with ASP.NET
Often times it may be a requirement for your web application to send an SMS message. Such examples w