Announcement

Collapse
No announcement yet.

Include Appication in a Blank Application

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Include Appication in a Blank Application

    Hi
    Is there any way to include a blank application into another blank application?
    I've was trying <?php include 'navbar.php';?> and the app is included, but several errors appears, errors about sesion already started, and libraries not founded.


    I'm trying to insert a navigation bar in several blank applications.

    Anybody can help me with this?

    Thanks in advance.




  • #2
    scriptcase app are not ready to "mix" with others. you can try using iframes
    /Giuseppe

    Professional Scriptcase Services
    Some Customers opinions

    Comment


    • #3
      Can't you put navbar.php in a library and use that library in the several blank apps?

      Comment


      • #4
        I'm trying to include another blank app from my project. I mean, I have two blank apps, and I want to include blank application A in Blank Application B.

        Also, i've trying puting the navbar.php code in a library but it does not work because scriptcase automatically include PHP tags at start and at the end, so, it beaks all.

        I'm stucked...

        Comment


        • #5
          Including other blank could be a problem, but no lt an external or internal lib. Paste how are you including and it
          /Giuseppe

          Professional Scriptcase Services
          Some Customers opinions

          Comment


          • #6
            Thanks for the help.

            This is my script in my project libraries (just a simple php echo) The name of this library is (test.php)

            <?php
            echo "Hello world!<br>";
            ?>


            And this is my code to include the library in my blank app:

            <?php
            test();
            ?>


            The result is a blank page.

            Attached Files

            Comment


            • #7
              First, you are cakking a function. You have to write your echo inside:
              Function test(){ echo "Sponge bob"; }

              Now, in your blank, you have two ways, it depends if it's external or internal lib.
              Internal: Mark it on internal libraries under programmin menu of the blank app, and it's done.
              External: You have to include your external library with:
              Sc_include_library(, , ...


              Sorry for formatting, I'm from mobile
              /Giuseppe

              Professional Scriptcase Services
              Some Customers opinions

              Comment


              • #8
                http://www.scriptcase.net/docs/en_us...nclude_library
                /Giuseppe

                Professional Scriptcase Services
                Some Customers opinions

                Comment


                • #9
                  OK!
                  Thanks for the help!

                  I'm on SCv7 so, I just call the library with test();

                  It works.
                  Thanks again!

                  Comment

                  Working...
                  X