Rosie,

You've started quite a debate here :).
I am currently building a CMS using Cake and tinyMCE as well.

I believe you should have all URL mapping done using Components and
not the view.

The solution I am aiming towards is to have the images referenced like
so:
// Images is a controller and render is a function that outputs the
content of the image
/cms/images/render/12345

Once time comes to render the page for the front-end, you can use a
component like so:
// This would take place inside your controller
ob_start();
$this->render('page');
$content => ob_get_clean();

// FrontEndFilter takes care of looking for anchors that reference the
cms and rewriting them to point to the appropriate location
$FrontEndFilter = new FrontEndFilter();
$FrontEndFilter->startup($this);
$filteredContent = $FrontEndFilter->filter($content);

// at this point, all /cms/images/00000 should point to their
appropriate URLs (e.g. http://www.domain.com/images/image_00000.jpg)

This solution would have all your URLs created using a component, and
not a helper. Inside your helper, you can have something like $this-
>controller->FrontEndFilter->transform($url).

This, of course, implies the data of the image is stored in the
database.

Hope this makes any sense.
If you have the time, please let me know how it goes; I believe we are
working on a very similar project.

Thanks

Dimitry


On Jan 17, 12:17 pm, "Rosie F." <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> I have a need to create links (both regular and images) from within the
> controller/component side of things.  Normally of course we would use
> the Html helper to make links.  But for this particular need I have,
> the links must be created before sending to the view.  Is there a
> component analogous to the Html helper that i can use to create links
> and image tags?
>
> Thanks
> Rosie


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to