This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 23rd, 2011  |  syntax: PHP  |  size: 0.41 KB  |  views: 82  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php defined('SYSPATH') or die('No direct script access.');
  2.  
  3. class Controller_Admin_Cruds extends Controller_Template {
  4.         public $template = 'admin/template';
  5.  
  6.         function action_location() {
  7.                         //$columns = db::getcolumns($table);
  8.                         $address = $this->request->param('crudname');
  9.                         $this -> template -> content = Request::factory("admin/cruds/$address")->query('action', 'list')->execute()->response;
  10.         }
  11.  
  12. }
  13. ?>
clone this paste RAW Paste Data