Re: [fw-general] two view prefixes?

2007-09-19 Thread Pádraic Brady
Hi Jesse, Can you give an example of what you mean? In general, the view templates should always follow the same name format when they are connected to a specific Controller and Action. However you can use any format for view templates you include/render explicitly from another view template.

Re: [fw-general] two view prefixes?

2007-09-19 Thread Pádraic Brady
That's the suffix ;) Zend_View takes a full file name when rendering so it doesn't care about what the suffix is. If you do not directly use Zend_View from your Controllers then the view template naming is likely controlled by Zend_Controller_Action_Helper_ViewRenderer since it's enabled by def

[fw-general] RE: Zend_OpenId_Provider_Storage_Db

2007-09-19 Thread Dmitry Stogov
Hi Silvan, > -Original Message- > From: silvan.zurbruegg [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 18, 2007 8:34 PM > To: [EMAIL PROTECTED] > Subject: Zend_OpenId_Provider_Storage_Db > > > Hi Dimitry > > First, thanks a lot for your work on Zend_OpenId! > After some tests an

[fw-general] Validate PDF?

2007-09-19 Thread Jack Sleight
Hi, Is there anything built into Zend_Pdf to validate whether or not a given file is actually PDF file? Regardless of assumed mime type or file extension. Thanks, -- Jack

Re: [fw-general] two view prefixes?

2007-09-19 Thread Jesse Meek
Hi Paddy, Like .html and .php. The idea is to make it as easy and natural as possible for dreamweaver designers and the like to work at the 'view' / 'template' level. Cheers, Jess On 19/09/2007, at 7:35 PM, Pádraic Brady wrote: Hi Jesse, Can you give an example of what you mean? In gen

Re: [fw-general] two view prefixes?

2007-09-19 Thread Matthew Weier O'Phinney
-- Waigani <[EMAIL PROTECTED]> wrote (on Tuesday, 18 September 2007, 07:43 PM -0700): > Is it possible to set two different view prefixes? Not sure what you mean; can you provide an example? -- Matthew Weier O'Phinney PHP Developer| [EMAIL PROTECTED] Zend - The PHP Company | http:/

Re: [fw-general] Validate PDF?

2007-09-19 Thread Jack Sleight
Hi Alexander, Ok, should I add it to the issue tracker? In the meantime, would something like this do the job (as a quick hack): function validatePdf($fileName) { try { Zend_Pdf::load($fileName); } catch (Zend_Pdf_Exception $e) { return false; } return true; }

RE: [fw-general] Validate PDF?

2007-09-19 Thread Alexander Veremyev
Hi Jack, No. But it's good idea. With best regards, Alexander Veremyev. > -Original Message- > From: Jack Sleight [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 19, 2007 4:24 PM > To: Zend Framework General > Subject: [fw-general] Validate PDF? > > Hi, > Is there anything bu

[fw-general] ZVE dispatch controller action

2007-09-19 Thread Adam Torrino
Hi all, LOVE Zend_View Enhanced and have begun using it for a large project... only problem I've noticed is when trying to render the result of a controller action into a layout. The idea is to have a Sidebar controller just for this purpose, and each action being a separate sidebar "widget", a

Re: [fw-general] two view prefixes?

2007-09-19 Thread Matthew Weier O'Phinney
-- Jesse Meek <[EMAIL PROTECTED]> wrote (on Wednesday, 19 September 2007, 07:46 PM +1200): > Like .html and .php. The idea is to make it as easy and natural as possible > for > dreamweaver designers and the like to work at the 'view' / 'template' level. Then you're talking about suffixes, not pre

Re: [fw-general] ZVE dispatch controller action

2007-09-19 Thread Pádraic Brady
Hi Adam, The way the current proposal version (which is alpha at best) works is that it requires a change to the ViewRenderer class to allow for Request substitution. Mainly this was because ViewRenderer was stuck on the original request data so much that relying on it to update view script nam

Re: [fw-general] ZVE dispatch controller action

2007-09-19 Thread David Koblas
Is there a timeline for when the ZF+ZVE+ZL components are going to show up in the tree? Since, I'm currently a loyal and heavy user of the ZVE infrastructure (one facebook app and two other sites). I was curious as to when I was going to have to start thinking about managing the "bugs" that w

Re: [fw-general] ZVE dispatch controller action

2007-09-19 Thread Pádraic Brady
Hi David, I don't have a precise time line for when it will reach the incubator in Subversion. I know Matthew is due to review the current status of the ZVE+ZL pairing after various comments from myself, Ralph, and also Matthew's review/overview of the original proposals from his own perspectiv

[fw-general] Zend_PDF exporting as an image

2007-09-19 Thread Simon R Jones
any idea if Zend_PDF can export one page of a PDF as a flat image (i.e. PNG)? thanks, Si

Re: [fw-general] ZVE dispatch controller action

2007-09-19 Thread Adam Torrino
Thanks Pádraic for the speedy and helpful response. Wow, helping 5-6 teams weekly? How about adding a 7th or a live IRC Q&A ;) Thanks for your hard work with ZVE, looking forward to incubator release. I added getter/setter pairs to ViewRenderer, actually needed an extra set for response. If any

[fw-general] Reminder: 1.0.2 code freeze on Friday

2007-09-19 Thread Darby Felton
Hi all, This is a reminder that the code freeze for the 1.0.2 release is currently scheduled for Friday, September 21 at 21:00 (9:00 pm) Pacific time (PDT). Developers should have reviewed and merge all changes that are intended for delivery to the release-1.0 branch by this time. (Documentation

[fw-general] Zend View questions

2007-09-19 Thread Philip G
I'm trying to figure out a few things here, and I've come to a road block. Here's what I'm trying to do: using a controller plugin, I check the idendity of a user and then if it exists, inject the data into the view class for access within the templates, but it's failing for me. I found an old di

Re: [fw-general] Zend View questions

2007-09-19 Thread Philip G
On 9/19/07, Joó Ádám <[EMAIL PROTECTED]> wrote: > Why do you use dispatchLoopShutdown()? Views are already evaluated > when you're trying to assign variables. > > Use the registry, I suggest. I found the snippet within fw-general archives trying to look for a way to access to view within the contr

[fw-general] design decision for caching and databases

2007-09-19 Thread Shawn Robinson
Hello, I am building a site that needs to handle a lot of traffic (thousand requests per second), so I want to have a high performance system. I plan on using mysql as the backend store and memcache as the caching layer. It looks like Zend_Db and Zend_Cache will be perfect for this. There ar

Re: [fw-general] Zend View questions

2007-09-19 Thread Joó Ádám
> Using the register would require that I have setup a view class > initially and then saved it. In your plugin you put the identity into a registry variable, then you just read it out in your view script. Easy, huh? :) Ádám

Re: [fw-general] Zend View questions

2007-09-19 Thread Matthew Weier O'Phinney
-- Philip G <[EMAIL PROTECTED]> wrote (on Wednesday, 19 September 2007, 12:41 PM -0500): > I'm trying to figure out a few things here, and I've come to a road block. > > Here's what I'm trying to do: using a controller plugin, I check the > idendity of a user and then if it exists, inject the data

[fw-general] Using Amazon S3 with Zend Framework

2007-09-19 Thread Stefan Pettersson
I'm about to implement Amazon S3 usage in a current ZF application. Since there is no existing Zend_Service for it I wonder if there is any other code available suitable to use with ZF? I did find a component proposal but (surprisingly IMHO) it seems like nothing more happened with it. Looking at

Re: [fw-general] two view prefixes?

2007-09-19 Thread Waigani
Arr, sorry I indeed meant SUFFIX. Okay good to know, I've already set it to .php, just needed to know if I could do two or not. Thanks for all the quick replies. This is a very live list, I'm recommending it to other developers. Keep up the good work frameworkers! Pádraic Brady-2 wrote: > > That

Re: [fw-general] Using Amazon S3 with Zend Framework

2007-09-19 Thread Kevin McArthur
It would be nice if amazon would join the project and contribute high-quality API's for their products. I've checked over the sample code, and it wouldn't be the way I'd recommend implementing it. Maybe one of the Zender marketing guys could try and get them involved? Kevin P.S. An API for Am

Re: [fw-general] Using Amazon S3 with Zend Framework

2007-09-19 Thread Darby Felton
Hi Stefan, Travis Swicegood, author of the Amazon S3 proposal, has informed me that he is currently engaged in several projects and may not be able to come back to the proposal for some time. Maybe you would be interested in helping move this proposal forward in the meantime? Best regards, Darby

Re: [fw-general] ZVE dispatch controller action

2007-09-19 Thread Pádraic Brady
You're welcome, I aim to serve my fans faithfully ;). At the expense of an inflated ego :) Paddy Pádraic Brady http://blog.astrumfutura.com http://www.patternsforphp.com OpenID Europe Foundation Member-Subscriber - Original Message From: Adam Torrino <[EMAIL PROTECTED]> To: Pádraic

Re: [fw-general] Zend View questions

2007-09-19 Thread Philip G
On 9/19/07, Joó Ádám <[EMAIL PROTECTED]> wrote: > > Using the register would require that I have setup a view class > > initially and then saved it. > > In your plugin you put the identity into a registry variable, then you > just read it out in your view script. Easy, huh? :) > > And just how wou

RE: [fw-general] Using Amazon S3 with Zend Framework

2007-09-19 Thread Andi Gutmans
I have talked to the Amazon team already but they don't see it as a priority right now (although they are open to contributing once they have some more resources available). In any case, I'll forward them this email thread to see if it changes their mind. Andi > -Original Message- > From:

RE: [fw-general] Lucene, problem with indexing

2007-09-19 Thread Alexander Veremyev
Hi Pieter, There were some significant changes in these parts of code since 0.9.2 version. Please try 1.0.1 (or 1.0.2 which is coming soon) or SVN versions. With best regards, Alexander Veremyev. > -Original Message- > From: Pieter v.d. Brink [mailto:[EMAIL PROTECTED] > Sent: Wednes

RE: [fw-general] Searching variable options

2007-09-19 Thread Alexander Veremyev
You could collect Countries into a string and store them in a special field: - $countries = implode(' ', $countriesArray); $doc->addField(Zend_Search_Lucene_Field::UnStored($countries), 'Country'); ... - It can be specified in a query: -- $hts

Re: [fw-general] Validate PDF?

2007-09-19 Thread Jack Sleight
Yes, please do this. Or (if you don't have JIRA account yet) I can add this. Have done. Yes, you can try to load it and check if an exception is thrown. The side effect is actual PDF loading :) (that's possible you don't need it) Yeah true. I guess there would be some overhead there, hmmm we

RE: [fw-general] Validate PDF?

2007-09-19 Thread Alexander Veremyev
PS I just saw you already created JIRA issue :) With best regards, Alexander Veremyev. _ From: Alexander Veremyev [mailto:[EMAIL PROTECTED] Sent: Thursday, September 20, 2007 2:45 AM To: Jack Sleight Cc: Zend Framework General Subject: RE: [fw-general] Validate PDF? Hi Jack, Y

RE: [fw-general] Validate PDF?

2007-09-19 Thread Alexander Veremyev
Hi Jack, Yes, please do this. Or (if you don't have JIRA account yet) I can add this. Yes, you can try to load it and check if an exception is thrown. The side effect is actual PDF loading :) (that's possible you don't need it) With best regards, Alexander Veremyev. _ From:

[fw-general] Zend_Auth question

2007-09-19 Thread debussy007
Hello, I can see in the doc that Zend_Auth_Adapter_DbTable allows to authenticate if a username and password have been given. But in my case I have an extra field that allows to know whether the account is active or not. Is it possible to extend in someway this class and give it an extra field t

[fw-general] Using a complete HTML Template

2007-09-19 Thread Ralf Kramer
Hi, as I understood the common process of template rendering it works in this manner: The MVC component determines (somehow), based on the route, which view script is supposed to be rendered. This view script will have such a structure which renders a valid HTML document: render('layouts/__heade

[fw-general] Filter Output?

2007-09-19 Thread David Koblas
Got it working, but it leaves a little to be desired: Objective: Filter the output after all rendering has happened. Initial thoughts: First thought: Look at views/filters/ .. hmm, focused on Input Filtering, not Output filtering... -- Output filtering is a very handy thing

Re: [fw-general] Zend_Auth question

2007-09-19 Thread mikespook
You should implemant the interface Zend_Auth_Adapter_Interface with your own class. look at this: $auth = Zend_Auth::getInstance(); $authAdapter = new Ifang_Auth_Adapter_DbTable($dbAdapter); $auth->authenticate($authAdapter); 2007/9/20, debussy007 <[EMAIL PROTECTED]>: > > > Hello, > > I can see

Re: [fw-general] pdf manual

2007-09-19 Thread garri
Thanks! Hopefully a PDF ZF Manual can also be available for download at the official website vanne wrote: > > and another update > > http://www.nabble.com/file/p11934581/zf-1.0.1.pdf zf-1.0.1.pdf > > > Marcelo Araujo wrote: >> >> Hello, >> >> Is there a pdf manual for the zend framework

Re: [fw-general] Zend_Auth question

2007-09-19 Thread Ralph Schindler
Same issue talked about here: http://framework.zend.com/issues/browse/ZF-1680 -ralph debussy007 wrote: Hello, I can see in the doc that Zend_Auth_Adapter_DbTable allows to authenticate if a username and password have been given. But in my case I have an extra field that allows to know whether

[fw-general] Implementing a Security Access system.

2007-09-19 Thread Mathew Byrne
I'm attempting to implement a security system as a Controller plugin. On each request the preDispatch function checks if a current user is logged in and then checks their permissions against a list of pages they have access to. Is there a good method properly skip the dispatching of the act

[fw-general] Base view in modular design

2007-09-19 Thread Michael Raymond
In developing app which using the conventional modules design Application/ configs/ modules/ default/ controllers/ views/ blog/ controllers/ views/ Each modules has directories for controllers and views. I want to have a base view directory to store the view f

[fw-general] Lucene index permissions

2007-09-19 Thread Nathan Wright
Hi all, I have an index that's generated and queried by Apache's 'nobody' user (which works well), but I'm having trouble updating it from a cron job. There is a JIRA issue on this subject (JIRA's currently down so no link), but the workaround solution someone posted wasn't much help. I