News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

how to create single clean page

Started by Dhayzon, September 14, 2016, 06:52:53 AM

Previous topic - Next topic

Dhayzon

add_integration_function('integrate_actions', 'Mipage');

function Mipage(&$actionArray)

$actionArray['Mipage'] = array('Mipage.php', 'Mipage');
}



www.localhost/index.php?action=Mipage   = ok create

but
It is automatically created  <html>  template_html_above

I do not want that

I want something like this


funcion Mipage(){
loadTemplate('Mipage');
$context['sub_template'] = 'Mipage';
}

function template_Mipage()
{
global $context;

echo'hello worl, this is blanck page';
}


Suki

You have stated on Spanish boards you removed SMF's copyright. The team reserves the right to not provide support to sites which have removed or altered the copyright.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Dhayzon

you break my heart </3 :v

copyright was not removed: v

dhayzon.com :v

Dhayzon

solved

function Mipage()
{
global $context;
loadTemplate('mytemplate');
$context['sub_template'] = 'myfuncion';
$context['template_layers'] = array(); //

}


// These actions don't require the index template at all.


if (isset($_REQUEST['action']) && in_array($_REQUEST['action'], $miarray)) {

   $context['template_layers'] = array(); //
}


soy el puto amo :v okay no 

Advertisement: