Sparx Systems Forum
Enterprise Architect => Suggestions and Requests => Topic started by: aijalon on January 18, 2005, 01:00:29 pm
-
We use custom filename (or extensions) in php for better organization. For e.g. a class will be represented as x.class and a form would be represented as x.form etc. Is there any way a feature can be added where user can define what extensions to look for when importing the sources?
-
You can do this already for predefined languages: Tools/Options/Generation/<your language>/Import extensions.
AFAIK you can add PHP to this list of languages - but I forgot how. There was a post from Sparx support on how to do this.
-
Thanks for your tip, but it is hard to tell where if it is there without proper docs (may be I overlooked it). But the surprising thing is that it is not mentioned in any the help files that I have and except your post I can't find any other.
So I am still stuck with how to add the php to generation menu. Any body has any ideas?
-
Sh... I found the post http://www.sparxsystems.com.au/cgi-bin/yabb/YaBB.pl?board=general;action=display;num=1103792394;start=1#1 and I played around a bit. It is possible to define code templates and create code, but the options do not include the new language. You can define the fully specified name of the class using the context menu Generate Code (fwd) / Path.
Sparx plans to include PHP5 support for one of the next releases.
-
There currently isn't a PHP options page and it's not currently possible to specify the file extentions to use when importing PHP. This will change for build 745.
Simon
-
A PHP options page including the extensions to look for PHP code in when doing a directory import has been added for build 754 which is a beta build of version 4.51 available only to registered users.
See http://www.sparxsystems.com.au/cgi-bin/yabb/YaBB.pl?board=Latest;action=display;num=1107149640
Simon
-
I am still trying to evaluate the system and we are predominantly PHP shop. So any way I can get to test it out. I'd like to see how the product works before I make a decision.