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
Something Non-Traditional. Can we solve?
I have an idea for an application here. It's mostly flash, but it couldn't work without a somewhat n
gather checkbox data from form into email
Hello all,
First, i'd like to thank everyone who responded to my previous posts regarding set
for some reason mysql query not working, not inserting, please check it out
This code is not inserting anything into my db, don't know why, the $_SESSION variable does contain
update 2 columns by doing inner 2-column query
Hi,
is something like this possible?
update contract_all set col1,col2 =
(
pointer 102 question
I read a book
1
2
3
4
5
6
7
8
9
10
11
12
int main()
{
Sorting JTable on more than just the values listed in the columns
I have a collection of objects that store (among other things) two integer values. I only want to di
Concatenate two strings ???
I have string one $string1 and another $string2.
How to concatenate (add) both of them $str
using explode() to fill in checkboxes
Hi
I have a field stored in a table that contains regions in the UK separated by commas. Ther
php file erros / need help please
Hello
Someone decoded a zend file for me.. after uploaded it on ftp i get some errors, i trye
Print 'a' to 'z' via for loop
A very simple problem..
How Can I print a to z NOT a to y ?
It is a part of a code where
<