/** * This is commercial software, only users who have purchased a valid license * and accept to the terms of the License Agreement can install and use this * program. * * Do not edit or add to this file if you wish to upgrade Godomall5 to newer * versions in the future. * * @copyright ⓒ 2016, NHN godo: Corp. * @link http://www.godo.co.kr */ namespace Controller\Front\Test;
use Globals; use Session; use Response; use Request;
class TestController extends \Bundle\Controller\Front\Test\TestController { protected $db = null;
public function index() { if (!is_object($this->db)) { $this->db = \App::load('DB'); }
public function dbSelect() { $strSQL = "SELECT * FROM es_customText ORDER BY id DESC LIMIT 1"; $result = $this->db->query($strSQL); $data = $this->db->fetch($result);