Thanks for your reply it worked. Just another question please : is it possible to do something like this :
Assuming page is a template group, and word my custom trigger :
mysite.com/page/ display the “page/index” template (actually normal in EE) mysite.com/page/word run my custom code but do not parse template.
In fact I’m wanting to disable the template parsing in this case. Is it possible ?
Thanks in advance !
You’re right Victor, I can’t access $SESS data. In order to gain speed, I’ve directly modified core.system.php to add this test :
} elseif (in_array($IN->fetch_uri_segment(1), preg_split('/\|/', 'MYTRIGGER'))) {
require PATH_MOD.'my_module/mod.my_module'.EXT;
$MY = new My_module();
}It’s easier, and all the EE class are loaded 😊
Thanks for your support !
You can access the SESS object and modify it using a reference.
<pre><code> /** * Checks the url to see if the last segment matches one of the languages defined in the extension settings. */ function sessions_start(&$obj) { global $IN, $PREFS, $SESS;
// if this is a page request
if(REQ == "PAGE")
{
// get the subdomain
$domains = explode(".", $_SERVER['HTTP_HOST']);
$segs = explode("/", $_SERVER['PHP_SELF']);
}
}[/code]
That might help?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.