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

2009-08-30 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 readi

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

2009-08-30 Thread Hector Virgen
Marian, A static identity map is the way to go. Page 291 of Php objects, patterns, and practiceby Matt Zandstra demonstrates how to build a simple but effective

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

2009-08-30 Thread Cameron
I've been looking for something like this too. It's all well and fine to install all the Zend products with the intention of integrating them in to a homogenous whole, but the reality is that there's very little in the way of documentation looking at the problem from a broader development perspecti

[fw-general] Zend Single Quote Problem

2009-08-30 Thread pyarlagadda
Hi, 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 display. When I do that, it is shown like: �Swiss banks� The frist and last character

Re: [fw-general] Data Mappers and Relational Modelling

2009-08-30 Thread Hector Virgen
Thanks, Benjamin. I like your version of the Collection object better that mine. It seems much more flexible and supports lazy loading without the need to provide my Quiz object with a mapper. I'm going to update my Collection class with your idea and post back here if I run into any problems. Than

Fwd: [fw-general] Data Mappers and Relational Modelling

2009-08-30 Thread Dmytro Navrotskyy
2009/8/29 Hector Virgen > Thanks for the reply, Tim. So you're saying I'll need one or more mappers > for my Quiz entity depending on how much information I want to prefill the > quiz with? For example I'll have classes like: > >- QuizSimpleMapper >- QuizWithQuestionsMapper > > Let's say

Re: [fw-general] Zend Amazon not working anymore

2009-08-30 Thread Matthew Weier O'Phinney
-- PHPScriptor wrote (on Friday, 28 August 2009, 04:13 PM -0700): > Ah found it. Damn, I need to update to a newer version of Zend Framework > now... ooh wel maybe later :-). You can always just update your Zend_Service_Amazon sources from a recent tarball; that way your Amazon calls continue to

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

2009-08-30 Thread Christian Aarø Rasmussen
Hello everyone, I recently began a small project for myself to get more familiar with some ZF components which I haven't touched so much in the past. The project is basically a small, module-based, CMS. I've gotten most things sorted out but there's one thing which I've been intensely trying to

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

2009-08-30 Thread Marian Meres
Hello Benjamin, thank you... but either I can't follow, or I must not have described properly the question. Because I do not understand how the factory could help you to share the map, unless you do not share the factory then... Example: class MapperFactory { protected $_identityMap; publi

RE: [fw-general] Zend Auth and subdomains

2009-08-30 Thread Sergio Rinaudo
I've probably found the problem suhosin.cookie.cryptdocroot = 1 suhosin.session.cryptdocroot = 1 and I cannot change these params for my host :) Is it any other method to keep the user logged between subdomains? Sergio Rinaudo From: kaiohken1...@hotmail.com To: m...@dasprids.de; fw-gener

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

2009-08-30 Thread Benjamin Eberlei
hello, If you dont instantiate your mappers through a factory you probably will have lots of work to do if you dont make access to the identity map global via a static method. greetings, Benjamin On Sunday 30 August 2009 04:58:32 pm Marian Meres wrote: > Hi All, > > I have many domain models w

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

2009-08-30 Thread Marian Meres
Hi All, I have many domain models where each has its own data mapper. These mappers are spread across many places as a) services use mappers, b) mapper x uses mapper y, c) and even models use mappers (only in the case of lazy loading). I want mappers to utilize the identity map pattern (which is

Re: AW: [fw-general] Provide web.config when creating projects in zend tool?

2009-08-30 Thread Uli Wolf
I think there is one => http://framework.zend.com/manual/en/project-structure.rewrite.html (D.4.2) Greetz, Uli Stefan Gehrig wrote: > > Perhaps someone should add this one or a better one to the manual. > > Best regards > > Stefan > -- View this message in context: http://www.nabble.com/

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

2009-08-30 Thread fab2008
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 info. Suppose I have a link like "Send this page to a friend" that bring to a fo

Re: [fw-general] How to add a database genarated menu for a layout

2009-08-30 Thread Pádraic Brady
A View Helper is a class, for example Zend_View_Helper_Doctype. Like any class, you can query the database, and use the results to create a string containing the HTML markup you need. Usually it's good to implement PHP's __string() method so the resulting object can be directly echoed or cast to

Re: [fw-general] How to add a database genarated menu for a layout

2009-08-30 Thread neobeacon
view helper is a .phtml file .Can I genarate it's code from database -- View this message in context: http://www.nabble.com/How-to-add-a-database-genarated-menu-for-a-layout-tp25209362p25210306.html Sent from the Zend Framework mailing list archive at Nabble.com.

AW: [fw-general] Provide web.config when creating projects in zend tool?

2009-08-30 Thread Stefan Gehrig
This is the most simple form of a web.config I use with IIS 7:

Re: [fw-general] How to add a database genarated menu for a layout

2009-08-30 Thread Hector Virgen
You might be better off creating a view helper to handle that menu. The overhead of dispatching a new request may not be worth it. -- Hector On Sun, Aug 30, 2009 at 1:00 AM, neobeacon wrote: > > If I create a menu controller and index action for generate the menu,Can I > use action() from layo

Re: [fw-general] How to add a database genarated menu for a layout

2009-08-30 Thread neobeacon
If I create a menu controller and index action for generate the menu,Can I use action() from layout to echo output of menu without creating any front controller action plugins(like action stack) thanks -- View this message in context: http://www.nabble.com/How-to-add-a-database-genarated-menu-

[fw-general] How to add a database genarated menu for a layout

2009-08-30 Thread neobeacon
If I use a placeholder for menu and the menu must be generated via database table,how I create the menu placeholder? If you know any good tutorial for this problem,Please inform me.Thank you. -- View this message in context: http://www.nabble.com/How-to-add-a-database-genarated-menu-for-a-layo