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
Request.UrlReferrer
I need to make it so that a page can only be loaded when a button is clicked on a specific page. I d
what business processes?
Hi,
A general question. What business processes (like OTC - Order to Cach, P2P, R2R etc)
I face problems to extract data from one table and insert it in another one
Hi,
For modifications, I have to extract data from one table and insert it in another one
Phase Error I can't seem to find :(`
Hey guys, I can seem to find my phase error on this. I am getting this error
[error]
Pars
Recording popularity by day, week.. all time?
Hey everyone, I'm creating a site designed around users uploading music. How can I implement a syste
What is SAP Avatar ?
Hi All,
This G.Satish , my boss asked me to explore on SAP Avatar. I searced in internet
Mysql error message
help me find out what this error message means:
"Duplicate entry '0' for key 'PRIMARY'&q
Last character removed
I have created a string from an array. I have inserted commas from my form values. I am trying to re
Open link with largest int string first
I have the following links i would like to open either all at once or one-by-one. How would i procee
How can use this array as a key?
Say I have this array for example:
print_r($array);
Prints:
Code: [Select]Array