PageRenderTime 49ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://bitbucket.org/arkross/venus
PHP | 6 lines | 4 code | 2 blank | 0 comment | 0 complexity | e78b0c769cfb03e9dd7aebe3d382e7f3 MD5 | raw file
Possible License(s): MIT, BSD-3-Clause
  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);