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 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
i read that i can control the way my Zend_Navigation menu by partials
http://framework.zend.com/manual/en/zend.view.helpers.html#zend.view.helpers.initial.navigation.menu
Example 60.40. Rendering a custom menu using a partial view script
but i only got the 1st root item IMS
i setup my navigati
-- dele454 wrote
(on Wednesday, 06 May 2009, 02:40 PM -0700):
> Thanks for the reply. Well i am using ver 7.0.5730.11. You made a valid
> point there so i checked my source file and discovered the custom dojo build
> was loading after my js scripts. So i changed it to
> headScript()->prependFile()
Apparently it is an IE7 bug and it can be a result of the following reasosn
listed here:
1. http://support.microsoft.com/kb/927917#more_information
2. http://www.fergusweb.net/coding/ie-operation-aborted-javascript-issues/
So i tried no 2. I left my js declaration and took out the flash header
d
HI,
Thanks for the reply.I was just about to post this:
I noticed that if i remove my js declarations the page loads fine in IE
without that Error - which simply butresses your point that the error is
truly from js. Thanks for this mate. I am going to google it and see how i
can apply the delay.
This is caused by Javascript trying to manipulate the page content before
the page has completely loaded, other browsers handle it fine, IE doesn't.
It's a well known problem. If you google the error message you'll find heaps
of info, but the basic gist of it is that you need to delay the execution
Hi Mark,
Long time. How are you doing?
Thanks for the reply. Well i am using ver 7.0.5730.11. You made a valid
point there so i checked my source file and discovered the custom dojo build
was loading after my js scripts. So i changed it to
headScript()->prependFile() instead. - so that was sorte
Which versions of IE are you testing?
Anyways, this wouldn't be a ZF problem. It might be javascript. We
have seen rare instances where loading javascripts in the wrong order
can cause IE to show a similar error (might be the same error - I
don't remember what it said). I think the best solution i
On Wed, May 6, 2009 at 11:11 AM, Eugene Morgan wrote:
> This is how I do it:
>
> $field->addMultiOption('', '(choose one)');
>
The problem I ran into with this approach is now the '' is considered a
valid value from the auto-added InArray validator.
The route I took, which works, but hardly ele
Hi,
Whenever i browse the site i am working on at the moment using IE, i get the
error below. I have tried to pin it on something but i dont know when it is
giving such a message in IE. I have checked everything in my bootstrap but i
cant find anything out of the ordinary there. Please i need hel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
You most certainly didn't add the "My_" namespace to the autoloader.
...
: ___ _ ___ ___ ___ _ ___:
: | \ /_\ / __| _ \ _ (_) \ :
: | |) / _ \\__ \ _/ / | |) | :
: |___/_/:\_\___/_| |_|_\_|___/ :
:..
Ralph Schindler-2 wrote:
>
> Somehow you have a class called 'Member' inside your session. When
> Zend_Session starts up, it is attempting to autoload the 'Member'
> object, thus, the autoloader will attempt to autoload Member.php from
> your include_path.
>
> Do you have any classes called
Hi,
I used Zend Tool to create a new ZF 1.8.0 project, and I've implemented to it
modules management using
application.ini and {ModuleName}_Bootstrap for each module.
My problem now is that my controllers extend My_Controller_Action and not
Zend_Controller_Action, and I get this error:
Fatal
Hey,
Wow that looks very nice. Thanks for the share. I wish stuff like that were
posted somewhere it would have saved me time. And i am sure others could use
this too.
Thanks again.
Vince.
On Wed, May 6, 2009 at 8:31 PM, mikaelkael wrote:
> Vadim Gabriel a écrit :
>
>
>> ZendFramework 1.8 Manu
Vadim Gabriel a écrit :
ZendFramework 1.8 Manual CHM file
http://www.vadimg.co.il/2009/05/06/zendframework-18-manual-chm-file/
--
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.
Zend Framework Certified Engineer.
-- http://www.vadimg.co.il/
The same with syntax hig
Matthew Lurz wrote:
>
> While this is the behavior out of the box, Doctrine is flexible.
>
> Take a look at
> http://www.doctrine-project.org/documentation/manual/1_1/en/yaml-schema-files#features-examples:packages
> and
> http://www.doctrine-project.org/documentation/manual/1_1/en/yaml-schema
-- holografix . wrote
(on Wednesday, 06 May 2009, 03:47 PM +0100):
> Maybe I didn't explain myself clear. I'm trying to checkout but my local
> folder
> is empty. This does not happen with library trunk, user branch, laboratory.
> In this particular case I'm trying to get Zend_View_Helper_BaseUrl
This is how I do it:
$field->addMultiOption('', '(choose one)');
On Mon, May 4, 2009 at 4:33 PM, Philip G wrote:
> What's the best way to add an initial empty value, while still retaining a
> select menu as required?
>
> This doesn't work very well. It, unfortunately, makes the first value '0'
Hello,
I used this Tutorial to setup my enviroment, so I can use my
controller action from cli:
http://webfractor.wordpress.com/2008/08/14/using-zend-framework-from-the-command-line/
This works fine.
But I have one small issue:
When i make an echo in my script, the output gets displayed after th
Using ZFW 1.7.7, I'm running into an issue with reading the title, link and
description of an RSS 1.0 feed.
When trying to import: http://www.qsrmagazine.com/industry_news.rss
$feed = Zend_Feed::import( $import );
$feed->title(), $feed->description and $feed->link() come up empty.
This happens wi
http://framework.zend.com/manual/en/zend.form.elements.html#zend.form.elements.validators
The default decorators ('Errors' and 'FormErrors') handle displaying the
error messages.
Razorblade wrote:
>
>
> Hi,
> I want to add an error message inside my login form object, for example
> when an
Hi
Fixed with TortoiseSVN latest version. Thanks.
Cheers
holo
2009/5/6 holografix .
> Hi
> Thanks.
>
> Maybe I didn't explain myself clear. I'm trying to checkout but my local
> folder is empty. This does not happen with library trunk, user branch,
> laboratory.
> In this particular case I'm t
P.S I do not use the Zend_Tool yet since it doesn't support modules...Yet
(as far as i know)
On Wed, May 6, 2009 at 6:23 PM, Vadim Gabriel wrote:
> Thanks everyone, I think since there are so many people wondering about it,
> A blog post/tutorial will be a good idea *hint Matthew hint* i will ta
Thanks everyone, I think since there are so many people wondering about it,
A blog post/tutorial will be a good idea *hint Matthew hint* i will take a
look at those once i am at the office tomorrow.
Vince.
On Wed, May 6, 2009 at 5:33 PM, Jurian Sluiman
wrote:
> I think (but am not sure about it)
ok thanks, i didnt read everything in the manual ...
anyways,
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
protected function _initRequest()
{
...
// Ensure the request is stored in the bootstrap registry
return $request;
}
}
return is so
Hi
Thanks.
Maybe I didn't explain myself clear. I'm trying to checkout but my local
folder is empty. This does not happen with library trunk, user branch,
laboratory.
In this particular case I'm trying to get Zend_View_Helper_BaseUrl .
Cheers
holo
2009/5/6 Matthew Weier O'Phinney
> -- holog
-- holografix . wrote
(on Wednesday, 06 May 2009, 02:45 PM +0100):
> I'm having problems with this update. All updates (library, laboratrory, user
> branch) works fine.
>
> Windows command-line: svn checkout http://framework.zend.com/svn/framework/
> standard/incubator/ c:\wwwroot\lib\php\ZendFr
I think (but am not sure about it) you can add view helper paths in the module
bootstrap. You need to specify them for each module, that's correct. But it's
not much work to have an init method in each bootstrap class adding a path to
the view (only some duplicated code...).
--
Jurian Sluiman
S
Hi,
I've been trying to configure the same setup as mentioned and was having
issues trying to get my view helpers registered in the modules. You will
have to register your view helper paths in each modules bootstrap file.
regards,
Karl
_
From: Jurian Sluiman [mailto:subscr...@juriansl
Op Wednesday 06 May 2009 16:14:30 schreef iceangel89:
> THANKS!!! ppl here are GREAT!!!
>
> just for my understanding ...
>
> $this->bootstrap("view");
>
> is to? bootstrap view.
> if i dun have that does it mean view will not be bootstrapped?
I'm sorry to say, but this is very clear in the manual
Op Wednesday 06 May 2009 16:16:09 schreef Mon Zafra:
> You should also add
>
> resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
>
> in your application.ini. I believe it's not specified by Zend_Tool by
> default.
>
>-- Mon
>
Yes, that's true. I forgot to say, but thos
It will be bootstrapped eventually. It's just that, if I'm not mistaken,
bootstrap methods (in this example, _initNavigation()) are called first
before resource plugins (the View resource plugin). But _initNavigation() is
dependent on View, so it has to be explicitly bootstrapped by
_initNavigation
i currently have breadcrumbs like
an application to manage
Departments (eg. Physics, Bio ...)
Departments have Categories (eg. Electricity, Test Tubes ...)
Categories have Items (eg. ...)
so ...
Departments > Categories > Items ... is what i have now
but can i do something like
Departments
You should also add
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
in your application.ini. I believe it's not specified by Zend_Tool by
default.
-- Mon
On Wed, May 6, 2009 at 10:02 PM, Jurian Sluiman
wrote:
> Op Wednesday 06 May 2009 14:57:00 schreef Vadim Gab
I have been gettin to grips with ZF for a few months now and never
encountered any routing issues with 1.7.
Since moving to 1.8 I was playing around with a modular structure and at
first thought it worked. When I loaded up http://mysite/ it directed me to
default/index/index (module/controller/ac
THANKS!!! ppl here are GREAT!!!
just for my understanding ...
$this->bootstrap("view");
is to? bootstrap view.
if i dun have that does it mean view will not be bootstrapped?
--
View this message in context:
http://www.nabble.com/Getting-view-from-Bootstrap-%28ZF1.8%29-tp23401867p23407562.
Try this. It worked for me.
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
protected $_pluginResources = array('view' => array()); // or remove
this and add 'resources.view = on' in application.ini
protected function _initNavigation()
{
$this->bootstrap('view')
Op Wednesday 06 May 2009 14:57:00 schreef Vadim Gabriel:
> Hey,
>
> Are there any tutorials/guides out there that show examples on ways to
> bootstrap an application using more then one module? I mean if i have a
> directory structure like this:
>
> -library
> ---Zend
> -public
> ---admin
> -de
I have the same problem,
but I THINK I am near the solution.
Try to add on your 1.8 bootstrap this method
protected function _initFront(){
$config = new
Zend_Config_Ini(CONFIGS_PATH.'application.ini',APPLICATION_ENV); // you can
skip this
$frontController = Zend_Controller_F
my 2 cents:
If you look at other form elements, you will see that they use a view
helper for rendering.
So I guess it would be 'better' if you created a view helper for it.
-Bart
Daniel Latter schreef:
sorry when I said: /which calls a recursive function/
I meant: which calls a recursive met
Op Wednesday 06 May 2009 14:15:08 schreef iceangel89:
> Ionut Gabriel Stan-2 wrote:
> > Why do you need to access the view object in the bootstrap?
>
> i want to add zend_navigation to my application.
>
> so i need to do a
>
> $view->navigation($nav);
>
> so probably i do that in bootstrap? or some
hmm ... does not seem to work ...
$view = $this->getResource('view');
echo $view;die(); prints nothing
and then $view->navigate($nav);
gives Call to a member function navigate() on a non-object probably $view is
null
Mon Zafra wrote:
>
> On Wed, May 6, 2009 at 8:22 PM, iceangel89 wrote:
Hi
I'm having problems with this update. All updates (library, laboratrory,
user branch) works fine.
Windows command-line: svn checkout
http://framework.zend.com/svn/framework/standard/incubator/c:\wwwroot\lib\php\ZendFramework\incubator
Are there any problems with incubator ?
Cheers
holo
Currently in the config file you can do this:
'resources' => array(
'frontController' => array(
'moduleDirectory' => APPLICATION_PATH . '/modules'
),
'router' => array(
'routes' => include dirname(__FILE__) . '/routes.config.php'
),
On Wed, May 6, 2009 at 8:22 PM, iceangel89 wrote:
>
> just wondering... if i do that it will be v long. so anyway to have
> application.ini read another file that has config for just navigation?
>
>
I don't think so. Anyway, I think you can do this:
protected function _initView()
{
Hey,
Are there any tutorials/guides out there that show examples on ways to
bootstrap an application using more then one module? I mean if i have a
directory structure like this:
-library
---Zend
-public
---admin
-default
-other
---site
-default
-other
---index.php
-application
--
While this is the behavior out of the box, Doctrine is flexible.
Take a look at
http://www.doctrine-project.org/documentation/manual/1_1/en/yaml-schema-files#features-examples:packages
and
http://www.doctrine-project.org/documentation/manual/1_1/en/yaml-schema-files#features-examples:packages:pac
Mon Zafra wrote:
>
> And yes, since there is a Navigation bootstrap resource, it should be
> possible to initialize Zend_Navigation via application.ini. I haven't used
> Zend_Nav yet, but looking at the docs I guess the pages could be specified
> this way: (example 37.10 from
> http://framework.
Matthew Weier O'Phinney-3 wrote:
>
> You're likely looking for Zend_Layout::getMvcInstance(), not startMvc().
>
hmm then how do i get the view object? i am actually trying to add
$view->navigation($nav);
to the view so i can breadcrumbs. is this the right thing to do?
Matthew Weier O'Phin
Ionut Gabriel Stan-2 wrote:
>
> Why do you need to access the view object in the bootstrap?
>
i want to add zend_navigation to my application.
so i need to do a
$view->navigation($nav);
so probably i do that in bootstrap? or somewhere else?
--
View this message in context:
http://www.nab
Dear List,
I have a bootstrap like this one
http://raiyaraj.wordpress.com/2008/08/08/zendframework-bootstrap/ , and I want
to use new zf 1.8.0 library and features, so I have to implement all my 'old'
code in a new zend project created via Zend_Tool.
My problem is I don't know from where to st
-- iceangel89 wrote
(on Wednesday, 06 May 2009, 01:04 AM -0700):
> how do i get view from the bootstrap file/class?
>
> $view = Zend_Layout::startMvc()->getView();
You're likely looking for Zend_Layout::getMvcInstance(), not startMvc().
The question I have for you is: where are you trying to ge
-- iceangel89 wrote
(on Tuesday, 05 May 2009, 06:37 PM -0700):
> i found out that validation only works if the $this->t = new ... ("t" ...)
> both "names" must be the same
>
> $this->t = new Zend_Form_Element_Text("t", array (
> ...
> 'validators' => array('Int', new Lab_Validator_Allocat
If you have a resources.layout.* in your application.ini, don't call
startMvc() again. Use getMvcInstance() instead.
And yes, since there is a Navigation bootstrap resource, it should be
possible to initialize Zend_Navigation via application.ini. I haven't used
Zend_Nav yet, but looking at the doc
Why do you need to access the view object in the bootstrap?
I'd recommend registering a front controller plugin with
Zend_Controller_Front
and than access the view in the preDispatch() method of the plugin, using a
call to Zend_Layout::getMvcInstance()->getView();
The reason is that the view o
Hey,
Sorry, Not quite understood what your trying to ask. You can pass a
zend_config object into the constructor that will have those options. For
example:
[layout]
layout = "foo"
layoutPath = "/path/to/layouts"
contentKey = "CONTENT"
$config = new Zend_Config_Ini('/path/to/layout.ini', 'layout'
actually i also have a application.ini that already has that, will it be ok
to repeat? if they have different values which will be effective?
is there a way to have Zend_Navigation in application.ini?
vince. wrote:
>
> Hey,
>
> Both the constructor and the startMvc() static method can accep
Hi,
Thank you for your reply !
Im using a web hosting company and this is what a vhost block looks like
(I've replaced ip and path):
ServerAdmin webmas...@covoiturage-belgique.be
DocumentRoot PATH/www
SuexecUserGroup covoitur users
ServerName www.covoiturage-belg
i have a navigation like
'IMS',
'controller' => 'index',
'action' => 'index',
'pages' => array(
array(
'label' => 'Lab',
'module' => 'lab',
'controller' => 'index',
'action' => 'index',
ZendFramework 1.8 Manual CHM file
http://www.vadimg.co.il/2009/05/06/zendframework-18-manual-chm-file/
--
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.
Zend Framework Certified Engineer.
-- http://www.vadimg.co.il/
Hey,
Both the constructor and the startMvc() static method can accept either an
array of options or a Zend_Config object with options in order to configure
the Zend_Layout instance.
Example:
$options = array( 'layout' => 'foo', 'layoutPath' => '/path/to/layouts' );
$view = Zend_Layout::startMvc(
how do i get view from the bootstrap file/class?
$view = Zend_Layout::startMvc()->getView();
gives
Fatal error: Uncaught exception 'Zend_Layout_Exception' with message
'setOptions() expects either an array or a Zend_Config object' in
D:\JiewMeng\ZendFramework\library\Zend\Layout.php:234 Stack
63 matches
Mail list logo