Announcement

Collapse
No announcement yet.

Miva Support for PHP

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

    Miva Support for PHP

    I was astounded when I searched this forum for "PHP" and got no hits at all.

    Hasn't anyone wanted to launch PHP programming from a Miva page, say from a Category header or footer.

    Is PHP completely at odds with MVC coding and everyone but me knows that?

    There's an app I'd like to create in PHP and have it create a photo gallery of store products with links to Miva CTGY and PROD pages. I'd like to run this script within a Miva page so that the Miva components (navbar, global header and footer and cattree) are automatically built for me (in the page where PHP is running).

    Any comments about why PHP is of no interest to this community?

    Thanks ... Sam

    #2
    Re: Miva Support for PHP

    At odds, yes, because of the fact that when the server receives a request for a file ending in .mvc it hands all responsibility for the request off to the Miva scripting engine which parses the file, does the work and outputs the content independently from the web server, meaning the only way to have php code execute natively inside Miva Merchant would be if the miva scripting engine could parse php code. Same would be true for the opposite, you can't put mivascript code in a php file and expect php/apache to know how to deal with that.

    The way many people get around this issue is through the use of the Toolkit module from http://www.emporiumplus.com/ where you use its function library to make calls to remote php URL's that will execute and output the content you want to include in your merchant pages transparently to the visitor. Or of course iframes will work too but not as clean.
    Last edited by Rick Wilson; 03-18-10, 12:08 PM.
    David Hubbard
    CIO
    Miva
    [email protected]
    http://www.miva.com

    Comment


      #3
      Re: Miva Support for PHP

      You can't execute php code from within any area of the Merchant admin.

      I think some 3rd party modules will let you call php files.

      http://www.mivacentral.com/page/m/PROD/DEV/STL-EXTFILE

      --
      Thank you,
      Gary Hodder
      Support
      --
      CybrHost Corp. - http://www.cybrhost.com/ - [email protected]
      +1-866-300-MIVA - Professional Miva & E-Commerce web hosting services.
      Premiere Hosting Partner Since 1999

      Comment


        #4
        Re: Miva Support for PHP

        Its simple to call a php script from within merchant using an iframe...but why not just use Merchant to do this (much simplier). For example, have a category with all products, (or use the Product List page) and then format the Product list template accordinging. You can even do this on another page (call it Gallery) so the standard category template can remain unchanged.
        Bruce Golub
        Phosphor Media - "Your Success is our Business"

        Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
        phosphormedia.com

        Comment


          #5
          Re: Miva Support for PHP

          Thanks to all of you for your quick responses. They all sound promising and I'll investigate each approach.

          Appreciate your support ... Sam

          Comment


            #6
            Re: Miva Support for PHP

            Originally posted by smgerber View Post
            I was astounded when I searched this forum for "PHP" and got no hits at all.
            ...
            Any comments about why PHP is of no interest to this community?

            Thanks ... Sam
            PHP has been discussed a few times previously, so there definitely is interest. The reason you couldn't find anything about it, though, is because the forum software doesn't allow searching three letter words. You can use google to dig up more information: http://www.google.com/search?hl=en&q...=&oq=&gs_rfai=

            Comment


              #7
              Re: Miva Support for PHP

              If you don't already have the Emporium Plus Tool Kit at http://www.emporiumplus.com/go/wcw/PROD/1AA/1AA00223 you might take a look at it. It has dozens of functions which can greatly enhance the capabilities of your store. The ability to insert php output into the middle of a page template is just one of the functions. See #18 at the link above.
              Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
              Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
              Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
              Facebook http://www.facebook.com/EmporiumPlus
              Twitter http://twitter.com/emporiumplus

              Comment


                #8
                Re: Miva Support for PHP

                Thanks, Brandon. Didn't know about the 3 character restriction.

                Thanks to you too, wcw. You couldn't have spoonfed that one to me any better than you just did. I actually missed it first time through that page because I didn't go down the page far enough to see the examples.

                -- Sam

                Comment


                  #9
                  Re: Miva Support for PHP

                  You should browse that whole page. Some of the best stuff is near the end. When I ran out of the obvious stuff early on, I started adding functionality that previously required a whole separate module to do.
                  Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
                  Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
                  Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
                  Facebook http://www.facebook.com/EmporiumPlus
                  Twitter http://twitter.com/emporiumplus

                  Comment

                  Working...
                  X