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',
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
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
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
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
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
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
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
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
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
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!
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
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
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
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
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
Maybe this is the solution.
On your application.ini add
{modulename}.resources.frontController.controllerDirectory = APPLICATION_PATH
/controllers
{modulename}.resources.frontController.moduleDirectory = APPLICATION_PATH
/modules
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.
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
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
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
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
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
-- 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
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
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
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
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
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
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 =
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:
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
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!
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 =
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.
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
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 :
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
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
-- 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
-- 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
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
-- 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
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?
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
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
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
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
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
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/*
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:
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
-- 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
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
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
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
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.
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(
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:
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
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?
61 matches
Mail list logo