控制器
$caps = array(); $caps['url'] = 'http://example.com/captcha/'; $this->load->view('login/index', $caps);
视图
<?php var_dump($caps); ?>
错误提示: A PHP Error was encounteredSeverity: Notice Message: Undefined variable: caps Filename: login/index.php
求问:什么原因。
|