(10-23-2015, 10:24 PM)taragurung Wrote: I have a form which when clicked is passed to a controller. And I have checked its successfully heading to the desired controller BUT when I try to view the values being passed details with $this->output->enable_profiler(true) in the controller its not displaying anything nothing at all.
Where might be the problem
Thanks
Did you create the profiler.php config file in ../application/config ?
./application/config.php - add to the top of the file.
PHP Code:
/*
|--------------------------------------------------------------------------
| Use CodeIgniter Profiler
|--------------------------------------------------------------------------
|
| TRUE / FALSE
|
*/
//$config['profiler'] = TRUE;
$config['profiler'] = FALSE;
../application/config/profiler.php - create this file:
PHP Code:
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| Profiler Sections
| -------------------------------------------------------------------------
| This file lets you determine whether or not various sections of Profiler
| data are displayed when the Profiler is enabled.
| Please see the user guide for info:
|
| http://codeigniter.com/user_guide/general/profiling.html
|
*/
$config['benchmarks'] = TRUE; // Elapsed time of Benchmark points and total execution time.
$config['config'] = TRUE; // CodeIgniter Config variables.
$config['controller_info'] = TRUE; // The Controller class and method requested.
$config['get'] = TRUE; // Any GET data passed in the request.
$config['http_headers'] = TRUE; // The HTTP headers for the current request.
$config['memory_usage'] = TRUE; // Amount of memory consumed by the current request, in bytes.
$config['post'] = TRUE; // Any POST data passed in the request.
$config['queries'] = TRUE; // Listing of all database queries executed, including execution time.
$config['uri_string'] = TRUE; // The URI of the current request.
$config['session_data'] = TRUE; // Data stored in the current session.
$config['query_toggle_count'] = 25; // The number of queries after which the query block will default to hidden.
/**
* ------------------------------------------------------------------------
* Filename: profiler.php
* Location: ./application/config/profiler.php
* ------------------------------------------------------------------------
*/
../application/core/MY_Controller - create and add tis:
PHP Code:
/**
* __construct
* --------------------------------------------------------------------
*
* Class Constructor PHP 5+
*
* @access public
*/
public function __construct()
{
parent::__construct();
// check to see if we want to use the CI profiler.
$this->output->enable_profiler($this->config->item('profiler'));
log_message('debug', 'CI : MY_Controller class loaded');
}
Now when ever you need to use the profiler just change the TRUE/FALSE in the profiler.php config file.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )