php - Have to require the same file twice, how to get around this? -


I need a class file twice, is there any way to get around it? I have a class named Book, a main page that needs a class book because it creates an object of the book's object. There is a javascript file that uses AJAX to load a script which saves the edited book object. Here is the flow of events for which I need a class file twice:

  1. There is a main page for which the book class is required because this book will create an object and information about that book Will display This page has a savings button.
  2. A javascript file that uses AJX to load the APX script which protects the edited book object.
  3. Save Script requires a book because it needs to load the same object (actually a PHP object can not pass through AJAX)

    First of all, this does not work when I need a book class in the savings script, it fails. First of all, there is a better way of doing this because I need a book class twice.

    You should give what you need.

    After saying this (after reading your question again), while mentioning you two scripts are completely different .. So .. ..

    How are AJAX's unsuccessful? What are you looking at?

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -