All posts in Uncategorized

Màn hình Setting

Màn hình setting thêm sửa xóa B1: Tạo file PHP trong view VD: modules/Accounts/views/Settings.php Tạo function process sẽ gọi ra $viewe = $this->getViewer ($request); $viewer truyền biến sang tpl VD: $viewer->assign(‘value’,$var) $viewer sẽ trỏ về đường dẫn tpl VD:$viewer->view(‘DashBoardFunnelChart.tpl’, $moduleName) B2: Tạo file tpl theo đường dẫn trỏ ở trên . . . Read more

Sử dụng log4php

First, install Composer if you don’t yet have it: php -r “eval(‘?>’.file_get_contents(‘https://getcomposer.org/installer’));” Create a composer.json file with the following content: { “require”: { “apache/log4php”: “2.3.0” } } Run the Composer install procedure: php composer.phar install This will install Apache log4php in vendor/apache/log4php. To use log4php simply include vendor/autoload.php in your script. require ‘vendor/autoload.php’; $log = . . . Read more