[fw-general] Custom route with Zend_Navigation

2009-06-08 Thread Jonathan Maron
I am using $this->navigation()->breadcrumbs() and $this->navigation()->menu() to output breadcrumbs and a menu respectively. When I use a custom route for ONE specific branch, the URIs of ALL links produced by $this->navigation()->* are the same, with the EXCEPTION of those in the branch specified

[fw-general] General - Web Development Frameworks

2009-06-08 Thread iceangel89
i am using Zend Framework now, but hear that Ruby on Rails is great, speeds up development and all. ASP.NET MVC is also out. i am looking at these alternatives to see what they offer but will like some of ur opinions what might be some of the advantages/disadvantages of each? like in terms of -

Re: [fw-general] Zend_Paginator and Zend_Paginator_Adapter_Null

2009-06-08 Thread Matthew Ratzloff
http://framework.zend.com/issues/browse/ZF-3873 It was fixed at one point, but it appears there was a regression. -Matt On Mon, Jun 8, 2009 at 9:30 AM, umpirsky wrote: > > Thanks for the quick response. > > Can you provide url to this issue, please? I'm curious when it will be > fixed. > > > Ma

Re: [fw-general] Test-driven development does not work properly with Zend_Test

2009-06-08 Thread Benjamin Eberlei
do you use phpunit 3.4? this might be a problem indeed. otherwise, zend_test is doing integration testing and using that soley for test-driven-development is probably a bad idea, since you test too many components in conjunction rather than unit-testing a single component in isolation. greetin

Re: [fw-general] Controller flow changes when using render() inside controller action

2009-06-08 Thread agatone
Sorry, yes you are right. PostDispatch of plugin always occours after the rendering of the view. I'll try the solution with adding helper, thank you. I hoped i can solve it directily in the plugin. thanks Mon Zafra wrote: > > That's not true. The plugin postDispatch always occurs after the > r

Re: [fw-general] Problem with 1.8.2 and ZendServer(5.3RC)

2009-06-08 Thread Karol Grecki
I encountered it as well. A quick fix would be to switch to PDO Mysqli adapter which should be transparent in most cases. This might buy you some time until PHP 5.3 is stable and the issue is resolved. Karol Stefan Sturm-2 wrote: > > Hello, > > I'm testing Zenderver 5.3RC at this point. My ex

Re: [fw-general] Zend_Paginator and Zend_Paginator_Adapter_Null

2009-06-08 Thread umpirsky
Thanks for the quick response. Can you provide url to this issue, please? I'm curious when it will be fixed. Matthew Ratzloff wrote: > > Yes, there's a ticket for it. > -Matt > > On Mon, Jun 8, 2009 at 6:17 AM, umpirsky wrote: > > Regards, > Sasa Stamenkovic. > >> >> Hi. >> >> I noticed th

Re: [fw-general] Zend_Application_Bootstrap_Bootstrap and Zend_Log

2009-06-08 Thread Ehask71
Matthew, I understand why things are being done and as a Software guy understand when a major release comes out the issues invloved. At age 37 I guess sometimes it gets disheartening when you cant make something work :) and you were able to make it work before. Please don't read into what

Re: [fw-general] New at this -- Can the ZF be used "in front" of 3rd party applications?

2009-06-08 Thread Bob Linkonij
Hello Matthew, On Mon, Jun 8, 2009 at 4:50 AM, Matthew Weier O'Phinney wrote: > I've done this sort of thing with a few apps (using them inside ZF in > order to benefit from things like shared layouts), and it's typically > been a huge pain. I've blogged about it: > >     > http://weierophinney.ne

[fw-general] Problem with 1.8.2 and ZendServer(5.3RC)

2009-06-08 Thread Stefan Sturm
Hello, I'm testing Zenderver 5.3RC at this point. My existing application runs just fine, exept when I try to write data to a db. I'm using ZendDB and on an update or insert call I get this error: Mysqli statement execute error : No data supplied for parameters in prepared statement Somebody wi

Re: [fw-general] Zend_Application_Bootstrap_Bootstrap and Zend_Log

2009-06-08 Thread Matthew Weier O'Phinney
-- Ehask71 wrote (on Monday, 08 June 2009, 07:03 AM -0700): > Thx! But now I get errors "No Registry Entry for logger" I guess its back > to the Docs to figure out how setting Registry stuff was changed. The bootstrap uses what is considered a "local" registry, versus a global static registry

Re: [fw-general] Zend_Paginator and Zend_Paginator_Adapter_Null

2009-06-08 Thread Matthew Ratzloff
Yes, there's a ticket for it. -Matt On Mon, Jun 8, 2009 at 6:17 AM, umpirsky wrote: > > Hi. > > I noticed that there is some problem with this adapter. > > Code: > > $paginator = new Zend_Paginator(new Zend_Paginator_Adapter_Null(46)); > $paginator->setCurrentPageNumber($page); > $paginator->set

Re: [fw-general] Controller flow changes when using render() inside controller action

2009-06-08 Thread Mon Zafra
That's not true. The plugin postDispatch always occurs after the rendering. It doesn't matter if you manually render in the controller or let the ViewRenderer render. The plugin postDispatch will still be called afterward. You are also not altering the application flow by changing the action script

Re: [fw-general] Zend_Application_Bootstrap_Bootstrap and Zend_Log

2009-06-08 Thread Jurian Sluiman
Op Monday 08 June 2009 16:03:45 schreef Ehask71: > Thx! But now I get errors "No Registry Entry for logger" I guess its back > to the Docs to figure out how setting Registry stuff was changed. Man this > can kill dev time especially when you quote x Hours on a project then ZF > jacks everything

Re: [fw-general] Zend_Application_Bootstrap_Bootstrap and Zend_Log

2009-06-08 Thread Ehask71
Thx! But now I get errors "No Registry Entry for logger" I guess its back to the Docs to figure out how setting Registry stuff was changed. Man this can kill dev time especially when you quote x Hours on a project then ZF jacks everything up from the way you thought it or used to work. There

Re: [fw-general] Test-driven development does not work properly with Zend_Test

2009-06-08 Thread Ralf Eggert
Hi Tim, > I think setting throwExceptions to true on your front controller > in test mode only should fix this, but you won't then be able test > some of the error controller functionality. That did not help at all. I turned of the ErrorHandler and that worked partly. Now I don't get any error at

[fw-general] Zend_Paginator and Zend_Paginator_Adapter_Null

2009-06-08 Thread umpirsky
Hi. I noticed that there is some problem with this adapter. Code: $paginator = new Zend_Paginator(new Zend_Paginator_Adapter_Null(46)); $paginator->setCurrentPageNumber($page); $paginator->setItemCountPerPage(10); Zend_View_Helper_PaginationControl::setDefaultViewPartial('paginator.phtml'); So

Re: [fw-general] Zend_CodeGenerator_Php_Property & Array

2009-06-08 Thread iceangel89
i also wanted to do something similar ... to generate models from MySQL infomation_schema http://www.nabble.com/Zend_CodeGenerator-arrays-as-property-to23694912.html#a23719003 http://www.nabble.com/Zend_CodeGenerator-arrays-as-property-to23694912.html#a23719003 the workaround posted there

Re: [fw-general] CRUD and modularity

2009-06-08 Thread Dalibor Karlović
On Monday 08 June 2009 13:52:53 Matthew Weier O'Phinney wrote: > -- Dalibor Karlović wrote > > (on Monday, 08 June 2009, 12:49 PM +0200): > > On Monday 08 June 2009 11:37:29 staar2 wrote: > > > I thought to use modular design and make some simple modules > > > > > > guestbook > > > admin area > >

Re: [fw-general] Test-driven development does not work properly with Zend_Test

2009-06-08 Thread Tim Fountain
2009/6/8 Ralf Eggert [testing non-existent actions] > > And now lets presume that the IndexController exists but the > showAction() is not available yet due to the TDD approach. When I run > PHPUnit for this test case I only get this error: > > > --

[fw-general] Test-driven development does not work properly with Zend_Test

2009-06-08 Thread Ralf Eggert
Hi, I have a problem that makes TDD with Zend_Test impossible and I don't know with which release this problem was introduced and how to solve it. Think of a test case like this: -- class IndexControllerTest extends

Re: [fw-general] CRUD and modularity

2009-06-08 Thread Matthew Weier O'Phinney
-- Dalibor Karlović wrote (on Monday, 08 June 2009, 12:49 PM +0200): > On Monday 08 June 2009 11:37:29 staar2 wrote: > > I thought to use modular design and make some simple modules > > > > guestbook > > admin area > > comment area > > feedback > > polls > > news > > content managment > > > > But

Re: [fw-general] New at this -- Can the ZF be used "in front" of 3rd party applications?

2009-06-08 Thread Matthew Weier O'Phinney
-- Bob Linkonij wrote (on Sunday, 07 June 2009, 05:59 PM -0700): > I'm new to the Zend Framework, and to be honest frameworks in general. > > I've been running the various pieces of my small company's web site > each in their own dedicated directories under the public root on the > web server. >

[fw-general] Zend_CodeGenerator_Php_Property & Array

2009-06-08 Thread CocoRambo
Hi all, I recently try to use Zend_CodeGenerator to generate all my DbTables automatically. All it's OK except for one thing! I have multiple key for a primary key and I can't define a Zend_CodeGenerator_Php_Property which is an array?! What I want: protected $_myProperty = array('val1', 'val2')

Re: [fw-general] CRUD and modularity

2009-06-08 Thread Dalibor Karlović
On Monday 08 June 2009 11:37:29 staar2 wrote: > I thought to use modular design and make some simple modules > > guestbook > admin area > comment area > feedback > polls > news > content managment > > But all these requires almost same CRUD functionality, forms are different > database tables and p

Re: [fw-general] Controller flow changes when using render() inside controller action

2009-06-08 Thread agatone
What i mean in all this is : If i don't change what script to render and leave it to find script to render byitself the flow is that every postDispatch() (controllers and plugins) is called before the render of view sscript. As soon as i try to render myown script postDispatch() is called after r

Re: [fw-general] Controller flow changes when using render() inside controller action

2009-06-08 Thread Mon Zafra
Indeed, the plugin postDispatch() is invoked after the helper postDispatch (the ViewRenderer is a helper) where the rendering happens. If you need stuff to happen after the action but before rendering, it must be in a controller postDispatch or a helper postDispatch with a higher priority than View

[fw-general] CRUD and modularity

2009-06-08 Thread staar2
I thought to use modular design and make some simple modules guestbook admin area comment area feedback polls news content managment But all these requires almost same CRUD functionality, forms are different database tables and presentation code. But mostly the code keeps to be same in controll

Re: [fw-general] Zend_Application_Bootstrap_Bootstrap and Zend_Log

2009-06-08 Thread Jurian Sluiman
Op Monday 08 June 2009 00:13:41 schreef Ehask71: > In the past I usually did this: > > public static function setupDatabase() > { > $config = self::$registry->configuration; > $db = Zend_Db::factory($config->db->adapter, > $config->db->toArray()); > $db->query("SET NAM

Re: [fw-general] Controller flow changes when using render() inside controller action

2009-06-08 Thread agatone
I think I got happy to fast :) If i use setRender() in action, postDispatch() of the controller is called before the script rendereing - that's ok. But Controller Plugin's postDispatch is still called after the render ? should this be called before the render also? Thing is that i tried it call