[fw-general] Re: ZF 2.0 when and what?

2010-11-15 Thread jsuggs
Wil Moore III wrote: > I can say that for my current applications Doctrine2 is proving to be > production ready right now. > I second that sentiment. -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/ZF-2-0-when-and-what-tp3031964p3043223.html Sent from the

[fw-general] Re: Active page with Routers

2010-07-02 Thread jsuggs
I've asked the same thing before. I reported the issue, but was told either choose all MCV routes or none. Hopefully this can be "fixed" in ZF2 as I still think it an open issue, and one that could (somewhat) easily be solved. http://framework.zend.com/issues/browse/ZF-7746 -- View this messag

[fw-general] Re: Zend Framework and Facebook Connect

2010-04-21 Thread jsuggs
pwansch wrote: > Has anybody successfully implemented Facebook Connect all the way > including logout? > Just curious, but why are you wanting users to logout of your system? I thought one of the key features of FB Connect was that if they were logged in to FB, then they were automatically log

[fw-general] Re: Where to issue final common logic

2010-04-13 Thread jsuggs
Hector Virgen wrote: > > Are you concerned with the result of Doctrine's flush? > Yes and no. The only reason I was looking to have it in a single place was so that the flush could cover the entire Unit Of Work (and it also makes it somewhat "set it and forget it"). However, since there were

[fw-general] Where to issue final common logic

2010-04-08 Thread jsuggs
I'm wanting to do some cleanup commands (ex. issue Doctrine "flush") after all activity has completed (ie. no more [state] changes). Where is the most logical place to issue that command? Thanks! -- View this message in context: http://n4.nabble.com/Where-to-issue-final-common-logic-tp1788759p

[fw-general] Re: Passing objects to partials - alternative approaches

2010-03-31 Thread jsuggs
Thanks! I was thinking it converted the object passed to the partial into an array as well (don't know where that came from, oh well). It is working perfectly now. Just FYI, it was a series of mistakes that didn't allow me to figure this out on my own. First, I wasn't echoing what the partial

[fw-general] Re: Good practice for caching objects

2010-03-31 Thread jsuggs
Jurian Sluiman wrote: > > My problem is *many* data is loaded. Besides acl, auth and i18n also > containers at the page with "latest blog posts", "last tweet", "recent > pictures" etc. Therefore I thought let's cache everything! :p > I think that the point Giorgio was trying to make was the o

[fw-general] Passing objects to partials - alternative approaches

2010-03-30 Thread jsuggs
Ok, so you can't pass objects to partials (unless they can be converted to an array). So, what alternatives do you have/suggest for being able to pass objects (in this case Doctrine Entities/Models) to something like a partial so that you can add markup to a .phtml file? I guess what I'm wanting

[fw-general] Re: print_r and Zend_Debug::dump - Different results (source: Doctrine 2.0 Query)

2010-03-29 Thread jsuggs
Haha, well thanks for pointing out the obvious! This actually started when I was doing the following in my view topics as $topic): ?> And I was getting duplicates, so I started backtracking through the different levels (controller, service, etc) and was hoping it wasn't some obscure bug I'd

[fw-general] print_r and Zend_Debug::dump - Different results (source: Doctrine 2.0 Query)

2010-03-29 Thread jsuggs
I have the following in my service layer: public function findAll() { $q = $this->_em->createQuery('select t from PT_Model_Topic t'); $topics = $q->getResult(); die(Zend_Debug::dump($topics)); //die('' . print_r($topics,true) . ''); return $topics;

[fw-general] Re: Models and Services - ACL - Where and How

2010-03-27 Thread jsuggs
Chris Morrell-2 wrote: > > Right now I treat my models as resources with a special exception for the > user model which is both a resource and a role. Then I actually make the > models responsible for managing their own ACL permissions, both setting > them > up and querying them. To facilitate

[fw-general] Re: Is 'zf enable layout' supported in v1.9.6

2010-03-26 Thread jsuggs
Just add the following to your configs/application.ini resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/" Those options are just shortcuts/helpers for automating some tasks. You can do everything manually if you want. -- View this message in context: http://n4.nabble.com/Is-zf-

[fw-general] Re: Naming your Namespace

2010-03-26 Thread jsuggs
Jake McGraw wrote: > > At my company (http://www.targetspot.com) we did something really > radical and used our company name: > > "Targetspot_" > > Crazy, I know. > You sir, are a rebel. -- View this message in context: http://n4.nabble.com/Naming-your-Namespace-tp1692481p1692803.html Sent

[fw-general] Re: Naming your Namespace

2010-03-26 Thread jsuggs
Hector Virgen wrote: > > A related question: in a multiple-module ZF app, is your main module named > "default" while all of the other modules have names specific to what they > are for, or do you rename the default module to something else? > I've ended up keeping it just for simplicity sake.

[fw-general] Models and Services - ACL - Where and How

2010-03-26 Thread jsuggs
I'm trying to figure out what "layer(s)" should implement which aspect(s) of Zend_Acl. So I've got a few questions. Are the models the resources (ie. implements Zend_Acl_Resource_Interface) or does that belong solely in the service layer? I could see a case being made for the service class impl

[fw-general] Naming your Namespace

2010-03-26 Thread jsuggs
Just curious, but do most people namespace their code according to their project or do you just use something generic say "App"? -- View this message in context: http://n4.nabble.com/Naming-your-Namespace-tp1692481p1692481.html Sent from the Zend Framework mailing list archive at Nabble.com.

[fw-general] Re: Doctrine - default directory structure

2010-03-22 Thread jsuggs
I'm trying to wrap my brain around some of these concepts as well. Just out of curiosity, who all uses module specific models? In the case of dasprids.de (source: http://site.svn.dasprids.de/) Ben separates the models into their respective module utilizing the "default" module somewhat as a comm