Re: $this->redirect not working

2014-09-06 Thread Techinfocomp
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 cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: $this->redirect not working

2014-09-06 Thread 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 cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Cake 2.0 documentation Vs Cake 1.3 documentation

2012-12-28 Thread Techinfocomp
Hello,

I Feel that Cake 1.3 documentation is much understandable and easier then 
Cake 2.0 documentation, I don't know why CakePHP Did that ?

Eg:

AuthComponent in 2.0
-
http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html

And

AuthComponent in 1.3

http://book.cakephp.org/1.3/en/The-Manual/Core-Components/Authentication.html

In 1.3 it's clearly mention that how can i convert my normal password 
string into MD5 but in 2.0 it's not clear to me because there are many 
changes in AuthComponent.

One more example:

in 1.3 AuthComponent Variables are clearly described but in 2.0 there is no 
description regarding AuthComponent Variables

Any one here can help me to understand this ?

What i am trying to do is i need to convert my password in to Clean MD5 
only i don't want any extra string need to be added other then my password 
only like i don't want salt string etc.

Thanks

Harsh Gupta

-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.