Instant Generator - Zend Framework conform class names

Hello,

unfortunately Zend Framework has some class naming conventions which can’t be configured with the instant generator.

This is an example of a directory structure:

  • Package
    — Subpackage
    ------ MyClass.php

Contents of the MyClass.php:

<?php

class Package_Subpackage_MyClass {
   .....
}

?>

The UML diagram looks like this:
http://www.grosse-puppendahl.de/uml.jpg

Generating code from this diagram would create the following php code:

<?php

class MyClass {
   .....
}

?>

The directory structure is absolutely right, but the class must be named according to its package.

Is there a way to solve this problem?

Thanks for your help,
Tobias

Hi Tobias,

Thanks for your post. I’ve passed the issue to our engineering to follow-up. Once there is any feedback, I’ll come back to you immediately.

By the meantime, if you have any inquiries, please do not hesitate to contact me.

Best regards,
Lilian Wong

Hi Lilian,

thank you! I’m sure that this feature will be of importance for many PHP / Zend Framework developers.

I’m really looking forward to seeing this feature in future releases!

Best Regards,
Tobias Große-Puppendahl

Hi Tobias,

You are welcome. I’ll keep you informed for any news about this issue.

Best regards,
Lilian Wong

any news to this post???

thanks

Hi Tobias,

Currently we have no plan to support Zend Framework. But you may customize the code generation template to fulfill your need. For details, please read:
http://www.visual-paradigm.com/support/documents/vpumluserguide/276/330/7416_customizingc.html

Best regards,
Jick

I think this feature will be great.
Anyone have make a templete for zend framework peculiarities?