Hello,guys: I got errors like this:
string(1124) " Phalcon\Mvc\Model\Exception: Property 'type' does not have a setter. File=/usr/share/nginx/html/site_www/app/share_library/Apc.php Line=22
0 [internal function]: Phalcon\Mvc\Model->__set('type', NULL)
1 [internal function]: Phalcon\Mvc\Model->unserialize('a:11:{s:2:"id";...')
2 [internal function]: unserialize('a:6:{s:5:"model...')
3 [internal function]: Phalcon\Mvc\Model\Resultset\Simple->unserialize('a:6:{s:5:"model...')
4 /usr/share/nginx/html/site_www/app/share_library/Apc.php(22): apc_fetch('attachuserid16a...')
5 /usr/share/nginx/html/site_www/app/controllers/AuthController.php(566): Apc->get('attachuserid16a...')
6 /usr/share/nginx/html/site_www/app/controllers/AuthController.php(272): AuthController->getBanners('16', 0)
7 [internal function]: AuthController->indexAction()
8 [internal function]: Phalcon\Dispatcher->callActionMethod(Object(AuthController), 'indexAction', Array)
9 [internal function]: Phalcon\Dispatcher->_dispatch()
10 [internal function]: Phalcon\Dispatcher->dispatch()
11 /usr/share/nginx/html/site_www/public/index.php(204): Phalcon\Mvc\Application->handle()
12 {main}
"
Apc.php line 22 is :
public function get($key) {
return apc_fetch($key); -------- line 22 }
Other info
var_dump($application->handle());die;
echo $application->handle()->getContent();
There is a apc key. when I use this in the header of index.php like this: it got infos.
apc_fetch('aaa');
try {
$config = new Phalcon\Config\Adapter\Ini(__DIR__ . '/../app/config/config.ini');
...
but when I used in the page like this: it got errors above.
public function get($key) {
apc_fetch('aaa'); return apc_fetch($key); }
How can I resolve this?
Thanks in advance!