ID: 11844 Updated by: rasmus Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: Feature/Change Request Operating System: Win 2000 PHP Version: 4.0.6 New Comment:
It is syntactical candy that would slow down the parser by a huge amount. You can do exactly the same thing with less typing like this: <?$webskin->menu('Clothing')?> <?$webskin->menuItem('Shirts','shirts.php')?> <?$webskin->menuItem('Pants','pants.php')?> <?$webskin->menuItem('Socks','socks.php')?> <?$webskin->endmenu()?> Previous Comments: ------------------------------------------------------------------------ [2001-10-02 11:03:19] [EMAIL PROTECTED] The purpose of the tag libraries is to appropriately call the functions. One of the advantages is nested tags. Code would look a lot cleaner as well. ------------------------------------------------------------------------ [2001-10-02 10:58:49] [EMAIL PROTECTED] So make yourself a function and call it. This isn't going to happen in PHP. ------------------------------------------------------------------------ [2001-10-02 10:51:08] [EMAIL PROTECTED] There is a good tutorial on JSP tags are at http://java.sun.com/products/jsp/tutorial/TagLibrariesTOC.html. To give you an idea, let's say I wanted PHP to automatically generate code (defined through tag library) for a menu: <webskin:menu title="Clothing"> <webskin:menuItem title="Shirts" url="shirts.php"/> <webskin:menuItem title="Pants" url="pants.php"/> <webskin:menuItem title="Socks" url="socks.php"/> </webskin:menu> ------------------------------------------------------------------------ [2001-10-02 04:19:54] [EMAIL PROTECTED] No feedback -> closing ------------------------------------------------------------------------ [2001-07-02 14:55:55] [EMAIL PROTECTED] What are JSP tags? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/?id=11844 Edit this bug report at http://bugs.php.net/?id=11844&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]