[fw-general] Zend_Form value =>

2008-03-18 Thread Teemu Välimäki
How do I set submit, text etc. value before rendering with Zend_Form constructor array? I see methods such as setDefault and populate for it. -- Teemu Valimaki <[EMAIL PROTECTED]>

[fw-general] Logging issue - need help

2008-03-18 Thread debussy007
Hi, I have a plugin called at every request, which is choosing the right file for the logging. I create a log for every hour. The problem is that if there is a new request, even if there is nothing to log, a new file is created. Consequent: I have tons of logging files for each day each hour.

[fw-general] Code freeze for 1.5.1

2008-03-18 Thread Wil Sinclair
Yeap, you read that right. 1.5.0 has been out not much more than a day, and we're already planning to oust it with a mini release. And by the end of this week, no less: The code freeze for this releases is currently scheduled for 21:00 (9:00pm) PST (GMT-8) on Friday, March 21. All contributors sho

Re: [fw-general] autoloading models

2008-03-18 Thread James Dempster
Something like $frontController = Zend_Controller_Front::getInstance(); $frontController->addModuleDirectory(ROOT_DIR.'/modules/'); /James On Tue, Mar 18, 2008 at 11:55 PM, Simeon Goranov <[EMAIL PROTECTED]> wrote: > Hi all, > I have the following project structure: > > application >models

[fw-general] autoloading models

2008-03-18 Thread Simeon Goranov
Hi all, I have the following project structure: application models controllers views modules gallery models controllers views news models controllers views public index.php The questions is - which is the easier way to setup

Re: [fw-general] Little errors in documentation

2008-03-18 Thread Csányi András
On Tue, Mar 18, 2008 at 05:01:12PM -0400, Matthew Weier O'Phinney wrote: > > - 15.2.6. Putting it together > > has brackets > > $form = new Zend_Form(); > > but/and - i don't know :) : > > - $username->addValidator('stringLength'... > > and > > - $password->addValidator('StringLength'... > >

Re: [fw-general] 1.5, change to Zend_Filter_Input::getMessages()

2008-03-18 Thread Matthew Weier O'Phinney
-- David Mintz <[EMAIL PROTECTED]> wrote (on Tuesday, 18 March 2008, 04:15 PM -0400): > Congrats on the 1.5 release. > > I notice that the return value of Zend_Filter_Input's getMessages() used to be > an associative array of numerically indexed arrays, whereas now the keys are > the rule name. I

Re: [fw-general] Re: [fw-mvc] Get module directory?

2008-03-18 Thread 'Matthew Weier O'Phinney'
-- Terre Porter <[EMAIL PROTECTED]> wrote (on Tuesday, 18 March 2008, 02:49 PM -0400): > > Sorry #2 did work. It returns either a single directory or an array of > directorys, depending on what set up is used and if a module name was > specified. I got intrupted when writing the e-mail, and hit se

Re: [fw-general] Little errors in documentation

2008-03-18 Thread Matthew Weier O'Phinney
-- Csányi András <[EMAIL PROTECTED]> wrote (on Tuesday, 18 March 2008, 07:40 PM +0100): > I have been reading the documentation for half an hours and i found > little errors in the part of Zend_Form: > > - 15.2.1. Create a form object > missing brackets > $form = new Zend_Form; If you are not pas

[fw-general] 1.5, change to Zend_Filter_Input::getMessages()

2008-03-18 Thread David Mintz
Hey all Congrats on the 1.5 release. I notice that the return value of Zend_Filter_Input's getMessages() used to be an associative array of numerically indexed arrays, whereas now the keys are the rule name. I just want to make sure this modification is likely here to stay before I set about upda

RE: [fw-general] New ZF site home page broken under Firefox/Debian

2008-03-18 Thread Wil Sinclair
Interesting. I hadn't thought of that angle. I'll check with Atlassian to see what they say. BTW, we have considered shipping the site with the distribution as an example. This might be another reason to do that. :) Of course, then there's the question of whether we can use it for Atlassian product

Re: [fw-general] New ZF site home page broken under Firefox/Debian

2008-03-18 Thread Andries Seutens
Hi Wil, I've brought this up before, and the reason not to do this was because it breaks the open source jira license. The zf website is not yet open sourced (closed product), so we can not use the (free) jira license for this. Please correct me if i'm wrong :) Best, Andries Wil Sinclair

RE: [fw-general] New ZF site home page broken under Firefox/Debian

2008-03-18 Thread Wil Sinclair
I've thought about where to track the issues with our site (including the wiki, issue tracker, etc.) . I think the best answer is in a separate project in JIRA where we don't pollute the data for the actual codebase and the releases can be totally independent of ZF releases (if we have the concept

RE: [fw-general] Re: [fw-mvc] Get module directory?

2008-03-18 Thread Terre Porter
Sorry #2 did work. It returns either a single directory or an array of directorys, depending on what set up is used and if a module name was specified. I got intrupted when writing the e-mail, and hit send to fast... http://framework.zend.com/issues/browse/ZF-2910 - I found the same function in

[fw-general] Little errors in documentation

2008-03-18 Thread Csányi András
Hi! I have been reading the documentation for half an hours and i found little errors in the part of Zend_Form: - 15.2.1. Create a form object missing brackets $form = new Zend_Form; - 15.2.6. Putting it together has brackets $form = new Zend_Form(); but/and - i don't know :) : - $username->ad

Re: [fw-general] Simple menu on every page

2008-03-18 Thread Csányi András
On Tue, Mar 18, 2008 at 07:25:02AM -0700, Malfojan wrote: > > Hi, > > I've got a very simple page, header, left menu, right content, footer. > Menu items are generated from the database. > > What is the easiest way of adding menu into the every page? Hi! My opinion is the next: the best way is

Re: [fw-general] 1.5 and Ajax Forms

2008-03-18 Thread Csányi András
On Tue, Mar 18, 2008 at 08:59:14AM -0400, Matthew Weier O'Phinney wrote: > -- Csányi András <[EMAIL PROTECTED]> wrote > (on Monday, 17 March 2008, 10:59 PM +0100): > > On Mon, Mar 17, 2008 at 08:31:56AM -0700, Andi Gutmans wrote: > > >Here's an example with Dojo: > > > > > > > > > http://f

Re: [fw-general] Zend_Date and GMT problem

2008-03-18 Thread tflessak
Hi, I mean the method subMonth doesn't subtract 5 months correctly. For example (my timezone is Sao Paulo/Brazil): date_default_timezone_set('America/Sao_Paulo'); $dt = new Zend_Date(); $dt->subMonth(5); $result = $dt->toString('dd/MM/'); On version 1.0.3 $result is the current date minus 5

Re: [fw-general] Re: [fw-mvc] Get module directory?

2008-03-18 Thread Matthew Weier O'Phinney
-- Terre Porter <[EMAIL PROTECTED]> wrote (on Tuesday, 18 March 2008, 12:57 PM -0400): > A couple thoughts, > > 1. the request object does not appear to be available until after a > $front_controller->dispatch() call > > 2. there is a function that returns the controllers directory > $front_contr

RE: [fw-general] Re: [fw-mvc] Get module directory?

2008-03-18 Thread Terre Porter
A couple thoughts, 1. the request object does not appear to be available until after a $front_controller->dispatch() call 2. there is a function that returns the controllers directory $front_controller->getControllerDirectory($modulename optional) However, neither is available (in my code) until

Re: [fw-general] Simple menu on every page

2008-03-18 Thread mezoni
index.php // Configuration require_once 'Zend/Config/Ini.php'; require_once 'Zend/Registry.php'; Zend_Registry::set('config', new Zend_Config_Ini('config.ini')); layout.phtml action('menu', 'navigation', 'internal') ?> action('submenu', 'navigation', 'internal') ?> It is only my exprience... -

Re: [fw-general] Simple menu on every page

2008-03-18 Thread mezoni
menu.phtm, submenu.phtm items as $item): ?> href="" title="escape($item['description']) ?>"> escape($item['title']) ?> config.ini [navigation] modules.default.title = Главная modules.default.description = Главная страница modules.catalog.title = Каталог modules.catalog.description = Катал

Re: [fw-general] Simple menu on every page

2008-03-18 Thread mezoni
I try experience like this: navigation->toArray(); self::$front = $this->getFrontController(); self::$request = self::$front->getRequest(); self::$action = self::$request->getActionName(); self::$controller = self::$request->getControllerName(

Re: [fw-general] Zend_Date and GMT problem

2008-03-18 Thread Thomas Weidner
Hy Thiago, please provide us with all informations... What do you mean with "the code does not work anymore" ? When I run your code it works without problems. Which timezone have you set ? ... it's not declared in your example. What is the date-time you executed it ? What was the result ? What

[fw-general] Zend_Date and GMT problem

2008-03-18 Thread tflessak
Hi! I was using Zend Framework 1.0.3 Into my code there are situations where I use some month calculation like this: $dt = new Zend_Date(); $dt->subMonth(5); After update to version 1.5, this code doesn't work anymore. Doing some comparison with version 1.0.3, I could see that the function whic

Re: [fw-general] Re: [fw-mvc] Get module directory?

2008-03-18 Thread Matthew Weier O'Phinney
-- Jurriën Stutterheim <[EMAIL PROTECTED]> wrote (on Tuesday, 18 March 2008, 03:28 PM +0100): > Here you go :-) http://framework.zend.com/issues/browse/ZF-2910 Thanks! > On Mar 18, 2008, at 2:28 PM, Matthew Weier O'Phinney wrote: > >> -- Jurriën Stutterheim <[EMAIL PROTECTED]> wrote >> (on Tuesd

Re: [fw-general] Simple menu on every page

2008-03-18 Thread SiCo007
Probably the easiest is to create a postDispatch plugin to compile the menu and insert it into a Zend Layout placeholder. Or render a custom page in your template which does the PHP and creates the nav html. render('footer.phtml') ?> Most of the options are explained here in the manual: http://

Re: [fw-general] Example for using Ldap authentication against MS Active Directory

2008-03-18 Thread Michael B Allen
On 3/18/08, Kexiao Liao <[EMAIL PROTECTED]> wrote: > > Are there any examples for using ZF-1.5.0 Ldap authentication against > Microsoft Active Directory 2003? Thanks for your help. The reference guide page for Zend_Auth_Adapter_Ldap explains everything you need to know including AD specific opt

[fw-general] http://framework.zend.com/issues/browse/ZF-1343

2008-03-18 Thread Julian Davchev
Would like to get your attention back to issue http://framework.zend.com/issues/browse/ZF-1343 as it in my opinion is quite important to handle. I mean as it was stopped pretty much every site that I know ZF is crashing because of this. Either I am totally wrong on something or people I talked

[fw-general] Re: [fw-mvc] Get module directory?

2008-03-18 Thread Jurriën Stutterheim
Here you go :-) http://framework.zend.com/issues/browse/ZF-2910 On Mar 18, 2008, at 2:28 PM, Matthew Weier O'Phinney wrote: -- Jurriën Stutterheim <[EMAIL PROTECTED]> wrote (on Tuesday, 18 March 2008, 01:58 PM +0100): Getting the module directory can be used for access to the :module/ models

[fw-general] Simple menu on every page

2008-03-18 Thread Malfojan
Hi, I've got a very simple page, header, left menu, right content, footer. Menu items are generated from the database. What is the easiest way of adding menu into the every page? I dont want to have this code in every controller's preDispatch() method: $menu = $menuGenerator->getMenu(); $this->

[fw-general] Example for using Ldap authentication against MS Active Directory

2008-03-18 Thread Kexiao Liao
Are there any examples for using ZF-1.5.0 Ldap authentication against Microsoft Active Directory 2003? Thanks for your help. Kevin -- View this message in context: http://www.nabble.com/Example-for-using-Ldap-authentication-against-MS-Active-Directory-tp16121918s16154p16121918.html Sent from

Re: [fw-general] Design question about Action View Helper

2008-03-18 Thread alessandro cinelli
Thanks Matthew Weier O'Phinney , that is what i meant.. and sorry to Szymon Wilkolazki for my bad english and problem explanation.. hope i didn't bother you.. cirpo

Re[2]: [fw-general] New ZF site home page broken under Firefox/Debian

2008-03-18 Thread Stoyan
Title: Re[2]: [fw-general] New ZF site home page broken under Firefox/Debian Hi Matthew, you could just change the css file of the framework.zend.com to styles.css?new_zend, so that the browser doesn't draw the cache version (for people that have visited the site before). Tuesday, March 18, 2

Re: [fw-general] Design question about Action View Helper

2008-03-18 Thread Matthew Weier O'Phinney
-- alessandro cinelli <[EMAIL PROTECTED]> wrote (on Tuesday, 18 March 2008, 10:11 AM +0100): > 42.4.1.1. Action View Helper > > " The Action view helper enables view scripts to dispatch a given controller > action; the result of the response object following the dispatch is then > returned. These

Re: [fw-general] New site: permission denied

2008-03-18 Thread Matthew Weier O'Phinney
-- Jan Pieper <[EMAIL PROTECTED]> wrote (on Tuesday, 18 March 2008, 02:52 AM -0700): > Tried to search new zend framework website for > http://framework.zend.com/search?query=zend_auth&type=all&x=0&y=0 > "zend_auth" and thought i´ll get a result for documentation, but got an > error: > > ERROR:

Re: [fw-general] New ZF site home page broken under Firefox/Debian

2008-03-18 Thread Matthew Weier O'Phinney
-- Mark Maynereid <[EMAIL PROTECTED]> wrote (on Tuesday, 18 March 2008, 02:55 AM +): > The new ZF site's home page looks broken under Firefox 2.0.0.12 on Debian's > stable 'etch' release. I have attached a screenshot. > > It also fails to validate for both XHTML and CSS. Hit shift-reload to

Re: [fw-general] Normalizing action function names

2008-03-18 Thread Matthew Weier O'Phinney
-- Amr Mostafa <[EMAIL PROTECTED]> wrote (on Tuesday, 18 March 2008, 01:53 AM +0200): > It's in docs, but unfortunately not very obvious. There you go: > http://framework.zend.com/manual/en/zend.controller.migration.html# > zend.controller.migration.fromoneohtoonefive And the above link is also po

Re: [fw-general] 1.5 and Ajax Forms

2008-03-18 Thread Matthew Weier O'Phinney
-- Csányi András <[EMAIL PROTECTED]> wrote (on Monday, 17 March 2008, 10:59 PM +0100): > On Mon, Mar 17, 2008 at 08:31:56AM -0700, Andi Gutmans wrote: > >Here's an example with Dojo: > > > > > > http://framework.zend.com/manual/en/zend.controller.actionhelpers.html#zend.controller.actionhe

[fw-general] Design question about Action View Helper

2008-03-18 Thread alessandro cinelli
-- Forwarded message -- From: alessandro cinelli <[EMAIL PROTECTED]> Date: Tue, Mar 18, 2008 at 11:16 AM Subject: Re: [fw-general] Design question about Action View Helper To: SWilk <[EMAIL PROTECTED]> On Tue, Mar 18, 2008 at 10:58 AM, SWilk <[EMAIL PROTECTED]> wrote: > Hi, > >

Re: [fw-general] Design question about Action View Helper

2008-03-18 Thread SWilk
Hi, alessandro cinelli wrote: On Tue, Mar 18, 2008 at 10:58 AM, SWilk <[EMAIL PROTECTED] Yes , i understand the reusability reason and i agree. But what i mean is that instead of calling $this->action($action,$controller, $module) directly in the view, i think it would be better if you ca

Re: [fw-general] Design question about Action View Helper

2008-03-18 Thread SWilk
Hi, I send this email directly to Alessandro by mistake, so here it is for all you people on this list: alessandro cinelli wrote: > hi, > as written in the doc: > > > 42.4.1.1 . Action View Helper > > " The |Action| view helper enables view scripts to dispatch a given

[fw-general] New site: permission denied

2008-03-18 Thread Jan Pieper
Tried to search new zend framework website for http://framework.zend.com/search?query=zend_auth&type=all&x=0&y=0 "zend_auth" and thought i´ll get a result for documentation, but got an error: ERROR: An error occurred with this request: chmod() [function.chmod]: Operation not permitted. -- Jan

Re: [fw-general] Design question about Action View Helper

2008-03-18 Thread Julian Davchev
I think ideas was for this to server as kind of a shortcut. I also don't agree this is very good practice, and if done I guess should use good naming convention so it's clear that view is making use of such direct calls. Regards, alessandro cinelli wrote: hi, as written in the doc:

[fw-general] Design question about Action View Helper

2008-03-18 Thread alessandro cinelli
hi, as written in the doc: 42.4.1.1. Action View Helper" The Action view helper enables view scripts to dispatch a given controller action; the result of the response object following the dispatch is then returned. These can be used when a particular action could generate re-usable content or "wid