Re: [fw-general] Bootstrapping modules

2009-05-06 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] Zend_Navigation menu active page not working ...

2009-05-06 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

[fw-general] Zend_Navigation menu using partials

2009-05-06 Thread iceangel89
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

Re: [fw-general] IE issues and i have no idea

2009-05-06 Thread Matthew Weier O'Phinney
-- 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()

Re: [fw-general] IE issues and i have no idea

2009-05-06 Thread dele454
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

Re: [fw-general] IE issues and i have no idea

2009-05-06 Thread dele454
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.

Re: [fw-general] IE issues and i have no idea

2009-05-06 Thread Cameron
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

Re: [fw-general] IE issues and i have no idea

2009-05-06 Thread dele454
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

Re: [fw-general] IE issues and i have no idea

2009-05-06 Thread Mark Wright
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

Re: [fw-general] Zend_Form_Element_Select - initial blank value

2009-05-06 Thread Philip G
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

[fw-general] IE issues and i have no idea

2009-05-06 Thread dele454
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

Re: [fw-general] My_Controller_Action not found

2009-05-06 Thread Ben Scholzen 'DASPRiD'
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 You most certainly didn't add the "My_" namespace to the autoloader. ... : ___ _ ___ ___ ___ _ ___: : | \ /_\ / __| _ \ _ (_) \ : : | |) / _ \\__ \ _/ / | |) | : : |___/_/:\_\___/_| |_|_\_|___/ : :..

Re: [fw-general] Big session problems - Zend_Auth

2009-05-06 Thread lund.mikkel
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

[fw-general] My_Controller_Action not found

2009-05-06 Thread Sergio Rinaudo
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

[fw-general] Re: [zf-contributors] http://www.vadimg.co.il/2009/05/06/zendframework-18-manual-chm-file/

2009-05-06 Thread Vadim Gabriel
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

[fw-general] Re: [zf-contributors] http://www.vadimg.co.il/2009/05/06/zendframework-18-manual-chm-file/

2009-05-06 Thread mikaelkael
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

Re: [fw-general] Autoload models with no namespace

2009-05-06 Thread admirau
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

Re: [fw-general] Update Incubator from SVN

2009-05-06 Thread Matthew Weier O'Phinney
-- 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

Re: [fw-general] Zend_Form_Element_Select - initial blank value

2009-05-06 Thread Eugene Morgan
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'

[fw-general] ZendFramework and cli

2009-05-06 Thread Stefan Sturm
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

[fw-general] Zend_Feed, RSS

2009-05-06 Thread Philip G
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

Re: [fw-general] Form Error Message

2009-05-06 Thread lightflowmark
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

Re: [fw-general] Update Incubator from SVN

2009-05-06 Thread holografix .
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

Re: [fw-general] Bootstrapping modules

2009-05-06 Thread Vadim Gabriel
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

Re: [fw-general] Bootstrapping modules

2009-05-06 Thread Vadim Gabriel
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)

Re: [fw-general] Getting view from Bootstrap (ZF1.8)

2009-05-06 Thread iceangel89
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

Re: [fw-general] Update Incubator from SVN

2009-05-06 Thread 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 trying to get Zend_View_Helper_BaseUrl . Cheers holo 2009/5/6 Matthew Weier O'Phinney > -- holog

Re: [fw-general] Update Incubator from SVN

2009-05-06 Thread Matthew Weier O'Phinney
-- 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

Re: [fw-general] Bootstrapping modules

2009-05-06 Thread Jurian Sluiman
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

RE: [fw-general] Bootstrapping modules

2009-05-06 Thread Karl
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

Re: [fw-general] Getting view from Bootstrap (ZF1.8)

2009-05-06 Thread Jurian Sluiman
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

Re: [fw-general] Bootstrapping modules

2009-05-06 Thread Jurian Sluiman
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

Re: [fw-general] Getting view from Bootstrap (ZF1.8)

2009-05-06 Thread Mon Zafra
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

[fw-general] Breadcrumbs

2009-05-06 Thread iceangel89
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

Re: [fw-general] Bootstrapping modules

2009-05-06 Thread 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 On Wed, May 6, 2009 at 10:02 PM, Jurian Sluiman wrote: > Op Wednesday 06 May 2009 14:57:00 schreef Vadim Gab

[fw-general] Zend 1.8 routing issues

2009-05-06 Thread yidarmy2009
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

Re: [fw-general] Getting view from Bootstrap (ZF1.8)

2009-05-06 Thread 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? -- View this message in context: http://www.nabble.com/Getting-view-from-Bootstrap-%28ZF1.8%29-tp23401867p23407562.

Re: [fw-general] Getting view from Bootstrap (ZF1.8)

2009-05-06 Thread Mon Zafra
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')

Re: [fw-general] Bootstrapping modules

2009-05-06 Thread Jurian Sluiman
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

FW: [fw-general] Bootstrapping modules

2009-05-06 Thread Sergio Rinaudo
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

Re: [fw-general] Re: Form tree element

2009-05-06 Thread Bart McLeod
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

Re: [fw-general] Getting view from Bootstrap (ZF1.8)

2009-05-06 Thread Jurian Sluiman
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

Re: [fw-general] Getting view from Bootstrap (ZF1.8)

2009-05-06 Thread iceangel89
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:

[fw-general] Update Incubator from SVN

2009-05-06 Thread holografix .
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

[fw-general] Config file resource routes scan directory

2009-05-06 Thread Vadim Gabriel
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' ),

Re: [fw-general] Getting view from Bootstrap (ZF1.8)

2009-05-06 Thread Mon Zafra
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() {

[fw-general] Bootstrapping modules

2009-05-06 Thread 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 -default -other ---site -default -other ---index.php -application --

Re: [fw-general] Autoload models with no namespace

2009-05-06 Thread Matthew Lurz
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

Re: [fw-general] Getting view from Bootstrap (ZF1.8)

2009-05-06 Thread iceangel89
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.

Re: [fw-general] Getting view from Bootstrap (ZF1.8)

2009-05-06 Thread iceangel89
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

Re: [fw-general] Getting view from Bootstrap (ZF1.8)

2009-05-06 Thread 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 somewhere else? -- View this message in context: http://www.nab

[fw-general] Bootstrap how to PLEASE

2009-05-06 Thread Sergio Rinaudo
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

Re: [fw-general] Getting view from Bootstrap (ZF1.8)

2009-05-06 Thread Matthew Weier O'Phinney
-- 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

Re: [fw-general] Validation not working ...

2009-05-06 Thread Matthew Weier O'Phinney
-- 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

Re: [fw-general] Getting view from Bootstrap (ZF1.8)

2009-05-06 Thread Mon Zafra
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

Re: [fw-general] Getting view from Bootstrap (ZF1.8)

2009-05-06 Thread Ionut G. Stan
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

Re: [fw-general] Getting view from Bootstrap (ZF1.8)

2009-05-06 Thread Vadim Gabriel
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'

Re: [fw-general] Getting view from Bootstrap (ZF1.8)

2009-05-06 Thread iceangel89
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

Re: [fw-general] overriding .htaccess for a specific module

2009-05-06 Thread debussy007
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

[fw-general] Zend_Navigation Breadcrumbs & Parameters

2009-05-06 Thread iceangel89
i have a navigation like 'IMS', 'controller' => 'index', 'action' => 'index', 'pages' => array( array( 'label' => 'Lab', 'module' => 'lab', 'controller' => 'index', 'action' => 'index',

[fw-general] http://www.vadimg.co.il/2009/05/06/zendframework-18-manual-chm-file/

2009-05-06 Thread Vadim Gabriel
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/

Re: [fw-general] Getting view from Bootstrap (ZF1.8)

2009-05-06 Thread Vadim Gabriel
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(

[fw-general] Getting view from Bootstrap (ZF1.8)

2009-05-06 Thread iceangel89
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