Re: Custom Component and Redirect problem

2008-02-08 Thread Micro
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() { }

Re: Custom Component and Redirect problem

2008-02-08 Thread Micro
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

Re: Custom Component and Redirect problem

2008-02-07 Thread Fran Iglesias
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

Re: Custom Component and Redirect problem

2008-02-07 Thread Kjell Bublitz
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()

Custom Component and Redirect problem

2008-02-07 Thread Micro
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');