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

2009-05-07 Thread iceangel89
i have something like $reports = new Zend_Navigation_Page_Mvc(array( 'label' = 'Reports', 'module' = 'reports', 'controller' = 'index', 'action' = 'index' )); $misc = new Zend_Navigation_Page_Mvc(array( 'label' = 'Misc', 'module' = 'misc', 'controller' = 'index',

Re: [fw-general] Bootstrapping modules

2009-05-07 Thread 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 bootsrap.php file has the class Default_Bootstrap

[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

Re: [fw-general] Bootstrapping modules

2009-05-07 Thread keith Pope
2009/5/7 Vadim Gabriel vadim...@gmail.com: 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

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

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

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

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

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

[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

[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!

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

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 k...@wedgeonline.co.za wrote: Hi, Your application/Bootsrap extends

Re: [fw-general] Modules using zend_application

2009-05-07 Thread Erwin Toze
2009/5/7 Karl k...@wedgeonline.co.za 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

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 tozer...@gmail.com wrote: 2009/5/7 Karl k...@wedgeonline.co.za Hi, I am still trying to figure out how to have different layouts per module without overriding my main applications layout, so I

[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

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

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.

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-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 k...@wedgeonline.co.za

[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

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 vadim...@gmail.com It

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 ziad_man...@hotmail.com wrote: Hi, I am

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

2009-05-07 Thread Matthew Weier O'Phinney
-- Sergio Rinaudo kaiohken1...@hotmail.com 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

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

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

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

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 ziad_man...@hotmail.com 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

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] Extending Zend Framework classes

2009-05-07 Thread iceangel89
what abt other classes? like Zend_Validate? Giorgio Sironi wrote: 2009/5/5 iceangel89 comet2...@gmail.com 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 =

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

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:

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] 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!

[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] 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.

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

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 :

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 Controllers

[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] Extending Zend Framework classes

2009-05-07 Thread Matthew Weier O'Phinney
-- iceangel89 comet2...@gmail.com 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

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

2009-05-07 Thread Matthew Weier O'Phinney
-- Sergio Rinaudo kaiohken1...@hotmail.com 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

[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

Re: [fw-general] Zend_Db_Table

2009-05-07 Thread Matthew Weier O'Phinney
-- holografix . hologra...@gmail.com 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

[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 g...@gpcentre.net 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?

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

Re: [fw-general] Bootstrapping modules

2009-05-07 Thread keith Pope
2009/5/7 Justin Barnes m...@justin-barnes.com: 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

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

2009-05-07 Thread keith Pope
2009/5/7 Sergio Rinaudo kaiohken1...@hotmail.com: 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

[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

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 rowClass

[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/*

[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:

[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] ZF1.8 Switching layouts between modules.

2009-05-07 Thread Matthew Weier O'Phinney
-- Sergio Rinaudo kaiohken1...@hotmail.com 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

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 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

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

[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] 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_Page_Mvc(array(

[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:

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

[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?