[fw-general] Zend_Paginator executes query twice

2009-05-26 Thread umpirsky
Hello zfers, I have problem with Zend_Paginator, I'm using Zend_Paginator_Adapter_DbTableSelec adapter, heer is the code: $feed = new Default_Model_Feed(); // Prepare paginator $content = new Default_Model_Content(); $paginator = new Zend_Paginator( new Zend_Paginator_Adapter_DbTableSelect(

Re: [fw-general] Populating form that has belongTo elements

2009-05-26 Thread kimho
mfuller wrote: > > > > kimho wrote: >> >> >> I think you just need to remove the words array('belongsTo' => >> 'childForm') and it will be ok. >> Making the childFieldOne and childFieldTwo all belong to TryForm. >> > > Sorry I should have specified that I want childFieldOne & childFieldTw

Re: [fw-general] Zend Router Help

2009-05-26 Thread Brenton Alker
bellashaye wrote: > Sorry for the late reply..thank you for your reply! > > Unfortunately I do not have the option to have a constant namesppace after > the domain. That would make things so much easier though! > > Is it possible to set up some type of redirect or check to see if a folder > does

Re: [fw-general] Zend Router Help

2009-05-26 Thread bellashaye
Sorry for the late reply..thank you for your reply! Unfortunately I do not have the option to have a constant namesppace after the domain. That would make things so much easier though! Is it possible to set up some type of redirect or check to see if a folder does not exist to send it to a speci

Re: [fw-general] Navigation helper returns element

2009-05-26 Thread Jurian Sluiman
Op Tuesday 26 May 2009 23:31:11 schreef Jonathon Wallen: > How would it be if you used MVC pages instead of URI ? I found when I > used MVC with emtpy controller and action elements they were rendered > as links, not span elements. > > Jonathon Wallen. Hi Jonathon, I have a self written content ma

Re: [fw-general] How to get an application resource inside a controller action

2009-05-26 Thread swilhelm
I predict we will see this question every so often until the bootstrap becomes more directly accessible, like the view. So in a controller's action method, something like: $this->bootstrap->db; would be nice. - Steve W. Matthew Weier O'Phinney-3 wrote: > > -- Vladas Diržys wrote > (on Tues

Re: [fw-general] Navigation helper returns element

2009-05-26 Thread Jonathon Wallen
On 27/05/2009, at 1:25 AM, Jurian Sluiman wrote: Op Tuesday 26 May 2009 17:02:39 schreef Tim Fountain: > On 23/05/2009, Jurian Sluiman wrote: > > I use the Zend_Navigation in my system. To point to the homepage, I use > > an empty uri element. In the Zend_View_Helper_Navigation_Menu there

Re: [fw-general] Populating form that has belongTo elements

2009-05-26 Thread mfuller
kimho wrote: > > > I think you just need to remove the words array('belongsTo' => > 'childForm') and it will be ok. > Making the childFieldOne and childFieldTwo all belong to TryForm. > Sorry I should have specified that I want childFieldOne & childFieldTwo to be posted as an array childForm

[fw-general] Integrate jQuery - Fatal Error

2009-05-26 Thread Sergio Rinaudo
Hi, I have some problem integrating jQuery using ZendX component. I have a ZendX folder inside library dir and I've done all the setup in my bootstrap, as explained here -> http://zendguru.wordpress.com/2009/05/06/zend-framework-and-jquery-creating-jquery-form-in-zend/. Unfortunatelly I get t

Re: [fw-general] How to get an application resource inside a controller action

2009-05-26 Thread Matthew Weier O'Phinney
-- Vladas Diržys wrote (on Tuesday, 26 May 2009, 09:40 PM +0300): > what is the right way to get a db (or any other) resource in the controller? > Now I'm using following line: > $this->getFrontController()->getParam('bootstrap')->getResource('db'); > > Is there a better way? Within your control

[fw-general] How to get an application resource inside a controller action

2009-05-26 Thread Vladas Diržys
Hi, what is the right way to get a db (or any other) resource in the controller? Now I'm using following line: $this->getFrontController()->getParam('bootstrap')->getResource('db'); Is there a better way? -- Pagarbiai, Vladas Diržys

Re: [fw-general] Populating form that has belongTo elements

2009-05-26 Thread kimho
mfuller wrote: > > Hi, > > I have a form which have elements that has the belongsTo attribute. My > problem is when $form->populate($this->_request->getPost()); is called > those belongsTo elements are not populated. Here is some code: > > class TryController extends Zend_Controller_Action {

[fw-general] Populating form that has belongTo elements

2009-05-26 Thread mfuller
Hi, I have a form which have elements that has the belongsTo attribute. My problem is when $form->populate($this->_request->getPost()); is called those belongsTo elements are not populated. Here is some code: class TryController extends Zend_Controller_Action { function indexAction() { $form = n

Re: [fw-general] A question about bootstrapping modules

2009-05-26 Thread Matthew Weier O'Phinney
-- Jeroen Keppens wrote (on Tuesday, 26 May 2009, 07:15 AM -0700): > keith Pope-4 wrote: > > 2009/5/8 Rick Buitenman : > > ... > > Yes, the module bootstrap resource will loop and call each module > > bootstrap, though it skips the default module. > > ... > > Is there a specific reason for this?

Re: [fw-general] Navigation helper returns element

2009-05-26 Thread Tim Fountain
On 23/05/2009, Jurian Sluiman wrote: > > > I use the Zend_Navigation in my system. To point to the homepage, I use an > empty uri element. In the Zend_View_Helper_Navigation_Menu there is a > htmlify() method which resets the element to a instead of an tag. > This sounds perfectly reasonable to

Re: [fw-general] Navigation helper returns element

2009-05-26 Thread Jurian Sluiman
Op Tuesday 26 May 2009 17:02:39 schreef Tim Fountain: > On 23/05/2009, Jurian Sluiman wrote: > > I use the Zend_Navigation in my system. To point to the homepage, I use > > an empty uri element. In the Zend_View_Helper_Navigation_Menu there is a > > htmlify() method which resets the element to a

Re: [fw-general] Zend_Db -- ezcDbHandler wrapper for ezcWorkflow

2009-05-26 Thread Ralph Schindler
I have not seen ezcWorflow and this storage mechanism you describe, but this is what I can tell you. If you are talking about sharing a connection between Zend_Db adapters, then more than likely, you'll have to extend one of the adapters to be able to accept a connection (this would do exactly

Re: [fw-general] A question about bootstrapping modules

2009-05-26 Thread Jeroen Keppens
keith Pope-4 wrote: > > 2009/5/8 Rick Buitenman : > ... > Yes, the module bootstrap resource will loop and call each module > bootstrap, though it skips the default module. > ... > Is there a specific reason for this? You can of course say that the main bootstrap should contain the default be

Re: [fw-general] how do u do docs for ur zend framework app?

2009-05-26 Thread Matthew Weier O'Phinney
-- iceangel89 wrote (on Friday, 22 May 2009, 04:52 AM -0700): > is there any tool to document ZF at the same time generate diagrams eg. ERD, > class diagrams etc? > > phpDocs is one. but its not really for diagramming? which helps. The two standard tools for this are phpDocumentor and Doxygen.

[fw-general] ErrorHandler priority vs. ActionStack priority

2009-05-26 Thread Andrei Iarus
Hi,   I think I have read about this somewhere, but like always, can't find it when I need it. How can I change the order/priority of the disatching the actions added to the stack by the plugins ActionStack and ErrorHandler? My problem is that the some actions added by the actionStack do not get

Re: [fw-general] Setup environment for cronjob

2009-05-26 Thread umpirsky
Hi, thanks for the reply, that was exactly what I wanted to do, use Zend_application. But I don't have custom routes in my ini file, so, I guess I don't have to care about routes, I just need db and autoload. BTW, in my index.php I have set fallback loader, I have Zend Framework in my include pat

Re: [fw-general] Zend_Navigation subpages

2009-05-26 Thread skorp
Jurian Sluiman wrote: > > Op Tuesday 26 May 2009 12:41:50 schreef skorp: >> Hi, > > Check the OnlyActiveBranch option for the view helper: > http://framework.zend.com/manual/en/zend.view.helpers.html#zend.view.helpers.initial.navigation.menu > > R, Jurian > -- > Jurian Sluiman > Soflomo.com

Re: [fw-general] Zend_Navigation subpages

2009-05-26 Thread Jurian Sluiman
Op Tuesday 26 May 2009 12:41:50 schreef skorp: > Hi, > for example i have a menu structure like this: > > -page1 > -page2 > --page2.1 > --page2.2 > -page3 > -page4 > --page4.1 > --page4.2 > > i want to show the childpages/subpages only when the page is active. > > for example. > page1 or page3 is a

Re: [fw-general] Setup environment for cronjob

2009-05-26 Thread Jurian Sluiman
Op Tuesday 26 May 2009 11:21:45 schreef umpirsky: > Hi to all. > > I have Zend framework app created by Zend Tool, with default project > structure (1.8). I use models, and my library, everithing is set up, > autoload.. My bootstrap file: > > class Bootstrap extends Zend_Application_Bootstrap_Boots

[fw-general] Zend_Navigation subpages

2009-05-26 Thread skorp
Hi, for example i have a menu structure like this: -page1 -page2 --page2.1 --page2.2 -page3 -page4 --page4.1 --page4.2 i want to show the childpages/subpages only when the page is active. for example. page1 or page3 is active no child-subpages are displayed -page1 -page2 -page3 -page4 when

Re: [fw-general] Zend_Form_Element default decorators

2009-05-26 Thread PHPScriptor
this may help you. Just extends the Zend_Form once somewhere in your library directory. Extend your forms with My_Form. something like this class My_Form extends Zend_Form { public $elementDecorators = array( 'ViewHelper', 'Errors', array(array('data' => 'HtmlTag'), a

Re: [fw-general] Server issue or Code? Domain to ZF module masking...?

2009-05-26 Thread Vladas Diržys
Hi,I never used it, but i think that you need is *hostname routing*: http://framework.zend.com/manual/en/zend.controller.router.html#zend.controller.router.routes.hostname -- Pagarbiai, Vladas Diržys Tel.: +370 620 69020 www.dirzys.com On Mon, May 25, 2009 at 22:35, drj201 wrote: > > Hi everyo

[fw-general] Setup environment for cronjob

2009-05-26 Thread umpirsky
Hi to all. I have Zend framework app created by Zend Tool, with default project structure (1.8). I use models, and my library, everithing is set up, autoload.. My bootstrap file: class Bootstrap extends Zend_Application_Bootstrap_Bootstrap { protected function _initAutoload() { return ne

[fw-general] Zend_Form_Element default decorators

2009-05-26 Thread R!
Hi, I§m wonder if there is any simple way how to change default decorators for Zend_Form_Element without extending all of them. I have quite large project with a lto of forms and default decorators isn't whati want. Maybe something like Zend_Form_Element::setDefaultDecorators() will be great for m

Re: [fw-general] Re[fw-general] liable Transport

2009-05-26 Thread till
On Tue, May 26, 2009 at 4:53 AM, iceangel89 wrote: > > i need to develop an app that works even if the internet is down ... its a > POS ... the current system setup is outlets having all individual localhost > systems and all these will "upload" data of the day to "HQ" - syncing. but > this is als

Re: [fw-general] Re[fw-general] liable Transport

2009-05-26 Thread Marco
This isn't really a ZF question but more of a system design question. There are a number of ways to solve your problem if you data isn't ordered you can use such as bulk transfer, timestamp and math based or if its ordered you can use revisions to sync data. Doing the synchronisation using transa

[fw-general] zend_dojo_data and zend_form

2009-05-26 Thread Amir Bilal
Hi All, I have this scenario in a form: - A drop down having list of counties - onCahnge of country list the cities of selected country will be populated in a new drop down. I do not want to use Zend_Dojo_Form but I would like to do that using normal Zend_Dojo_Data calls. Please suggest me the b

Re: [fw-general] Zend_CodeGenerator arrays as property

2009-05-26 Thread iceangel89
u know models have properties like dependentTables thats an array? i want to create those ... but i fixed it by modifying ZF core file to have 1 more property body and i set the default value to this body if its set... just a temp work around for now and it works! but let me know if theres a b

Re: [fw-general] Zend_CodeGenerator arrays as property

2009-05-26 Thread Vadim Gabriel
First what your trying to do is invalid this protected $_primary = 'array('id')'; will cause a syntax error. second why would you want to have a default value for a property to be a string that consists of an array? this will fail it you try to run it as if it was an array. What are you trying t

Re: [fw-general] Zend_CodeGenerator arrays as property

2009-05-26 Thread iceangel89
someone please? i think using codegenerator to generate models is much more efficient ... iceangel89 wrote: > > i am trying to use Zend_CodeGenerator to generate my models from my MySQL > db so far this is what i got ... > > class My_blogentries > { > protected $_primary = 'array('id')'