Announcement

Collapse
No announcement yet.

Added new function to actinic_main.php BUT

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

    Added new function to actinic_main.php BUT

    I get a fatal error: undefined function blah blah blah. Am I missing something?

    #2
    Close and restart Actinic. That may fix it.

    Personally I keep any home brewed PHP in the site folder and load it via

    include_once 'mycode.php';

    It looks like Actinic caches these files. I usually close and restart if I amend any code in included files.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      thanks

      ok, that's what I did.

      A quick one though:

      I thought the php include directive could only be used from within bona fide php files. Every brochure pages produced by actinic is generated as html. I did not find any way to coerce actinic into producing php files in stead of html. Having php files would make my life easier.

      Lazyeye

      Comment


        #4
        Actinic's built-in PHP (which is what we're talking about here) does not run on the server. The PHP code runs on your PC when the pages are being built. No PHP code gets uploaded to the server - only the results of your code being executed - usually via echo "..."; statements.

        You tell Actinic that you want to run PHP via:-

        <actinic:block php="true">
        // my php code here
        </actinic:block>

        Put your include within the above block. E.g.

        <actinic:block php="true">
        include_once 'mycode.php';
        // my php code here
        </actinic:block>
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          This, I know; thanks. But this remains, imo, a frustrating limitation. The designer version should at least be capable of operating directly within the context of a server (an apache local server, for instance) instead of remaining a strictly closed development environment. That would mean being able to directly embed a <? echo ++$i; ?> in the html code and not having to insert a darn php block each time you want a simple echo or variable increment. I'm used to develop everything directly from my local www_root directory, so the shift in the development process methodology is a tad frustrating. I understand how actinic is working, how it handles layouts, how pages are generated, but not why it is so limited in this regards.

          But anyway, I'll put up with that.

          Comment


            #6
            &lt;?PHP Include&gt;

            Is there any way to use a php include statement to load php files from the server within Actinic v7 ?
            Richard
            www.worldofenvelopes.com

            Comment


              #7
              richard, i answered your other post, please dont double post like this.

              Comment


                #8
                Agreed! Double post, a V7 specific question in a V8 forum, and not related to the original post in any way.
                Norman - www.drillpine.biz
                Edinburgh, U K / Bitez, Turkey

                Comment

                Working...
                X