* Theme::view() * * Loads the view just as CI would normally do and * passed it to the theme function wrapping the view into the theme * * @param string $view The view to load * @param array $data The data array to pass to the view * @param bool $return (optional) Return the output? * @return void or the HTML */
($view, $data = array(), $return = false)
| 216 | * @return void or the HTML |
| 217 | */ |
| 218 | function view($view, $data = array(), $return = false) |
| 219 | { |
| 220 | $data = is_array($data) ? $data : array(); |
| 221 | $data = array_merge($this->_data, $data); |
| 222 | $content = $this->partial($view, $data, true); |
| 223 | return $this->render($content, $return); |
| 224 | } |
| 225 | |
| 226 | /** |
| 227 | * Theme::render() |