How can we create new php pages in drupal ?
A:
This article on PHP Page Snippets at Drupal.org is probably what you're looking to do.
alxp
2010-02-11 13:10:20
+1
A:
I see three options to create new a PHP page in Drupal:
- Put some PHP Snippet in a node, as suggested by alxp.
- Create a custom module that provides the page. This module implementation of
hook_menu
will need to define the path and callback function for the page. - Create a standalone .php file that will bootstrap Drupal and do all the rendering by itself. It can use any Drupal function to do its job. This .php file will need to include Drupal's
include/bootstrap.php
file and invokedrupal_bootstrap
.
mongolito404
2010-02-19 15:08:45