You are here: Re: [PHP] Classes code completion and Zend Studio « PHP « IT news, forums, messages
Re: [PHP] Classes code completion and Zend Studio

Posted by Zareef Ahmed on 03/14/05 20:02

On Mon, 14 Mar 2005 09:03:00 -0800 (PST), Richard Lynch <ceo@l-i-e.com> wrote:
>
> > Hi All,
> >
> > I have a function to load the classes and return the object.
> >
> > function LoadClass($ClassName)
> > {
> > require_once("Class.$ClassName.inc");
> > return new $ClassName();
> > }
> >
> > Its working fine.
> >
> > But Zend Studio's Code completion is not working for this type of
> > object, Any hints?
>
> You could file a bug report with Zend for starters.
>
> In the meantime, you could *maybe* set things up so that in your
> development environment, you load all the classes with a static
> "require_once" and then the class definitions will be there.
>
> <?php
> if ($DEVELOPMENT_SERVER){
> require_once "Class.foo.inc";
> require_once "Class.bar.inc";
> }
> ?>
>
> It will slow things down a bit, loading classes you don't need, but
> hopefully Zend Studio will pick up on all the classes that way.
Yes Zend Studio works fine in this way. Actually function was created
to load only needed classes at run time a PHP4 version of PHP5's
__autoload function.

zareef ahmed

>
> --
> Like Music?
> http://l-i-e.com/artists.htm
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--
Zareef Ahmed :: A PHP Developer in India ( Delhi )
Homepage :: http://www.zareef.net

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация