Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Strightforward way to insert my external PHP pages?
  • Posted: 20.09.2006, 03:14
     
    zewtastic
    rank:
    Freshman Freshman
    registered:
     September 2006
    Status:
    offline
    last visit:
    21.09.06
    Posts:
    3
    I have been reading the docs, but cannot seem to find am easy way to include my external PHP pages into PostNuke CMS and still keep the block wrappers. Am I missing something?
  • Posted: 20.09.2006, 03:21
     
    Simon
    rank:
    Steering Committee Steering Committee
    registered:
     December 2002
    Status:
    online
    Posts:
    13418
    You need to initialize the PostNuke code around your PHP files.

    Like so:

    Code

    <?php

    include 'includes/pnAPI.php';
    pnInit();
    include ('header.php');

    // Your PHP code


    include ('footer.php');


    --
    Regards,
    Simon

    itbegins.co.uk - Zikula Consulting

    Please read the Support Guide
  • Posted: 20.09.2006, 04:26
     
    zewtastic
    rank:
    Freshman Freshman
    registered:
     September 2006
    Status:
    offline
    last visit:
    21.09.06
    Posts:
    3
    thanks for the response Simon.
    That worked great.



    edited by: zewtastic, Sep 19, 2006 - 04:19 PM
  • Posted: 20.09.2006, 05:50
     
    Simon
    rank:
    Steering Committee Steering Committee
    registered:
     December 2002
    Status:
    online
    Posts:
    13418
    Glad to help.

    --
    Regards,
    Simon

    itbegins.co.uk - Zikula Consulting

    Please read the Support Guide

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula