请帮忙,我不明白错误在哪里。在日志中我有错误500。
脚本:
$('.image_reload').click(function(){
$url = '<?php echo config_item('base_url')?>ajax/page_data/admin_add_new_article';
$.ajax({
url: $url,
cashe: false
}).done(function(html){
$('.image_content').html(html);
});
});
public function page_data($type='')
{
if($type=='admin_add_new_article')
{
$this->load->model('Article_image_model','article_image');
$data['result'] = $this->article_image->getImagesWithoutPattern();
if(count($data['result']->result_arrau())>0)
{
$this->load->view('admin_sub/new_article_images_prev',$data);
}
}
}