Tuesday, September 29, 2009

Re: Extracting PATHS but not the full HTML object

I don't about images, but to get the path to an action, you can use
Router::url(array('controller' => '...', 'action' => '...'))

On Mon, Sep 28, 2009 at 8:49 PM, tcornett <tcornett@gmail.com> wrote:
>
> I am curious how I would extract the path of a LINK or an IMAGE
> without getting the whole HTML object.  Instead of getting the '<a
> href=.......' or '<img .....', I would simply get the URL or PATH to
> use.
>
> For example, I want to use a URL to a view in my site in an IMAGE MAP
> or I want use the path to an IMAGE in a rollover or background image.
>
> Is this possible?  If so, can someone point me in the right direction?
>
> Thank you for any help
> >
>

--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: