Hi everybody, This may be obvious to some, I'm pretty sure I remember reading about it previously, but I could not find the article I originally read.
I am creating a "shareItem" action for a site I am working on. This is pretty standard it just builds a URL for a public view of the item and sends it to, for example, delicious. A little tweak is that the client wants the shareItem link to open in a new window with a left frame with more sharing links, and load the originally selected sharing link in the right frame. To do this I am passing the selected sharing url as well as the item ID to the shareItem action, which then loads the left frame with sharing links based on the item id, and loads the selected sharing url into the right frame. the problem is passing the selected sharing URL as a GET parameter. The link to the shareItem action looks similar to this http://localhost/charity/dashboard/shareHo/33/?u=http://delicious.com/save?v=5&noui&jump=close&url=http://localhost/charity/items/shareItem/33&title=Following%20a%20short%20recapture%20of%20the%20Italian%20peninsu the problem is that cake uses url= as a special keyword, but this is required for most of these sharing sites. Here is the error I get when I load this url into my browser: Missing Controller *Error: * *Http:Controller* could not be found. *Error: * Create the class *Http:Controller* below in file: charity/controllers/http:controller.php <?php class Http:Controller extends AppController { var $name = 'Http:'; } ?> *Notice: * If you want to customize this error message, create charity/views/errors/missing_controller.ctp Now I know this is because of the url=http:// line because when I modify url= to anything else, for example, test= then the link loads properly. Unfortunately then delicious doesn't get the url. I have tried using the php method urlencode() on the url string but it does not help. Anyone have any idea? Am I going at this in the totally wrong way? I think I can work around by sending the "target site" (ie. facebook, delicious, digg) to the shareItem action and then build the link from in there), but I would like to know if there is a way to stop Cake from parsing that url= line. Thanks in advance for any comments, critiques, or suggestions! Dave -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected]. 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=.
