Welcome Guest, Not a member yet? Register   Sign In
how to display contents of $data in profiler ?
#9

[eluser]John_Betong[/eluser]
[quote author="flemming" date="1257194083"]John, this may be a very dumb question but how on earth does fred() know what I want it to process? In your example you pass in
Code:
$data='usage: fred("any type of data")', $data_name='missing_$data_name'
... how can I tell it I want it to use the CI $data array?[/quote]
 

Code:
// copy and paste this into your view  
  $boolean = TRUE;
  $num     = 123;
  $real    = 123.456;
  $str     = 'string value goes here';
  $a       = array('one', 'twow', 'three');
  $object  = 'works for objects as well';
  $curl    = 'under development';    

  fred($boolean, 'this is  boolean');
  fred($num,     'this is an integer');
  fred($real,    'this is a real number');
  fred($a,       'this is an array');
  fred($object,  'this is an object that displays the contents in an array');
  fred($curl,    'this is $curl properties');
 
 
The second parameter is optional but useful if you pass __FILE__ or __LINE, etc
 
 
 


Messages In This Thread
how to display contents of $data in profiler ? - by El Forum - 10-30-2009, 04:10 AM
how to display contents of $data in profiler ? - by El Forum - 10-30-2009, 05:51 AM
how to display contents of $data in profiler ? - by El Forum - 10-30-2009, 06:13 AM
how to display contents of $data in profiler ? - by El Forum - 10-30-2009, 06:57 AM
how to display contents of $data in profiler ? - by El Forum - 10-30-2009, 08:14 AM
how to display contents of $data in profiler ? - by El Forum - 10-30-2009, 08:56 AM
how to display contents of $data in profiler ? - by El Forum - 10-30-2009, 10:14 AM
how to display contents of $data in profiler ? - by El Forum - 11-02-2009, 08:34 AM
how to display contents of $data in profiler ? - by El Forum - 11-02-2009, 09:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB