Ok, I try to remove all the print out and stuff, but, i still get the
same error.
class TradesController extends AppController {
var $name = 'Trades';
var $components = array('Date');
var $helpers = array('Html', 'Form');
function index() {
}
I figure out now. There is some funny character in my Date
component. That's why it screw up the header for redirect. Thank you
for everyone input. I love the CakePhp community.
On Feb 8, 11:26 am, Micro [EMAIL PROTECTED] wrote:
Ok, I try to remove all the print out and stuff, but, i still
El 07/02/2008, a las 23:43, Micro escribió:
If I uncomment the $this-redirect(array('action'='index')), my
component works perfectly fine, and i don't get any error. I try to
comment out the component part, and it works fine. The problem only
occurs when I use my custom component and has
If you just wanna test if the timestamp is there, you can simply exit
before doing the redirect().
You could just do this: pr($timeStamp); exit(); if you expect an array.. if
you expect just a string exit($timeStamp); will do the same trick.. as an
alternative to pr() which is just the print_r()
I am using CakePhp 1.2 So, I created a component called Date. I
embedded in my class following the example.
My controller class:
class TradesController extends AppController {
var $name = 'Trades';
var $components = array('Date');
var $helpers = array('Html', 'Form');