123456789101112131415161718192021222324252627 |
- <?php
- namespace Test\Controller;
- use KIF\Core\Controller;
- use Test\Dao\ProductIndex;
- class Test extends Controller {
- public function run() {
-
- $action = $this->action;
- $this->$action();
- }
-
- private function doDefault() {
- $this->tpl = 'test';
-
- $objProductIndex = new ProductIndex();
- $productIndex = $objProductIndex->get(100000);
-
- $this->setOutput('test', '我是测试');
- $this->setOutput('productIndex', $productIndex);
- }
-
- public function display() {
- $this->render();
- }
- }
|