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

2009-05-07 Thread keith Pope
2009/5/8 Rick Buitenman : > Hi, > > There are a number of threads on bootstrapping modules, but I think it might > help to isolate what seems to be a reoccuring source of confusion (at least > it is for me): > > Am I right in assuming that *all* bootstraps of all modules are executed > regardless f

Re: [fw-general] Finding active module/controller

2009-05-07 Thread keith Pope
2009/5/8 iceangel89 : > > how can i know the active module/controller thats running so i can set view > parameters? to make my nav show which link shld be active? > > Zend_Navigation menu is not working correctly for me yet. so this will be a > workaround 1st. anyway its good to know. Info is stor

[fw-general] A question about bootstrapping modules

2009-05-07 Thread Rick Buitenman
Hi, There are a number of threads on bootstrapping modules, but I think it might help to isolate what seems to be a reoccuring source of confusion (at least it is for me): Am I right in assuming that *all* bootstraps of all modules are executed regardless for which module the request is?

[fw-general] ZF1.8 problem in getting modular structure work

2009-05-07 Thread vinodp
hi all, is there any tutorial available for working on modular form in zend 1.8, in previous version it seemed quite easy, but in 1.8 i am confused. -- View this message in context: http://www.nabble.com/ZF1.8-problem-in-getting-modular-structure-work-tp23439086p23439086.html Sent from the Zen

Re: [fw-general] ZF1.8 Switching layouts between modules.

2009-05-07 Thread Mon Zafra
What you basically need is to defer the setting of layout until routeShutdown. This can be done with a controller plugin. Matthew's suggestion [ http://framework.zend.com/issues/browse/ZF-6568?focusedCommentId=30741#action_30741] is to have your module bootstrap register a plugin which implements r

[fw-general] Finding active module/controller

2009-05-07 Thread iceangel89
how can i know the active module/controller thats running so i can set view parameters? to make my nav show which link shld be active? Zend_Navigation menu is not working correctly for me yet. so this will be a workaround 1st. anyway its good to know. -- View this message in context: http://w

Re: [fw-general] Zend_Navigation menu active page not working ...

2009-05-07 Thread iceangel89
anyone? the active page is always at home ... iceangel89 wrote: > > i have something like > > $reports = new Zend_Navigation_Page_Mvc(array( > 'label' => 'Reports', > 'module' => 'reports', > 'controller' => 'index', > 'action' => 'index' > )); > $misc = new Zend_Navigation_Pa

[fw-general] PhpDocumentor

2009-05-07 Thread helderfelipe
I can't generate de PhpDoc for my projects in zend studio for eclipse, this is de error: "Error runing phpDocumentor." what can i do ? -- View this message in context: http://www.nabble.com/PhpDocumentor-tp23438459p23438459.html Sent from the Zend Framework mailing list archive at Nabble.com.

RE: [fw-general] ZF1.8 Switching layouts between modules.

2009-05-07 Thread Karl
I still have the same problem and have not been able to get different layouts to work when using modules. Can this actually be achieved or are we all trying something that has not been implemented ? Regards, Karl _ From: Sergio Rinaudo [mailto:kaiohken1...@hotmail.com] Sent: 07 May 200

RE: [fw-general] ZF1.8 Right way to get zend registry instance

2009-05-07 Thread Sergio Rinaudo
Hi Mike, Thank you for reply. For some reason all replys to my answer were splitted in different part, I'll post them here for future reference http://www.nabble.com/FW%3A-ZF1.8-Right-way-to-get-zend-registry-instance-td23428309.html and also the follow: --- B E G I N -

RE: [fw-general] ZF1.8 Switching layouts between modules.

2009-05-07 Thread Sergio Rinaudo
Hi matthew, I added the line you said, and the layout is switched, but unfortunatelly for all modules, so also the default module is rendered with the admin layout. Any advice? Sergio Rinaudo > Date: Thu, 7 May 2009 16:18:44 -0400 > From: matt...@zend.com > To: fw-general@lists.zend.com > Su

RE: [fw-general] Zend_Search_Lucene field not found

2009-05-07 Thread Alexander Veremyev
Hi Jurriën, Sorry for a delay with answer, but I was really overloaded last days. I'll answer tomorrow morning (it's already ~1AM here). With best regards, Alexander Veremyev. > -Original Message- > From: Jurriën Stutterheim [mailto:jurr...@bellacms.com] > Sent: Tuesday, May 05, 2009

Re: [fw-general] ZF1.8 Switching layouts between modules.

2009-05-07 Thread Matthew Weier O'Phinney
-- Sergio Rinaudo wrote (on Thursday, 07 May 2009, 08:54 PM +0200): > I've almost completed to implement all my past work in the new > Zend_Application, I still have the problem on how switch layouts between > modules. I noticed here you can specify this in the configuration ini file: > > http:/

Re: [fw-general] ZF1.8 Right way to get zend registry instance

2009-05-07 Thread Mike Wright
Sergio Rinaudo wrote: Hi, I'm wondering if there is any 'best' or 'right' way to get zend registry instance within the zf1.8 bootstrap. Thanks. How about: $registry = Zend_Registry::getInstance();

[fw-general] Refresh meta tag with Zend_Http_Client

2009-05-07 Thread Sudheer Satyanarayana
Hi list, Is Zend_Http_Client capable of refreshing meta tag? If so, how do I achieve it? -- With warm regards, Sudheer. S Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, Personal: http://sudheer.net

Re: [fw-general] 400 Bad Request

2009-05-07 Thread yidarmy2009
Sorry guys. After all that I figured it out. I just needed to add RewriteBase /mysite to the .htaccess. Thanks, Matt yidarmy2009 wrote: > > When I goto my application baseUrl ( http://localhost/mysite > http://localhost/mysite ) it loads up the index/index page exactly as it > should. However,

[fw-general] ZF1.8 Switching layouts between modules.

2009-05-07 Thread Sergio Rinaudo
Dear list, I've almost completed to implement all my past work in the new Zend_Application, I still have the problem on how switch layouts between modules. I noticed here you can specify this in the configuration ini file: http://framework.zend.com/manual/en/zend.application.available-resourc

[fw-general] get Request within Resource_View?

2009-05-07 Thread Philip G
How would one get the Request object within Resource_View or is that even possible? The issue I need to solve is dynamically setting the view script path based on a custom routing rule. Route rule: resources.router.routes.main.route = ":skin/:controller/:action/*" resources.router.routes.main.defau

RE: [fw-general] ZF1.8 Naming Convention for rowClass Model

2009-05-07 Thread Sergio Rinaudo
Great, it works! Hope this issue will correct in the next version of ZF Thank you Sergio Rinaudo > Date: Thu, 7 May 2009 19:24:17 +0100 > From: mute.p...@googlemail.com > To: kaiohken1...@hotmail.com > CC: fw-general@lists.zend.com > Subject: Re: [fw-general] ZF1.8 Naming Convention for rowC

[fw-general] 400 Bad Request

2009-05-07 Thread yidarmy2009
When I goto my application baseUrl ( http://localhost/mysite http://localhost/mysite ) it loads up the index/index page exactly as it should. However, if I try http://localhost/mysite/index/index http://localhost/mysite/index/index it gives me a 400 bad request page. Whats the best way for me t

Re: [fw-general] ZF1.8 Naming Convention for rowClass Model

2009-05-07 Thread keith Pope
2009/5/7 Sergio Rinaudo : > So, what am I suppose to do if I have a situation where I have a > Zend_Db_Table_Rowset ( $mymodel->fetchAll() ) and I have to cicle it, and > access some Zend_Db_Table_Row method? You need to make sure that you have required the row class before Zend_Db_Table_* tries

Re: [fw-general] Bootstrapping modules

2009-05-07 Thread keith Pope
2009/5/7 Justin Barnes : > Hi Vadim, > > Not sure if this answers your question - but this is my solution to > bootstrapping and encapsulating modules. I would be happy to hear others > feedback. > > I'm using the following module bootstrap class to bootstrap my modules ... I > have plans to extend

RE: [fw-general] ZF1.8 Naming Convention for rowClass Model

2009-05-07 Thread Sergio Rinaudo
So, what am I suppose to do if I have a situation where I have a Zend_Db_Table_Rowset ( $mymodel->fetchAll() ) and I have to cicle it, and access some Zend_Db_Table_Row method? Sergio Rinaudo > Date: Thu, 7 May 2009 12:18:32 -0400 > From: matt...@zend.com > To: fw-general@lists.zend.com > Su

[fw-general] Re: Zend_Captcha example with "click-refresh" button?

2009-05-07 Thread Philip G
On Thu, May 7, 2009 at 11:20 AM, Philip G wrote: > I need a solution to update a captcha image, using Zend_Captcha. There > seems to be a couple things Zend_Form_Element_Captcha does. But, there are > absolutely no getters for Zend_Captcha for those things (image itself, > token? session set?). >

Re: [fw-general] Zend_Db_Table

2009-05-07 Thread Matthew Weier O'Phinney
-- holografix . wrote (on Thursday, 07 May 2009, 05:07 PM +0100): > Hi > > What's the difference between this ? > > $config = $this->config->db; > $db= Zend_Db::factory($config); > .. > .. > Zend_Db_Table::setDefaultAdapter($db); > vs > > Zend_Db_Table_Abstract::setDefaultAdapter($db);

Re: [fw-general] FW: ZF1.8 Right way to get zend registry instance

2009-05-07 Thread Matthew Weier O'Phinney
-- Sergio Rinaudo wrote (on Thursday, 07 May 2009, 04:39 PM +0200): > I reply to myself, > I use to create a registry resource > > > > protected function _initRegistry(){ > $registry = Zend_Registry::getInstance(); > $config = new Zend_Config($this->getOptions()); > $re

[fw-general] Zend_Captcha example with "click-refresh" button?

2009-05-07 Thread Philip G
I need a solution to update a captcha image, using Zend_Captcha. There seems to be a couple things Zend_Form_Element_Captcha does. But, there are absolutely no getters for Zend_Captcha for those things (image itself, token? session set?). Is there any solution out there I can look over that uses Z

Re: [fw-general] ZF1.8 Naming Convention for rowClass Model

2009-05-07 Thread Matthew Weier O'Phinney
-- Sergio Rinaudo wrote (on Thursday, 07 May 2009, 04:32 PM +0200): > I gets Zend_Loader error when trying to load rowClass model. > I've already changed the name of my rowClass model in Model_{rowclassname}, > same result. > Any advices? There's an issue in the tracker related to this already; I

Re: [fw-general] Extending Zend Framework classes

2009-05-07 Thread Matthew Weier O'Phinney
-- iceangel89 wrote (on Thursday, 07 May 2009, 06:35 AM -0700): > > what abt other classes? like Zend_Validate? Zend_Validate defines an interface (Zend_Validate_Interface), and a standard abstract base class (Zend_Validate_Abstract). These are covered in the manual. > Giorgio Sironi wrote: > >

[fw-general] Zend_Db_Table

2009-05-07 Thread holografix .
Hi What's the difference between this ? $config = $this->config->db; $db= Zend_Db::factory($config); .. .. Zend_Db_Table::setDefaultAdapter($db); vs Zend_Db_Table_Abstract::setDefaultAdapter($db); cheers holo

RE: [fw-general] Get Resources (DB) from Controllers

2009-05-07 Thread Sergio Rinaudo
Or also like this $bootstrap = $this->getInvokeArg('bootstrap'); $resource = $bootstrap->getResource('myResource'); Sergio Rinaudo Date: Thu, 7 May 2009 17:23:42 +0200 From: pbouli...@alteo.fr To: fw-general@lists.zend.com Subject: Re: [fw-general] Get Resources (DB) from Controller

Re: [fw-general] Get Resources (DB) from Controllers

2009-05-07 Thread Pierrick Boulière
Sorry, i make a mistake, i forget the "t" in "bootstrap" : $this->getFrontController()->getParam('boo*t*strap')->getResource('HereTheResourceYouNeed') Pierrick Boulière a écrit : In your controller (or controller action), you can get the resource you need by : $this->getFrontController()-

Re: [fw-general] Get Resources (DB) from Controllers

2009-05-07 Thread Pierrick Boulière
In your controller (or controller action), you can get the resource you need by : $this->getFrontController()->getParam('boostrap')->getResource('HereTheResourceYouNeed') example : $this->getFrontController()->getParam('boostrap')->getResource('db') iceangel89 a écrit : how can i access res

[fw-general] Get Resources (DB) from Controllers

2009-05-07 Thread iceangel89
how can i access resources like the default db adapter from my controllers? -- View this message in context: http://www.nabble.com/Get-Resources-%28DB%29-from-Controllers-tp23428523p23428523.html Sent from the Zend Framework mailing list archive at Nabble.com.

[fw-general] FW: ZF1.8 Right way to get zend registry instance

2009-05-07 Thread Sergio Rinaudo
I reply to myself, I use to create a registry resource protected function _initRegistry(){ $registry = Zend_Registry::getInstance(); $config = new Zend_Config($this->getOptions()); $registry->config = $config; return $registry; } then call $registry =

[fw-general] ZF1.8 Naming Convention for rowClass Model

2009-05-07 Thread Sergio Rinaudo
Dear List, I gets Zend_Loader error when trying to load rowClass model. I've already changed the name of my rowClass model in Model_{rowclassname}, same result. Any advices? Sergio Rinaudo _ Messenger 2009: scaricalo gratis! http

Re: [fw-general] Bootstrapping modules

2009-05-07 Thread Justin Barnes
Hi Vadim, Not sure if this answers your question - but this is my solution to bootstrapping and encapsulating modules. I would be happy to hear others feedback. I'm using the following module bootstrap class to bootstrap my modules ... I have plans to extend the Module_Bootstrap class to do this

[fw-general] Re[fw-general] ndering all errors on a Zend_Form in 1

2009-05-07 Thread iceangel89
how can i render all errors of a form in something that i can have in my Zend_Form? if possible not to do that in my controller and passing arrays to my view to render them and so on... so like a place in the form allocated for error display. -- View this message in context: http://www.nabble.c

Re: [fw-general] Extending Zend Framework classes

2009-05-07 Thread iceangel89
what abt other classes? like Zend_Validate? Giorgio Sironi wrote: > > 2009/5/5 iceangel89 > >> function __construct($var1, $var2 ...) {} with as many variables as i >> like? >> will my constructor affect the default behaviour of the class? >> >> eg. function filter($var1, $var2 = 'something'

RE: [fw-general] How to automatically load resources

2009-05-07 Thread Sergio Rinaudo
Ok, I reply to myself, models classes must be called like Model_{modelName}. Hope this helps Sergio Rinaudo From: kaiohken1...@hotmail.com To: matt...@zend.com; fw-general@lists.zend.com Date: Thu, 7 May 2009 14:08:30 +0200 Subject: RE: [fw-general] How to automatically load resources

Re: [fw-general] use part of framework only (zend rest)

2009-05-07 Thread ziadmannan
Even Better! Thanks Matthew. Matthew Weier O'Phinney-3 wrote: > > -- ziadmannan wrote > (on Thursday, 07 May 2009, 04:42 AM -0700): >> Hi, I am interested in using the ZF REST classes in my project as it >> seems to >> be quite good. Is there anyway I can add just the files that I need from >>

RE: [fw-general] How to automatically load resources

2009-05-07 Thread Sergio Rinaudo
Hi, thanks for reply. I tried it but I get always the same error. Just to let you know, my project is created using Zend_Tool and I've implemeted to it just the module management via application.ini. However, my 'default' module isn't inside the module directory, so this is my application tree

Re: [fw-general] Modules using zend_application

2009-05-07 Thread Vadim Gabriel
Yes, I am aware of that. I think the best approach will be to specify for each module a bootstrap (if there is more then one module and a modules directory was set) otherwise just use the old way. If it will be possible it will be even better to have a main application bootstrap and each module wil

Re: [fw-general] Modules using zend_application

2009-05-07 Thread Tim Brayshaw
On 7 May 2009, at 12:11, Erwin Toze wrote: in /application/Bootstrap.php: class Bootstrap extends Zend_Application_Bootstrap_Bootstrap { protected function _initView() { Zend_Layout::startMVC(array('layoutPath' => '../application/layouts')); } } in /application/modules/default/

Re: [fw-general] use part of framework only (zend rest)

2009-05-07 Thread ziadmannan
Hi Vince, Thanks, thats just what I wanted. I didn't realise this info was available. I'll try this out. vince. wrote: > > Just read about the REST classes dependencies and only those you will need > to include in order to use the REST classes. > > More info > http://framework.zend.com/manua

Re: [fw-general] use part of framework only (zend rest)

2009-05-07 Thread Matthew Weier O'Phinney
-- ziadmannan wrote (on Thursday, 07 May 2009, 04:42 AM -0700): > Hi, I am interested in using the ZF REST classes in my project as it seems to > be quite good. Is there anyway I can add just the files that I need from ZF > rather than having to add the whole of ZF to my project. ZF is quite big,

Re: [fw-general] How to automatically load resources

2009-05-07 Thread Matthew Weier O'Phinney
-- Sergio Rinaudo wrote (on Thursday, 07 May 2009, 01:15 PM +0200): > I need to load from bootstrap some resources located in my 'models' directory. > But if I try I get > > Fatal error: Class '{model}' not found in []\application\Bootstrap.php on > line 201 > > What to do to include resourc

Re: [fw-general] use part of framework only (zend rest)

2009-05-07 Thread Vadim Gabriel
Just read about the REST classes dependencies and only those you will need to include in order to use the REST classes. More info http://framework.zend.com/manual/en/requirements.html#requirements.dependencies On Thu, May 7, 2009 at 2:42 PM, ziadmannan wrote: > Hi, I am interested in using the

Re: [fw-general] Modules using zend_application

2009-05-07 Thread Erwin Toze
In a more general way, i expected to have module specific initialization that override the /application/Bootstrap.php initializations. maybe it's not possible, maybe it was not designed to work like taht.. any idea would be appreciated, thanks! 2009/5/7 Vadim Gabriel > It would have been pos

[fw-general] use part of framework only (zend rest)

2009-05-07 Thread ziadmannan
Hi, I am interested in using the ZF REST classes in my project as it seems to be quite good. Is there anyway I can add just the files that I need from ZF rather than having to add the whole of ZF to my project. ZF is quite big, even the minimal version zipped up is almost 4MB so I don't really fa

Re: [fw-general] Modules using zend_application

2009-05-07 Thread Vadim Gabriel
It would have been possible if we'd know what module was called inside the bootstrap class. But the bootstrap class is being called before the dispatcher (i think) and therefor we don't know at that point which module is being called. On Thu, May 7, 2009 at 2:27 PM, Karl wrote: > You should rat

RE: [fw-general] Modules using zend_application

2009-05-07 Thread Karl
You should rather call $layout = Zend_Layout::getMvcInstance(); in your module bootstraps, but this still doesn't solve the problem. As soon as you apply a different layout to any of your modules, it would seem as though the main layout is overwritten. According to the docs, this is possible by

Re: FW: [fw-general] Modules using zend_application

2009-05-07 Thread Vadim Gabriel
How about those who do not use ini file as there config file? and yet we can't add a whole bunch of code for every module. What about when someone adds a new module he needs to start adding code blocks into X amount of places to configure that right. That's not the approach i am searching for. Ther

FW: [fw-general] Modules using zend_application

2009-05-07 Thread Sergio Rinaudo
Maybe this is the solution. On your application.ini add {modulename}.resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers" {modulename}.resources.frontController.moduleDirectory = APPLICATION_PATH "/modules" {modulename}n.resources.frontController.moduleControlle

[fw-general] How to automatically load resources

2009-05-07 Thread Sergio Rinaudo
Hi, I need to load from bootstrap some resources located in my 'models' directory. But if I try I get Fatal error: Class '{model}' not found in []\application\Bootstrap.php on line 201 What to do to include resources located in models dir? I notice there is a class Zend_Application_Modu

Re: [fw-general] Modules using zend_application

2009-05-07 Thread Vadim Gabriel
I did the same thing and have the same problem. On Thu, May 7, 2009 at 2:11 PM, Erwin Toze wrote: > 2009/5/7 Karl > >> Hi, >> >> I am still trying to figure out how to have different layouts per module >> without overriding my main applications layout, so I unfortunately don't >> have examples

Re: [fw-general] Modules using zend_application

2009-05-07 Thread Erwin Toze
2009/5/7 Karl > Hi, > > I am still trying to figure out how to have different layouts per module > without overriding my main applications layout, so I unfortunately don't > have examples for you. > I'm also struggling with module specific layout, for instance, if i have: two layout files: /ap

Re: [fw-general] Modules using zend_application

2009-05-07 Thread Vadim Gabriel
Hey, Thanks. This is getting easier now. Do you think there is a way to know which module is currently loaded in the bootstrap.php file? Thanks again. On Thu, May 7, 2009 at 1:14 PM, Karl wrote: > Hi, > > Your application/Bootsrap extends Zend_Application_Bootstrap_Bootstrap and > your module

RE: [fw-general] Modules using zend_application

2009-05-07 Thread Karl
Hi, Your application/Bootsrap extends Zend_Application_Bootstrap_Bootstrap and your module ones extend Zend_Application_Module_Bootstrap so you would not be able to extend your module one with the application bootstrap. I am still trying to figure out how to have different layouts per module wi

[fw-general] ZF1.8 Right way to get zend registry instance

2009-05-07 Thread Sergio Rinaudo
Hi, I'm wondering if there is any 'best' or 'right' way to get zend registry instance within the zf1.8 bootstrap. Thanks. Sergio Rinaudo _ Più di 100 Emoticon gratis per il tuo Messenger! http://intrattenimento.it.msn.com/emoticon

[fw-general] ZF1.8 Starting Session using configuration

2009-05-07 Thread Sergio Rinaudo
Hi, I have this configuration for the session resource in my application.ini resources.session.save_path = APPLICATION_PATH "/../data/session" resources.session.use_only_cookies = true resources.session.remember_me_seconds = 864000 and I want to start session in my bootstrap. I'm reading

Re: [fw-general] Modules using zend_application

2009-05-07 Thread Vadim Gabriel
Hey, Thanks for the answers. Could both bootstraps classes share the same methods? I assume i could extend modules/admin/bootstrap.php with the application/bootstrap.php class? and override methods i will need? Do you have an example for a bootstrap class that loads routes/frontcontroller/helpers

RE: [fw-general] Modules using zend_application

2009-05-07 Thread Karl
Hi Vincent - See response to your questions below. This is what I understand from the modular structure. From: Vadim Gabriel [mailto:vadim...@gmail.com] Sent: 07 May 2009 11:00 AM To: Mon Zafra Cc: Zend Framework - General Subject: Re: [fw-general] Modules using

Re: [fw-general] Modules using zend_application

2009-05-07 Thread Vadim Gabriel
Hey, "About the workshop controller problem, that's probably a rewrite issue or a wrong base url setting. " Reading that i was like "yea right..." but then i noticed that i emptied the baseUrl property in the config.php file and therefore it throw that exception. Removing that just worked. And mo

Re: [fw-general] Modules using zend_application

2009-05-07 Thread Mon Zafra
The module bootstraps will not be executed unless the Modules bootstrap resource plugin is enabled. Since (I guess) you're using Zend_Tool now, just add the line 'resources.modules = 1' in application.ini. If you aren't using a config, there are a couple of ways (that I know of) to enable it: 1. V

RE: [fw-general] Modules using zend_application

2009-05-07 Thread Karl
Hi Vincent, This is how I managed to get it working. extract from .ini # Bootstrapping bootstrap.path = APPLICATION_PATH "/Bootstrap.php" bootstrap.class = "Bootstrap" # Front Controller resources.frontController.moduleDirectory = APPLICATION_PATH "/modules" resources.frontController.defaultC

Re: [fw-general] Bootstrapping modules

2009-05-07 Thread Vadim Gabriel
Hey, Thanks for that, It's a good start. The reason i want to separate the admin from the other modules is because i will have lots of controllers for each module, Each module will have several layouts, each one has to load different public resources from the public folder so it's important for me

Re: [fw-general] Bootstrapping modules

2009-05-07 Thread keith Pope
2009/5/7 Vadim Gabriel : > OK i have added a bootsrap.php file for each module in the module root > directory. For some reason it won't load that bootstrap file. > For example my default module directory is as follows: > > -default > --bootsrap.php > --controllers > --layouts > --views > > my boots

[fw-general] Modules using zend_application

2009-05-07 Thread Vadim Gabriel
I was struggling with this, This entire morning with no luck at trying to figure out how to setup a moduler structure and using zend_application and bootstrapping. I have gone to a point where he scans the modules directory, Does not load the bootstrap files located under each module directory root