[fw-general] Zend_Search_Lucene: boost term

2009-09-21 Thread Vladimir Mihailenko
I have two terms in document: title and text. I want to boost term title: $doc = new Zend_Search_Lucene_Document(); $title = Zend_Search_Lucene_Field::unStored('title', '...'); $title-boost = 100; $doc-addField($title); $text = Zend_Search_Lucene_Field::unStored('text', '...');

[fw-general] I don't have dbAdapter so how can I create authentication ?

2009-09-21 Thread aaabbbcccdaabb
To connect to table Animals I write: $model = new Model_DbTable_Animals(); In documentation: http://framework.zend.com/manual/en/zend.auth.html I have: $authAdapter = new Zend_Auth_Adapter_DbTable( $dbAdapter, 'users', 'username', 'password' ); But I don't have dbAdapter so

Re: [fw-general] I don't have dbAdapter so how can I create authentication ?

2009-09-21 Thread Daniel Latter
Somewhere in your bootstrapping you would have created and adapter that you use to connect to your db. This is the dbAdapter you pass in, for example: *$dbAdapter = Zend_Registry::get('db');* $authAdapter = new Zend_Auth_Adapter_DbTable($dbAdapter); $authAdapter-setTableName('customers')

[fw-general] 2 actions my controller must be access for only loged users

2009-09-21 Thread aaabbbcccdaabb
My login action is in controller AuthController in action LoginAction(). If I use Zend_Auth_Storage_Session() to store username logged persons and I would like to create that only logged users can go to action addBookAction() and removeBookAction() in controller LibraryController - should I add

[fw-general] 2 actions my controller must be access for only loged users

2009-09-21 Thread aoohralex
My login action is in controller AuthController in action LoginAction(). If I use Zend_Auth_Storage_Session() to store username logged persons and I would like to create that only logged users can go to action addBookAction() and removeBookAction() in controller LibraryController - should I add

Re: [fw-general] 2 actions my controller must be access for only loged users

2009-09-21 Thread Vladas Diržys
Seems that aoohralex has a new name - aaabbbcccdaabb... :-) -- Regards, Vladas Diržys On Mon, Sep 21, 2009 at 14:36, aaabbbcccdaabb aaabbbcccda...@gmail.comwrote: My login action is in controller AuthController in action LoginAction(). If I use Zend_Auth_Storage_Session() to store username

Re: [fw-general] How to bootstrap application in testing environment

2009-09-21 Thread Tim Fountain
2009/9/19 Sudheer Satyanarayana sudhee...@binaryvibes.co.in On Friday 18 September 2009 07:09 PM, Sudheer Satyanarayana wrote: the tutorial recommends including a test class that extends Zend_Test_PHPUnit_ControllerTestCase in the test bootstrap. I think it is a bit awkward for your

Re: [fw-general] Split controller actions into multiple classes

2009-09-21 Thread Matthew Weier O'Phinney
-- josh.ribakoff josh.ribak...@gmail.com wrote (on Sunday, 20 September 2009, 03:00 PM -0700): It depends, controllers are part of the presentation layer, Umm, not really. Controllers take the request, and determine what view(s) and/or model(s) need to be instantiated. The view is the actual

[fw-general] Zend_Tool with PHP 5.3

2009-09-21 Thread Jonathan Maron
Hello all On one of my test servers, I have the following installed: PHP 5.3.0-0.dotdeb.8 with Suhosin-Patch 0.9.7 (cli) (built: Aug 13 2009 09:06:57) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies I have configured my system as follows...

Re: [fw-general] Remove default routes, but keep the 404 errors

2009-09-21 Thread Jurian Sluiman
Hi Ralph (and the rest), Did you manage to replicate the issue? If not, I'll post a more complete case online :) . Thanks, Jurian -- Jurian Sluiman Soflomo.com Op Tuesday 15 September 2009 09:27:45 schreef Jurian Sluiman: Hi Ralph, Thanks for your helping hand! I have a resource adding all

RE: [fw-general] Navigation view helper and nofollow links

2009-09-21 Thread Sergio Rinaudo
Nobody know that? From: kaiohken1...@hotmail.com To: fw-general@lists.zend.com Date: Mon, 21 Sep 2009 04:48:34 +0200 Subject: [fw-general] Navigation view helper and nofollow links Hello, I use to build menu in my application using $this-navigation()-menu($container) where

[fw-general] Zend Search Lucene and result limit

2009-09-21 Thread Sergio Rinaudo
Hi, I'm trying to query Lucene with result limit but I do not obtain last records as I expected, this is my code Zend_Search_Lucene::setResultSetLimit(5); $last = $index-find($query,'dateUpdated',SORT_REGULAR,SORT_DESC); If I omit the limit, it is ok, I have

[fw-general] Zend_Form_Element_MultiCheckbox values

2009-09-21 Thread Anders Gunnarsson
Hi My checked checkboxes are missing in the Post. I'm making checkboxes like this: $group = new Zend_Form_Element_MultiCheckbox('groups'); $group-addMultiOption(1,'A'); $group-addMultiOption(2,'B'); $group-addMultiOption(3,'C'); $form-addElement($group); They look good in the html, and when

FW: [fw-general] Zend_Form_Element_MultiCheckbox values

2009-09-21 Thread Sergio Rinaudo
Hi, I am not sure if this is your solution, but after you instanciate the form, try to set RegisterInArrayValidator to false $form = new Your_Form(); // just an example $form-groups-setRegisterInArrayValidator(false); Give it a try. Bye Date: Mon, 21 Sep 2009 16:58:15 +0200 From:

[fw-general] integration of zend authentication and forum softwares/ bulletin boards

2009-09-21 Thread shriradhey
hi, i have created a zend based application and implemented db table based authentication mechanism, where in i have a table and i authenticate the users against the details in the table, on new user registration this table gets updated. is thr any way i can achieve seamless integration between

FW: [fw-general] Zend_Form_Element_MultiCheckbox values

2009-09-21 Thread Anders Gunnarsson
Unfortunately that didn't help. The $_POST gives me ['groups'] = Array ( [0] = 2 [1] = 3 [2] = 4 ) But $form-getValues() still gives me ['groups'] = Sergio Rinaudo skrev: Hi, I am not sure if this is your solution, but after you instanciate the form, try to set RegisterInArrayValidator

Re: FW: [fw-general] Zend_Form_Element_MultiCheckbox values

2009-09-21 Thread Anders Gunnarsson
By the way, I'm using ZF version 1.8.3 Anders Gunnarsson skrev: Unfortunately that didn't help. The $_POST gives me ['groups'] = Array ( [0] = 2 [1] = 3 [2] = 4 ) But $form-getValues() still gives me ['groups'] = Sergio Rinaudo skrev: Hi, I am not sure if this is your solution, but

[fw-general] Date validator changes or bug ?

2009-09-21 Thread holografix .
Hi This code works fine with ZF 1.9.2 but not with latest trunk. $startdate = new Zend_Form_Element_Text('startdate'); $startdate-setLabel('Start date:') -addValidator( 'Date', true, array( 'messages' = array( 'dateInvalidDate'

Re: [fw-general] Date validator changes or bug ?

2009-09-21 Thread Thomas Weidner
There were 2 messages regarding format. NOT-MM-DD and FALSEFORMAT... The first was thrown when no application wide locale was set and the second one when it was set. This lead to the problem that people set only the first one, afterwards setting an application wide locale and then the

[fw-general] Dojo-proposal: What do you think about proposal Zend_Application_Resource_Dojo?

2009-09-21 Thread Georgy Turevich
Hello! What do you think about new proposal Zend_Application_Resource_Dojo? It will resource plugin that helps automate Dojo bootstraping to ZF application. For integrating Dojo only need it add to application.ini (or other config): resources.dojo.djConfig.isDebug = 1

Re: [fw-general] Dojo-proposal: What do you think about proposal Zend_Application_Resource_Dojo?

2009-09-21 Thread Alexander Steshenko
I think it would be great ;) On Mon, Sep 21, 2009 at 10:02 PM, Georgy Turevich georgy.turev...@gmail.com wrote: Hello! What do you think about new proposal Zend_Application_Resource_Dojo? It will resource plugin that helps automate Dojo bootstraping to ZF application. For integrating

Re: [fw-general] Date validator changes or bug ?

2009-09-21 Thread holografix .
Hi Thomas Thank you very much. Missed that change. Cheers holo 2009/9/21 Thomas Weidner thomas.weid...@gmx.at There were 2 messages regarding format. NOT-MM-DD and FALSEFORMAT... The first was thrown when no application wide locale was set and the second one when it was set. This lead

Re: [fw-general] Dojo-proposal: What do you think about proposal Zend_Application_Resource_Dojo?

2009-09-21 Thread Matthew Weier O'Phinney
-- Georgy Turevich georgy.turev...@gmail.com wrote (on Monday, 21 September 2009, 10:02 PM +0400): What do you think about new proposal Zend_Application_Resource_Dojo? It will resource plugin that helps automate Dojo bootstraping to ZF application. For integrating Dojo only need it add to

Re: [fw-general] 2 actions my controller must be access for only loged users

2009-09-21 Thread David Mintz
2009/9/21 Vladas Diržys vladas.dir...@gmail.com Seems that aoohralex has a new name - aaabbbcccdaabb... :-) Clever, huh? I guess that's the Pseudonym Pattern. -- David Mintz http://davidmintz.org/ The subtle source is clear and bright The tributary streams flow through the darkness

Re: [fw-general] 2 actions my controller must be access for only loged users

2009-09-21 Thread Sean Utt
Borrowed from the Alcoholic's Alias program where everyone drinks under assumed names :-) Also, if you were around in 'the day': Land Shark. -- Sean - Original Message - From: David Mintz To: fw-general@lists.zend.com Sent: Monday, September 21, 2009 11:54 AM Subject: Re:

Re: FW: [fw-general] Zend_Form_Element_MultiCheckbox values

2009-09-21 Thread Anders Gunnarsson
For those who get the same problem, I solved it by populating the post again. $form-populate($_POST); It still feels like I'm doing something wrong, but this works for now. Anders Gunnarsson skrev: Unfortunately that didn't help. The $_POST gives me ['groups'] = Array ( [0] = 2 [1] = 3 [2]

Re: FW: [fw-general] Zend_Form_Element_MultiCheckbox values

2009-09-21 Thread Hector Virgen
That's correct, the form cannot populate its own values because it knows nothing about $_POST or $_GET. Your controller must pass that to the form. If you're also using validation in your forms, there's a shortcut you can use that checks if the data is valid and populates the form: if

Re: [fw-general] Zend_Db_Select::union() behaving

2009-09-21 Thread william0275
I just noticed this and wasted some time trying to debug my code until I found this bug in the documentation. I'm not sure why and how they added this change. -- View this message in context: http://www.nabble.com/Zend_Db_Select%3A%3Aunion%28%29-behaving-tp21716437p25530470.html Sent from the

[fw-general] can Zend_Auth_Adapter_DbTable::getResultRowObject() return result of a JOIN ?

2009-09-21 Thread David Mintz
If you want to load into the session a $user object holding the results of a JOIN query, is there any way to beat getResultRowObject() into cooperating, other than subclassing Zend_Auth_Adapter_DbTable and overriding the method? From what I have read (including source code) I think extending the

[fw-general] Re: can Zend_Auth_Adapter_DbTable::getResultRowObject() return result of a JOIN ?

2009-09-21 Thread David Mintz
On Mon, Sep 21, 2009 at 4:56 PM, David Mintz da...@davidmintz.org wrote: If you want to load into the session a $user object holding the results of a JOIN query, is there any way to beat getResultRowObject() into cooperating, other than subclassing Zend_Auth_Adapter_DbTable and overriding

Re: [fw-general] Zend_Db_Select::union() behaving

2009-09-21 Thread Benjamin Eberlei
On Monday 21 September 2009 10:29:59 pm william0275 wrote: I just noticed this and wasted some time trying to debug my code until I found this bug in the documentation. I'm not sure why and how they added this change. hello, the API docs are wrong about how union works. It has to be used:

[fw-general] Are the PDF or online docmentation updated?

2009-09-21 Thread iceangel89
how often are the PDF and online versions of the documetation updated? -- View this message in context: http://www.nabble.com/Are-the-PDF-or-online-docmentation-updated--tp25530543p25530543.html Sent from the Zend Framework mailing list archive at Nabble.com.

[fw-general] Add encryption to Zend_Pdf

2009-09-21 Thread Tuan Ngo
Hi list, I've added encryption to Zend_Pdf by a little tweak the code. Please take a look here : http://tuanngominh.wordpress.com/2009/09/21/encryption-for-zend_pdf/ . Hope you guys like it. It's my first contribution, hope it may helps Zend_Pdf user. My feeling is the encryption feature will

[fw-general] Directory Folder Structure for admin/back-end

2009-09-21 Thread cobbweb
Hi all, I'm building a standard CMS with Zend Framework with the typical modules: Pages, News, Blog, Gallery, etc. Each module will have an section in the CMS admin/back-end. Just wondering which way would be the best to layout the structure. Ultimate, I would like front-end modules to be

Re: [fw-general] Are the PDF or online docmentation updated?

2009-09-21 Thread Matthew Weier O'Phinney
-- iceangel89 comet2...@gmail.com wrote (on Monday, 21 September 2009, 07:22 PM -0700): how often are the PDF and online versions of the documetation updated? The online version is updated with each mini release (2nd and 4th Tuesdays of the month). PDF version on zend.com has not been updated

[fw-general] Stylistic question - controller actions vs. context switches?

2009-09-21 Thread Cameron
Hi everyone, I just wanted to see if anyone else had had a good long think about this sort of thing before I decided one way or the other. Basically I have been playing with the context switch action helper, and it has opened a whole new world of possibilities in terms of application structure,

Re: [fw-general] Directory Folder Structure for admin/back-end

2009-09-21 Thread Diego Potapczuk
Maybe you can do a special route for this. Something like /admin/blog redirect to adminController in blog module, ou adminBlogController, i dont know, but is an idea for you. ::: Diego Potapczuk »» NEAD - Núcleo de Educação a Distância »» SENAI-BA »» Tel: (71) 3287-8343 / (71) 9144-3062 »»