The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

the registry lets me avoid globals and helps simplify testing, which is well why people use them

I inferred that much. Just curious as to why that particular arrangement. I know one fellow who made his Database singleton a child node of his Session singleton because he thought that was "the most logical place for it." I didn't think so because the Session was dependent on the Database, not the other way around.

manys of time do i curse at zend studio for being very lacking and slow

zend studio for eclipse? that program is AMAZING. it's packed full of features and blazing fast, at least from my experience.

Originally Posted by ionix5891

tho i have to admit i hate the lack of proper autocomplete in all PHP IDE's i tested

again...i have never had a single problem with zend studio not autocompleting my registry's.

not trying to turn this into an IDE war, but i find it strange that you're complaining about a lack of features that i'm pretty sure zend has. are you using an older version? i know the version pre-eclipse wasn't near as good...

zend studio for eclipse? that program is AMAZING. it's packed full of features and blazing fast, at least from my experience.
.

no im stuck with old one for while

Originally Posted by XtrEM3

again...i have never had a single problem with zend studio not autocompleting my registry's.

not trying to turn this into an IDE war, but i find it strange that you're complaining about a lack of features that i'm pretty sure zend has. are you using an older version? i know the version pre-eclipse wasn't near as good...

I havent tested a php IDE that does a good job at autocomplete anything 2-3 levels deep (something like visual studio intellisense would be perfecte)

such as $this->Registry->bLAH->bLEH

and yes i tried early versions of zend studio 6 eclipse (but its sooooo slow on large projects), unless they added it since

php developer comes close but it just puts every combination into the autocomplete which is annoying, but anyways thats going off on a tangent back to this thread

I didn't think so because the Session was dependent on the Database, not the other way around.

yes its same here, to scale across few servers the session are stored in memory table in DB, i use several filters (defined in each action as action properties and executed by the main controller before the action itself is run) so a database connection filter runs first before session filter

i should have pasted more of the action controller code earlier, would have been clearer (i have to be careful due to non disclosure agreement)

hmm which version of PDT are you using? if this is true then im jumping on it

edit: you example works, but if the class is defined in another file and the registry is passed in to the action class via constructor (link in the code above) it doesn't show up in outline in the editor and theres no autocomplete more than few levels...
so in my case typing $this->registry->... results in nothing

hmm which version of PDT are you using? if this is true then im jumping on it

I'm using PDT 1.0.3.

Originally Posted by ionix5891

edit: you example works, but if the class is defined in another file and the registry is passed in to the action class via constructor (link in the code above) it doesn't show up in outline in the editor and theres no autocomplete more than few levels...

just part of the reason i'm a newfound fan of IDEs, the autocompletion gives you incentive to document and comment your code well with javadoc. i have no problem committing an instance variable to a certain class / type.