cotonti.com : Ajax part question https://www.cotonti.com Последние сообщения в теме Cotonti en Wed, 29 Oct 2025 17:53:31 -0000 tensh чт, 30 апр 2009 21:49:22 -0000 Trustmaster чт, 30 апр 2009 21:11:20 -0000 tensh
Now I'm trying to create an ajax part according to Trustmaster's tutorial. I want this to be a part of shopsystem plugin. I named it shopsystem.ajax.php. Here's the code:

<?PHP
/* ====================
Cotonti - Website engine
[BEGIN_SED]
File=plugins/shopsystem/shopsystem.ajax.php
Version=3.5
Updated=05.03.2009
Type=standalone
Author=timi11 - cotonti.de
Description=Shopsystem for cotonti
[END_SED]

[BEGIN_SED_EXTPLUGIN]
Code=shopsystem
Part=ajax
File=shopsystem
Hooks=ajax
Tags=
Minlevel=0
Order=10
[END_SED_EXTPLUGIN]

==================== */
if (!defined('SED_CODE') || !defined('SED_PLUG')) { die('Wrong URL.'); }

$plugin_body = "This is something.<br />";
$plugin_body .= "This is the second line...<br />";
$plugin_body .= "And this is the third.";

?>

As you can see, it's freaking simple test, based also on neocrome's tutorial. I want to view it by the url:
www.mysite.com/plug.php?r=shopsystem

My question is: why am I getting blank page? Shouldn't it load properly without header nad footer?]]>
чт, 30 апр 2009 18:22:43 -0000