Re: [fw-general] Best practice to share identity map across mappers? Static registry?

2009-08-31 Thread Marian Meres
Hello Hector, Is there a reason you don't want to go with a static identity map? Well, I consider usage of static map in this case most simple and even correct. But as I'm in the planning phase and always questioning the design, I want to make sure I'm doing it the correct way. And after

Re: [fw-general] Complex ACL

2009-08-31 Thread debussy007
About privileges, all depends how you're going to code it I guess. Concretely (for the access rights) I have my controllers as resources and actions as privileges. My controller names are litteraly stored in my DB, however I am conscious that the Model shouldn't know about the Controller or the

Re: [fw-general] Zend Single Quote Problem

2009-08-31 Thread Matthew Weier O'Phinney
-- pyarlagadda yarlagadda...@gmail.com wrote (on Sunday, 30 August 2009, 04:38 PM -0700): I have a problem displaying the single quote on HTML using Zend Framework. I have a string stored in MySQL database. I fetch it using Zend Framework, escape it using $this-escape($string) and then try to

[fw-general] Zend_Search_Lucen setting rank of individual field

2009-08-31 Thread Joó Ádám
Hi, I’m a bit confused about Zend_Search_Lucen’s query boosting. How can I specify how valuable is a hit on a specific field? E.g. i want an expression to have a higher rank in a title field than in a content field. Any method to achieve this? Thanks, Ádám

Re: [fw-general] Modular layout and ACL - how to make it work and make it easy.

2009-08-31 Thread Ralph Schindler
Wow, lots going on here. I'll try to help where I can. I actually blogged about the situation you descibed about blog posts and owners: http://ralphschindler.com/2009/08/13/dynamic-assertions-for-zend_acl-in-zf In that scenario, your assertion would likely be interacting with the database

Re: [fw-general] Zend_Tool and modules

2009-08-31 Thread Ralph Schindler
Thats a good point, can you open an improvement issue for it? Thanks, Ralph iceangel89 wrote: i noticed Zend_Tool still does not handle modules very well. 1. upon creation i think resources.frontController.moduleDirectory = APPLICATION_PATH /modules should be added to application.ini 2.

Re: [fw-general] Problem with setRedirect() -- it's not redirecting

2009-08-31 Thread Ralph Schindler
Hmm. $response-setRedirect() assumes you are providing it a url so its probably best if that were an absolute path. Also, it does not stop the dispatchloop from executing, so you might have to do $request-setDispatched(true); To get a sense of how redirecting is handled, you might want to

[fw-general] Idea for desinging this form

2009-08-31 Thread neobeacon
http://www.nabble.com/file/p25228110/Picture1.png I hope to use parial() view helper to add Meta data Information div and the Tinymce textarea divs from script files. If I add other whole form to view and if form submitted to submittedform action(action = /submittedform),How to I access

[fw-general] Zend_Application module resource types

2009-08-31 Thread hobodave
I'm struggling trying to get this working. I need to add a resourceType to all of my modules: 'report' = array( 'path' = 'reports/', 'namespace' = 'Report' ) Is there a way to do this in a DRY fashion? Id rather not add a Bootstrap.php class for all of my modules. Can this be done

Re: [fw-general] How to email the result of a dispatched request (or better how to save generated html)

2009-08-31 Thread David Mintz
On Sun, Aug 30, 2009 at 9:31 AM, fab2008 f.napole...@gmail.com wrote: Hi all, I have a page with some news generated using ZF stack (Zend_MVC, Zend_Layout, Zend_View, Zend_Navigation, etc); this page is available for web browsing, but I need also to email this page with some additional

[fw-general] uasort, or functions that requiere a callback

2009-08-31 Thread j.padron
Hi, I have a DB model class (extends Zend_Db_Table_Abstract) from where I return data. In one of the methods I have to uasort(array, callback) arrays (several merged). The problem is that I don't know where to put and declare the function compare and call it as string like uasort requiere.

Re: [fw-general] How to email the result of a dispatched request (or better how to save generated html)

2009-08-31 Thread David Mintz
On Mon, Aug 31, 2009 at 4:01 PM, David Mintz vtbludg...@gmail.com wrote: On Sun, Aug 30, 2009 at 9:31 AM, fab2008 f.napole...@gmail.com wrote: Hi all, I have a page with some news generated using ZF stack (Zend_MVC, Zend_Layout, Zend_View, Zend_Navigation, etc); this page is available

Re: [fw-general] Best practices, environment setup

2009-08-31 Thread swilhelm
I would also be interested in such 'best practices.' I am using a git repository and deploying to media temple and slicehost hosted staging and production servers. I would also be interested in seeing how people develop a single admin module that can be leveraged across several different

Re: Re: [fw-general] Best to use CLI in my ZF 1.9 Application

2009-08-31 Thread swilhelm
should optionally require admin credentials passed as arguments or should confirm CLI is being run by particular system users (e.g. root). lightflowmark wrote: I'm actually working on a proposal to do exactly this at the moment. What features would people like to see on this?

Re: [fw-general] uasort, or functions that requiere a callback

2009-08-31 Thread j.padron
Reply myself Place the protected function inside the class, and call: uasort($result, array($this, 'orderArrayNatural')); Thxs anyway j.padron wrote: Hi, I have a DB model class (extends Zend_Db_Table_Abstract) from where I return data. In one of the methods I have to

Re: [fw-general] How to email the result of a dispatched request (or better how to save generated html)

2009-08-31 Thread fab2008
After some trials I decided to switch to a CLI version of this script, because in some cases I need to send the same email to multiple recipients. My solutions is similar to yours, this is a proof of concept: // Create application, bootstrap, and run $application = new

Re: [fw-general] Problem with setRedirect() -- it's not redirecting

2009-08-31 Thread Gregorio
Hi, Ralph: Thanks for taking the time to check this out and for the lead. $response-sendHeaders() seems to have done it. I see what you mean about setRedirect(); Is there a better way than using Response's setRedirect() method? Maybe something that has a signature like this:

[fw-general] Zend_Search_Lucene: Read-only access to index?

2009-08-31 Thread mooware
Hello there, I have an index generated by Apache Lucene, and I'd like to access it with Zend_Search_Lucene, but only for searching. When I give PHP write access to the index, it works flawless, but I don't want it to have write access. But when I take away the write access, I get an error

Re: [fw-general] Zend Single Quote Problem

2009-08-31 Thread pyarlagadda
It solved the problem. Thank you very much Matthew. Regards, Praveen Matthew Weier O'Phinney-3 wrote: -- pyarlagadda yarlagadda...@gmail.com wrote (on Sunday, 30 August 2009, 04:38 PM -0700): I have a problem displaying the single quote on HTML using Zend Framework. I have a string

[fw-general] Getting POSTed values of a form which build by view script

2009-08-31 Thread neobeacon
If I build a form by using view script (using html tags/without using zend's form elements) how to get posted values from action's page ? -- View this message in context: http://www.nabble.com/Getting-POSTed-values-of-a-form-which-build-by-view-script-tp25233310p25233310.html Sent from the

[fw-general] Getting POSTed values of a form which build by view script

2009-08-31 Thread neobeacon
If I build a form by using view script (using html tags/without using zend's form elements) how to get posted values from action's page ? -- View this message in context: http://www.nabble.com/Getting-POSTed-values-of-a-form-which-build-by-view-script-tp25233309p25233309.html Sent from the

Re: [fw-general] Getting POSTed values of a form which build by view script

2009-08-31 Thread Brenton Alker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 neobeacon wrote: If I build a form by using view script (using html tags/without using zend's form elements) how to get posted values from action's page ? In a controller action: $this-_request-getPost(); // will return an array of all $_POST

Re: [fw-general] Zend_Tool and modules

2009-08-31 Thread iceangel89
ok created an improvement issue http://framework.zend.com/issues/browse/ZF-7743. i hope its done ok, its my 1st time adding an issue Ralph Schindler-2 wrote: Thats a good point, can you open an improvement issue for it? Thanks, Ralph iceangel89 wrote: i noticed Zend_Tool still does

[fw-general] view.php?id=01 to /view/id/01

2009-08-31 Thread neobeacon
To genarate page content with using GET['id'] and using database tables, I create viewAction() in ArticleController class What I want to do to get GET['id'] from viewAction() ? Do I want to configure Zend router to get /view/id/01 url strucure? -- View this message in context:

Re: [fw-general] Getting POSTed values of a form which build by view script

2009-08-31 Thread Sean Utt
You can use Zend_Form with viewscripts to generate arbitrary layout, and still get the benefits of Server SideValidation and Dojo too. -- Sean - Original Message - From: neobeacon neobea...@gmail.com To: fw-general@lists.zend.com Sent: Monday, August 31, 2009 7:02 PM Subject:

[fw-general] Including regular Zend Form elements with a Zend Dojo form.

2009-08-31 Thread Cameron
Hi guys, just a quick one. I want to be able to add a regular textarea to a Zend_Dojo form - the Dojo editor is a tiny bit crappy, and i'd really rather use something else. The problem is that the text area that Zend_Dojo outputs isn't an actual textarea, and thus 3rd party editors tend to have

Re: [fw-general] Getting POSTed values of a form which build by view script

2009-08-31 Thread neobeacon
I also want to use Zend_Form But I don't know how to design this form using Zend_Form.I know how to add form elements and filters and validators.IF you have any idea please send.Thanks. And also I got the logic to get POST[] values.Thanks in deep.