Hi total newbie so please excuse if this is obvious. The add/update function throws the following error in Firebug.
"NetworkError: 404 Not Found - http://192.168.1.59:88/fgmc/index.php/grid/orgs/update_validation/2"
Here is controller
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Examples extends CI_Controller
{
public function __construct()
{
parent::__construct();
$this->load->database();
$this->load->helper('url');
$this->load->library('grocery_CRUD');
}
public function _example_output($output = null)
{
$this->load->view('example.php',$output);
}
public function programlist()
{
$output = $this->grocery_crud->render();
$this->_example_output($output);
}
public function index()
{
$this->_example_output((object)array('output' => '' , 'js_files' => array() , 'css_files' => array()));
}
public function program_management()
{
try
{
$crud = new grocery_CRUD();
$crud->set_table('program');
$crud->set_subject('Program');
$crud->columns('programName','programDescription','programStart','programEnd','fundingInfo');
$output = $crud->render();
$this->_example_output($output);
}
catch(Exception $e)
{
show_error($e->getMessage().' --- '.$e->getTraceAsString());
}
}
public function category_management()
{
try {
$crud = new grocery_CRUD();
$crud->set_subject('Category');
$crud->set_table('category');
$crud->columns('category', 'isActive');
$crud->display_as('isActive', 'Active? y/n');
$output = $crud->render();
$this->_example_output($output);
} catch (Exception $e) {
show_error($e->getMessage() . ' --- ' . $e->getTraceAsString());
}
}
public function organization_management()
{
try {
$crud = new grocery_CRUD();
$crud->set_subject('Organization');
$crud->set_table('organization');
$crud->columns('organization', 'isActive');
$crud->display_as('isActive', 'Active? y/n');
$output = $crud->render();
$this->_example_output($output);
} catch (Exception $e) {
show_error($e->getMessage() . ' --- ' . $e->getTraceAsString());
}
}
}
as you can see basic, with no actual validation, i just basically plugged in the sample. Interestingly when I created the first function and selected tinyMCE as editor, that first function worked! Once I uploaed tinyMCE it no longer worked no matter what editor I used.
I am sure it is something really simple so I am hoping for advice.