Re: [fw-general] Controller and View Question

2007-03-25 Thread Ian Warner
Another method I use: I extend the Zend_Controller_Action and put an Intermediate class there, as you can see from this sample controller. The inter class contains a toView method, I can then simply assign any values. I control all elements in my translation files so product can change any

Re: [fw-general] Controller and View Question

2007-03-25 Thread Arnaud Limbourg
Matthew Weier O'Phinney wrote: I throw a Zend_View object in the registry, and then access this from my controllers and plugins. The benefit of doing this is that the controllers can set values in the view that are unused in their individual view, but used later in the sitewide template. Then, I

Re: [fw-general] Controller and View Question

2007-03-25 Thread Matthew Weier O'Phinney
-- frederic wolf <[EMAIL PROTECTED]> wrote (on Sunday, 25 March 2007, 11:31 PM +0200): > Matthew Weier O'Phinney a écrit : > > -- Ralph Schindler <[EMAIL PROTECTED]> wrote > > (on Sunday, 25 March 2007, 09:37 AM -0500): > > > > > I am curious how everyone implements common headers and footers >

Re: [fw-general] DB Select

2007-03-25 Thread Ian Warner
Thanks Bill I am using PEAR structures - so I throw the results straight into that, and hence keeping the column order is important to save on overhead of code used in Structures, I am now ordering in this now. Cheers Ian Bill Karwin wrote: Currently Zend_Db_Select sorts columns by the cor

RE: [fw-general] DB Select

2007-03-25 Thread Bill Karwin
Feature request logged: http://framework.zend.com/issues/browse/ZF-1135 Regards, Bill Karwin > -Original Message- > From: Bill Karwin [mailto:[EMAIL PROTECTED] > Sent: Sunday, March 25, 2007 2:29 PM > To: Zend Framework > Subject: RE: [fw-general] DB Select > > Currently Zend_Db_Select s

Re: [fw-general] Controller and View Question

2007-03-25 Thread frederic wolf
Matthew Weier O'Phinney a écrit : -- Ralph Schindler <[EMAIL PROTECTED]> wrote (on Sunday, 25 March 2007, 09:37 AM -0500): I am curious how everyone implements common headers and footers within a given application. As I see it there are two methods: a) include the header and footer in ea

RE: [fw-general] DB Select

2007-03-25 Thread Bill Karwin
Currently Zend_Db_Select sorts columns by the correlation name as it builds the query. I can log a feature request to preserve the column order, and we'll try fixing it at some later time. But I need to give the disclaimer that I would not choose to prioritize this change very high, relative to o

RE: [fw-general] Use magic methods in Db_Table relationships

2007-03-25 Thread Bill Karwin
I implemented both magic and non-magic methods (the former simply calls the latter). I knew that there was demand for the magic methods. But it's totally optional, and in most cases it is merely a matter of preference. Here are some considerations for using the magic vs. non-magic methods: - So

Re: [fw-general] User authentication

2007-03-25 Thread Rob Allen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 José de Menezes Soares Neto wrote: > Ok, thanks very much for both of you! > Its like Alan said, I need this. > > You know some tutorial to do it in the best way? Cause I was thinking... > If I create some new functions for the application, re-arrang

Re: [fw-general] Controller and View Question

2007-03-25 Thread Matthew Weier O'Phinney
-- Ralph Schindler <[EMAIL PROTECTED]> wrote (on Sunday, 25 March 2007, 09:37 AM -0500): > I am curious how everyone implements common headers and footers > within a given application. As I see it there are two methods: > > a) include the header and footer in each view script via the > $this-

Re: [fw-general] Zend_Filter_Input...

2007-03-25 Thread Matthew Ratzloff
Chris, I was clearly not arguing in favor of ignorance, or that it's a valid method of security. Please re-read my messages. -Matt - Original Message - From: "Chris Shiflett" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "Zend Framework General" Sent: Sunday, March 25, 2007 7:31

Re: [fw-general] User authentication

2007-03-25 Thread José de Menezes Soares Neto
Ok, thanks very much for both of you! Its like Alan said, I need this. You know some tutorial to do it in the best way? Cause I was thinking... If I create some new functions for the application, re-arrange things will be bad :( Best regardos! - Original Message - From: Alan Wagsta

Re: [fw-general] User authentication

2007-03-25 Thread Alan Wagstaff
Hi, Take a look at Zend_Auth (lets users login/logout) and Zend_ACL (restricts what users can get access to). These 2 combined should do what you need. Thanks, Alan. On 25/03/07, José de Menezes Soares Neto <[EMAIL PROTECTED]> wrote: Hi again friends, I would like to start an application

[fw-general] DB Select

2007-03-25 Thread Ian Warner
Hi I want to select the following in the following column order: $select = $db->select() ->from(array('a' => $config->$table), array('a.code', 'b.company', 'a.sale_date')) ->joinLeft(array('b' => $config->db_tbl_finances_debtors), 'a.debtor_id = b.debtor_id', ar

RE: [fw-general] Controller and View Question

2007-03-25 Thread Xavier Vidal
Hi We're using some different "views" to get a useful layout for each purpose. We start using: - portal-layout.php - clean-layout.php The first one has the header, footer, top menu, the main content and optionally the left and right menus. The clean layout only has the header and footer. So, i

[fw-general] User authentication

2007-03-25 Thread José de Menezes Soares Neto
Hi again friends, I would like to start an application if protected parts. Some users can do some functions and others don´t. With ZF, this is more easier? where I can found about this? Um forte abraço, José de Menezes

[fw-general] Zend_Session - feature request or help

2007-03-25 Thread Andries Seutens
Hello all, I am porting our company's framework to the Zend Framework, and I was looking into Zend Session, while I noticed that it would be very usefull to have some sort of ::setFrom() method. Take the following scenario: --- $permissionNamespace = new Zend_Session_Namespace($config->name

[fw-general] Use magic methods in Db_Table relationships

2007-03-25 Thread Troy Marker
I am trying to wrap my head around the new relationship function in Db_Table. They are a welcome addition. My question is what is better. Calling the relation normally or by using the magic functions. I feel there is more overhead in the magic function, as they need to determine what rules to appl

Re: [fw-general] Controller and View Question

2007-03-25 Thread Ian Warner
Ralph Schindler wrote: Hey group, I am curious how everyone implements common headers and footers within a given application. As I see it there are two methods: a) include the header and footer in each view script via the $this->render(..) routine. I simply within the main site view call

Re: [fw-general] Zend_Filter_Input...

2007-03-25 Thread Ralph Schindler
Chris Shiflett wrote: The idea that ignorance promotes security is fundamentally flawed. Pádraic clearly understands the risks associated with this perspective. In addition, this approach works against the HTTP spec, eroding the important distinction between GET and POST requests. Thats a bi

[fw-general] Controller and View Question

2007-03-25 Thread Ralph Schindler
Hey group, I am curious how everyone implements common headers and footers within a given application. As I see it there are two methods: a) include the header and footer in each view script via the $this->render(..) routine. b) use Zend_Controller Plugins to write to the view a standard

Re: [fw-general] Zend_Filter_Input...

2007-03-25 Thread Chris Shiflett
Matthew Ratzloff wrote: > Well, my point was that because any of those can be manipulated > (POST, GET, COOKIE, etc.), selecting from a specific source can > lead to a false sense of added security. The idea that ignorance promotes security is fundamentally flawed. Pádraic clearly understands the

[fw-general] Unit Testing Actions/Views

2007-03-25 Thread Nick Lo
Inspired by Alexander Netkachev's unit testing article: http://www.alexatnet.com/blog/2/2007/03/20/automatic-testing-of-mvc- applications-created-with-zend-framework I've been trying out some methods of testing actions/views and finding myself unable to get Alex's method to work I tried anot