Error here:
==========output in browser============
Notice (8): Uninitialized string offset: 0 [CORE/cake/libs/model/
model.php, line 1319]

Code | Context

Model::__saveMulti() - CORE/cake/libs/model/model.php, line 1319
Model::save() - CORE/cake/libs/model/model.php, line 1239
PostsController::add() - APP/controllers/posts_controller.php, line 22
Object::dispatchMethod() - CORE/cake/libs/object.php, line 115
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 227
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 194
[main] - APP/webroot/index.php, line 88
========================

Where error comes from in posts_controller.php:
=============code==============
function add() {
        if (!empty($this->data)) {
            $this->Post->create();
            if ($this->Post->save($this->data)) {  /* this is line 22
*/
                $this->flash(__('Post saved.', true),
array('action'=>'index'));
            } else {
            }
        }
        $tags = $this->Post->Tag->find('list');
        $statuses = $this->Post->Status->find('list');
        $this->set(compact('tags', 'statuses'));
    }
===============================

Can anyone help me figure out what is going on? I'm pretty new to
CakePHP...

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to