I did that but still i am getting the blank page while redirecting eg:
$this->redirect('/admin_cms_travels');
I am using CakePHP 2.5.4
Any suggestion ?
On Sunday, September 7, 2014 7:49:02 AM UTC+5:30, euromark wrote:
>
> Because it is unnecessary and can easily result in avoidable whitespace
> errors.
>
> Am Sonntag, 7. September 2014 04:18:06 UTC+2 schrieb Techinfocomp:
>>
>> Why we not suppose to include closing TAG (?>) "make sure all php files
>> do not have closing ?>" ?
>>
>>
>> On Monday, June 3, 2013 9:06:03 AM UTC+5:30, Cheng Ka Teng wrote:
>>>
>>> if there is NO redirect at all you probably echo sth too soon and
>>> therefore headers are already sent and your redirect cannot work anymore .
>>> Please check the files inside app/controller, make sure all php files do
>>> not have closing ?>
>>>
>>> On Sunday, March 11, 2012 9:54:30 AM UTC+8, Brian Bowler wrote:
>>>>
>>>> So I have this function where the user can add the weight to materials
>>>> and save them. However after the updateAll, $this->redirect doesn't work
>>>> at
>>>> all and the result shows up with a blank page with nothing in the source.
>>>> In an ideal world I would have it redirect to a different page but at a
>>>> minimum I would like it to go back to the page where they entered in the
>>>> weights.
>>>>
>>>> public function instructions($id = null) {
>>>> $instructions = $this->Formula->findFormula($id);
>>>> $count = count($instructions);
>>>> $this->set(array('instructions' => $instructions, 'count' =>
>>>> $count, 'formulaId' => $id));
>>>> if(!empty($this->data)) {
>>>> $count = count($this->request->data);
>>>> for($i = 0; $i <= $count; $i++) {
>>>> $this->Formula->updateAll(
>>>> array('Formula.weight' =>
>>>> $this->request->data['Formula'][$i]['weight']),
>>>> array('Formula.id' =>
>>>> $this->request->data['Formula'][$i]['id'])
>>>> );
>>>> }
>>>> }
>>>> $this->redirect(array('controller' => 'instructions', 'action'
>>>> => 'instructions', $id));
>>>> }
>>>>
>>>> I have no idea what causes this. Any help is much appreciated, even if
>>>> its just telling me where in the manual to read up on it.
>>>>
>>>
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.