Jump to content

How to Create New Non-CMS Page For JS,CSS, PHP


Recommended Posts

V1.6

Hi,

I need to create a new non-cms Form Page that includes some logic, JS, CSS, and maybe PHP.

 

This page will submit to a PHP script that will perform some logic and redirect back to this page.

 

If possible it would be good to include PHP in this Form Page, but if not, I will need to include PHP in a FormPageController and use a template file or something.

 

Apart from the body, that will include the form, the page needs to look like the shop so it will need to include the Header and Footer.

 

I tried using a CMS page but it was too restrictive in what it would allow.

 

I also set up a root file: form-page.php

A controller: FormPage.php

A template file: form-page.tpl

And linked the page in the Admin->Preferences->SEO Pages

 

As a result I was only getting back totally black pages.

 

To complete this task, are there any other files I have to add?

 

What is the minimum skeleton for each of the required files to make this work?

 

Where else may I be going wrong?

 

Thanks  

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...