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 Richard Lynch on 03/14/05 19:03

> 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.

--
Like Music?
http://l-i-e.com/artists.htm

 

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

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