Terror
Active member
hello folks,
for xf1 i made a simple cronjob script that worked great...
can you help me convert this to xf2? i've tried a lot like this but sadly without success...
thanks in advance
for xf1 i made a simple cronjob script that worked great...
Code:
<?php
class AAA_BBB_CCC
{
public static function truncateTable()
{
$db = XenForo_Application::getDb();
$db->query("TRUNCATE TABLE xf_ip");
}
}
can you help me convert this to xf2? i've tried a lot like this but sadly without success...
Code:
<?php
namespace AAA\BBB;
class CCC
{
public static function truncateTable()
{
$db = XenForo_Application::get('db');
$db->query("TRUNCATE TABLE xf_ip");
}
}
thanks in advance