From: <jos...@ta...> - 2004-01-28 13:02:02
|
Firstly my apologies for posting to the developers list but it seems have a little more activity than the users list and I'd rather not email this question to some of the learned individuals on this list without their permission first. I develop mainly in Struts and especially Tiles and have just started using PHP. I have hunted around for a PHP alternative to Struts and I think I have settled on Phrame for it's simplicity and stability. However rather than using Smarty or XSLT I would like to contain my webapp in a single index.php page with includes rather than forwards, similar in design to the tutorial on Zend 'How Not To Use A Template System' (http://www.zend.com/zend/tut/tutorial-Darrell.php). The problem I have to create the controller in the index.php which then forwards to the index.php, creating a recursive loop. So I suggest extending the ApplicationController with MyController and override the _processForward() function with one that performs an include rather than a forward. This seems to me the simplest approach but would it give me what is required. For example will I be able to access session variables correctly? Any comments would be most welcome. Regards, Joss Wright -------------------- talk21 your FREE portable and private address on the net at http://www.talk21.com |