⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

add/update throws 404 error update_validation/n not found.



fatguyfromqueens

fatguyfromqueens
  • profile picture
  • Member

Posted 14 October 2015 - 20:09 PM

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.

 

 

 

 


Amit Shah

Amit Shah
  • profile picture
  • Member

Posted 29 February 2016 - 12:01 PM

Dear Mr. Chotu .... this is no forum for java developers ... this is purely PHP developers with specially GroceryCrud library usage requirements ...please consult the same with someone on stackoverflow or other forums suited for it.

 

AND DONT SPAM THE FORUM WITH YOUR STUPID ADVERTISEMENTS.


Amit Shah

Amit Shah
  • profile picture
  • Member

Posted 29 February 2016 - 13:49 PM

Hi fatguyfromqueens

 

First i will like to  bring to your notice that the code shared by you is not the one you may be using in for the url. Please check - they all different.