$article = Model_Article::forge(array(
'category_id' => Input::post('category_id'),
'user_id' => $user->id,
'author' => Input::post('author'),
'status' => Input::post('status'),
'allow_comments' => Input::post('allow_comments'),
'title' => Input::post('title'),
'summary' => Input::post('summary'),
'body' => Input::post('body'),
'videos' => $videos,
'tags' => Input::post('tags'),
'uri' => Model_Article::_create_article_uri(Input::post('title')),
'gallery_id' = $gallery->id,
'view_count' => 0,
'published_at' => strtotime(Input::post('published_at')),
));
$article->save();
It looks like you're new here. If you want to get involved, click one of these buttons!