On Jan 17, 2007, at 11:45 AM, Rosie F. wrote:
> Correcting the URLs is the goal here. The way I am doing it, with > regular expressions, I am finding each anchor and img tag that > contains > one of the problematic paths, exploding all the attributes, fixing the > src or href attribute, and then re-assembling the tag with all its > attributes. I was relying on the Html helper to rebuild each tag with > all of its attributes and the new path. But now I am going to have to > basically re-write the exact thing that the Html helper does, which is > dumb. If the data was corrected by the controller (via a component or whatever) before it hit the view, you'd have to do nothing to the HtmlHelper. > I really liked cakePHP up to this point. But there needs to be a bit > more flexibility in this area. This sort of flexibility is contrary to the fundamental idea behind CakePHP. The MVC programming pattern is well tested and well used. Its benefits are well documented not only in theory but in practice and experience. Gentle hints toward these benefits are built in the guts of CakePHP. You can override, extend, load and move things around however you want, but in doing so, you lose benefits proven by years and years of experience. > When it comes to building content > management systems, which is 90% of what I do, "presentation" IS my > data. I need to be able to massage the data, which is presentation, > from anywhere within the application. If you're coding presentational information in at every level of the application, there is no need for the MVC separation at all. The drawbacks from doing this kind of coding are well documented. > Preferably *without* rewriting > functionality that is already written. You might consider looking into the benefits of MVC design, just to see what you might be missing out on with an approach like this. I'm a biased MVC fan, but looking into it yourself might allow you to make an educated decision as to how MVC (and Cake) will meet your needs. -- John --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
