Jump to content


compression add action

compression form

  • Please log in to reply
No replies to this topic

#1 mavershim

mavershim

    Advanced Member

  • Members
  • PipPipPip
  • 40 posts

Posted 11 October 2012 - 02:38 AM

hi,

i have created a new action on a list but its always showing me this error:

Content Encoding Error

The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.


Please contact the website owners to inform them of this problem.

my config has compression set to false and i'm not using any form of compression.

$config['compress_output'] = false;

i have tried the sample on creating new action
function just_a_test($primary_key , $row)
{
return site_url('demo/action/action_photos').'?country='.$row->country;
}
function sample1{
$crud= new grocery_CRUD();
$crud->set_table('icms_sample1');
$crud->set_relation_n_n('taxanomy','icms_casetaxanomy', 'icms_taxanomys','caseid' ,'id_taxanomys', 'taxanomyDescription');
$crud->set_relation_n_n('employeeid','icms_complainant', 'icms_govemployee','caseid' ,'employeeid', 'fullname');
	 $crud->set_relation('casestatus', 'icms_casestatus','CASE_STATUS');
	 $crud->set_relation('nature', 'icms_casenatures','CASE_NATURE');
	 $crud->set_relation('casetype', 'icms_casetypes','CASE_TYPE');
$crud->set_relation('position', 'icms_positions','positionDescription');
$crud->set_relation('agency', 'icms_agencies','Agency');
$crud->columns('caseno','employeeid','complainant','taxanomy','casestatus','nature','days pending');
	 $crud->unset_delete();
$crud->unset_edit();
$crud->add_action('Photos', '', '','ui-icon-image',array($this,'just_a_test'));
$crud->callback_before_insert(array($this,'checking_case_no'));
$crud->callback_before_update(array($this,'modified'));
	 $crud->field_type('caseno', 'invisible');
$crud->field_type('taxanomy', 'text');
$crud->field_type('createdby', 'invisible');
$crud->field_type('datecreated', 'invisible');
$crud->field_type('modifyby', 'invisible');
$crud->field_type('datemodified', 'invisible');

if($crud->getState()==='edit'){
		 $crud->field_type('caseno', 'readonly');
}

	
	 $output = $crud->render();
	 $this->_example_output($output);
}






Also tagged with one or more of these keywords: compression, form

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users