Inline Zend Navigation links in view content saved to db
- by takeshin
I'm storing the page content in the database (both as markup and HTML code) and displaying this content in the view (let's say it's CMS or forum post).
The this data have also some links to internal pages existing in sitemap (Zend_Navigation object). It's easy to insert the link in page body just by using <a> tag. But the contents of this inline links does not change when I update the sorce XML for Zend Navigation (url's, attributes, ACL permissions).
How do you handle this case? Special markup for the link, converting the link using url view helper? Iterate Zend_Navigation object extracting specific link (one by one)?