/fuel/packages/oil/views/scaffolding/crud/actions/view.php
PHP | 6 lines | 4 code | 2 blank | 0 comment | 0 complexity | e78b0c769cfb03e9dd7aebe3d382e7f3 MD5 | raw file
Possible License(s): MIT, BSD-3-Clause
- is_null($id) and Response::redirect('<?php echo $controller_name ?>');
-
- $data['<?php echo $singular_name ?>'] = Model_<?php echo $model_name ?>::find_by_pk($id);
-
- $this->template->title = "<?php echo ucfirst($singular_name) ?>";
- $this->template->content = View::forge('<?php echo $view_path ?>/view', $data);