Hey, Well I am coding this *simple* website which has users, articles and images. Its the simple scenary. It contains a front and backend all action-separated with proper "admin" pre-named.
The images controller offers the administrators the oportunity to list, upload, edit and delete the images. The interface is a simple CRUD. But it comes to the point that I want to include an image (existing or new) to an Article. Not that matters but the rich editor triggers a popup which displays the Images options. The problem comes here. Well right now I am playing with setting a "simpler" layout, by passing a condition on the URI: admin/images/ mode:inline. But the problem is that I must update ALL links of the Images views, to "transport" the "mode" condition. So a link to admin/images/upload, must carry out the "mode:inline", if mode is present. This results in views being able to service both scenarios: accessed directly as a controller or by the popup. But this is not a clean solution, neither is readable (come across + 10 links, all with same code.) What do you suggest? It would be fine (and not an hack, but an honest solution) if it was possible to mantain certain *persistent* conditions on the URI automaticly. But I want an MVC (not just because its cool, but as a part of code organization/optimization) and this problem will be an example for future projects. Hope you help, thanks in advance! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
