Re: $_SERVER['HTTTP_REFERERR'] or $_SERVER['PHP_SELF'] in CAKE ?
http://api.cakephp.org/class_controller.html#e87c8e6edf53aadc511e3d050d71a494 -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On 8/22/07, xephex <[EMAIL PROTECTED]> wrote: > > > On 22 Aug., 12:42, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > I have two controllers : slideshows and slides. One slideshow can have > > many slides. > > > > I'm editing my slideshow that have for example 9 slides : > > > > (photoslideshows/edit/1). > > > > Near each slide i have action from other controller : slides/delete/id > > so i can delete each photo from this slideshow. > > > > $html->link('Delete', "/slides/delete/".$slide['Photoslide']['id'], > > null,'Jestes pewien?') .'' ; > > > > In my slides controller i have action: > > function delete($id) > > { > > $this->Photoslide->del($id); > > $this->flash('Slide with id: '.$id.'deleted', '/photoslideshows/ > > slideshow_list'); > > > > } > > > > After delete action i want to get back to my slideshow that i > > currently editing not to slideshow_list of all slideshows. > > > > How to do this? Please help. > > > > In PHP i use $_SERVER['HTTTP_REFERERR'] or $_SERVER['PHP_SELF'] . How > > can i do this in CAKEPHP > > $_SERVER['PHP_SELF'] wont help you - this has nothing to do with > referers. > You can use $_SERVER['HTTP_REFERER'] > Or, you read the slides slideshow before deleting it. Then you delete > it and then you can redirect to the slideshow you read. > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: $_SERVER['HTTTP_REFERERR'] or $_SERVER['PHP_SELF'] in CAKE ?
On Aug 22, 12:42 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > In PHP i use $_SERVER['HTTTP_REFERERR'] Look up the controller method referer hth, AD --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: $_SERVER['HTTTP_REFERERR'] or $_SERVER['PHP_SELF'] in CAKE ?
On 22 Aug., 12:42, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I have two controllers : slideshows and slides. One slideshow can have > many slides. > > I'm editing my slideshow that have for example 9 slides : > > (photoslideshows/edit/1). > > Near each slide i have action from other controller : slides/delete/id > so i can delete each photo from this slideshow. > > $html->link('Delete', "/slides/delete/".$slide['Photoslide']['id'], > null,'Jestes pewien?') .'' ; > > In my slides controller i have action: > function delete($id) > { > $this->Photoslide->del($id); > $this->flash('Slide with id: '.$id.'deleted', '/photoslideshows/ > slideshow_list'); > > } > > After delete action i want to get back to my slideshow that i > currently editing not to slideshow_list of all slideshows. > > How to do this? Please help. > > In PHP i use $_SERVER['HTTTP_REFERERR'] or $_SERVER['PHP_SELF'] . How > can i do this in CAKEPHP $_SERVER['PHP_SELF'] wont help you - this has nothing to do with referers. You can use $_SERVER['HTTP_REFERER'] Or, you read the slides slideshow before deleting it. Then you delete it and then you can redirect to the slideshow you read. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
$_SERVER['HTTTP_REFERERR'] or $_SERVER['PHP_SELF'] in CAKE ?
I have two controllers : slideshows and slides. One slideshow can have many slides. I'm editing my slideshow that have for example 9 slides : (photoslideshows/edit/1). Near each slide i have action from other controller : slides/delete/id so i can delete each photo from this slideshow. $html->link('Delete', "/slides/delete/".$slide['Photoslide']['id'], null,'Jestes pewien?') .'' ; In my slides controller i have action: function delete($id) { $this->Photoslide->del($id); $this->flash('Slide with id: '.$id.'deleted', '/photoslideshows/ slideshow_list'); } After delete action i want to get back to my slideshow that i currently editing not to slideshow_list of all slideshows. How to do this? Please help. In PHP i use $_SERVER['HTTTP_REFERERR'] or $_SERVER['PHP_SELF'] . How can i do this in CAKEPHP --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---