07-02-2016, 05:53 AM
http://127.0.0.1/CompanyGiondaCI/index.p...tctgcreate
Warning: include(C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyGiondaCI\application\views\errors\html\error_php.php): failed to open stream: No such file or directory in C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyGiondaCI\system\core\Exceptions.php on line 269
Warning: include(): Failed opening 'C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyGiondaCI\application\views\errors\html\error_php.php' for inclusion (include_path='.;C:\php\pear') in C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyGiondaCI\system\core\Exceptions.php on line 269
Warning: include(C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyGiondaCI\application\views\errors\html\error_php.php): failed to open stream: No such file or directory in C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyGiondaCI\system\core\Exceptions.php on line 269
Warning: include(): Failed opening 'C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyGiondaCI\application\views\errors\html\error_php.php' for inclusion (include_path='.;C:\php\pear') in C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyGiondaCI\system\core\Exceptions.php on line 269
Hello,
I am trying to add this data to views/addparentctg.php
controllers/cpages.php
models/mpages.php
How to fix the error so that I can add new menu for parent category smoothly?
Thanks in advance.
Warning: include(C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyGiondaCI\application\views\errors\html\error_php.php): failed to open stream: No such file or directory in C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyGiondaCI\system\core\Exceptions.php on line 269
Warning: include(): Failed opening 'C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyGiondaCI\application\views\errors\html\error_php.php' for inclusion (include_path='.;C:\php\pear') in C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyGiondaCI\system\core\Exceptions.php on line 269
Warning: include(C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyGiondaCI\application\views\errors\html\error_php.php): failed to open stream: No such file or directory in C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyGiondaCI\system\core\Exceptions.php on line 269
Warning: include(): Failed opening 'C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyGiondaCI\application\views\errors\html\error_php.php' for inclusion (include_path='.;C:\php\pear') in C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyGiondaCI\system\core\Exceptions.php on line 269
Hello,
I am trying to add this data to views/addparentctg.php
PHP Code:
<div class="row-fluid">
<div class="span12">
<div class="widget-box">
<div class="widget-title"><h5>Parent Categories</h5></div>
<div class="widget-content">
<?php $this->load->library('form_validation'); ?>
<?php echo validation_errors(); ?>
<?php echo form_open('cpages/addparentctgcreate'); ?>
<table border="0" style="width: 80%; height: 90px;">
<tr>
<td>PARENT NAME</td>
<td><input type="text" name="ctgname"></td>
</td>
<tr>
<td>DESCRIPTION</td>
<td><input type="text" name="ctgdescription"></td>
</td>
<tr>
<td></td>
<td><input type="submit" class="edit" name="submit" value="SUBMIT" /></td>
</td>
</table>
</form>
</div>
</div>
</div>
</div>
controllers/cpages.php
PHP Code:
class Cpages extends CI_Controller {
/**
* Index Page for this controller.
*
* Maps to the following URL
* http://example.com/index.php/welcome
* - or -
* http://example.com/index.php/welcome/index
* - or -
* Since this controller is set as the default controller in
* config/routes.php, it's displayed at http://example.com/
*
* So any other public methods not prefixed with an underscore will
* map to /index.php/welcome/<method_name>
* @see https://codeigniter.com/user_guide/general/urls.html
*/
public function __construct()
{
parent::__construct();
$this->load->helper('url');
$this->load->helper('url_helper');
$this->load->helper('form');
$this->load->library('form_validation');
}
public function addparentctgcreate() {
/*
$this->form_validation->set_rules('ctgname', 'Category Name', 'required');
$this->form_validation->set_rules('ctgdescription', 'Category Description', 'required');
*/
if($this->form_validation->run() === FALSE)
{
$this->load->view('cpages/addparentctgcreate');
}
else
{
$this->mpages->set_parentctg();
$this->load->view('cpages/addparentctgsuccess');
}
}
models/mpages.php
PHP Code:
class Mpages extends CI_Controller {
public function __construct()
{
parent::construct();
}
public function set_parentctg()
{
$data = array(
'ctgname' => $this->input->post('parent_name');
'ctgdescription' => $this->input->post('description')
);
return $this->db->insert('menu', $data);
}
}
How to fix the error so that I can add new menu for parent category smoothly?
Thanks in advance.
" If I looks more intelligence please increase my reputation."