PageRenderTime 46ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/fuel/packages/oil/views/scaffolding/crud/actions/view.php

https://bitbucket.org/sriedel/iccrm-wip
PHP | 6 lines | 4 code | 2 blank | 0 comment | 0 complexity | 60a97ad68c6ed8c1a7cd85c38054f6c5 MD5 | raw file
Possible License(s): MIT
  1. is_null($id) and Response::redirect('<?php echo $controller_name ?>');
  2. $data['<?php echo $singular_name ?>'] = Model_<?php echo $model_name ?>::find_by_pk($id);
  3. $this->template->title = "<?php echo ucfirst($singular_name) ?>";
  4. $this->template->content = View::forge('<?php echo $view_path ?>/view', $data);