Re: [fw-general] Outputting an image

2008-10-24 Thread Kevin McArthur
You'll see a significant performance improvement if you don't load the files contents into PHP. The best way to do this is with an apache mod called X-SendFile. (http://tn123.ath.cx/mod_xsendfile/) but if you cant install the module, then you'll want to use fpassthru(). Fopen/fread and file_get

Re: [fw-general] Outputting an image

2008-10-24 Thread Chris Martin
The following self-contained example works fine for me in my environment. Try it on yours, it may help to narrow the problem down further: public function imgtestAction() { $this->_helper->layout->disableLayout(); $logo = file_get_contents("http://framework.zend.com/images/PoweredBy_ZF_4

Re: [fw-general] Outputting an image

2008-10-24 Thread Michael Crumm
Giuliano, Thanks for the thought! Unfortunately, I tried that as well and still can't seem to get an image out. Here's my controller action: public function viewAction() { $this->_helper->layout->disableLayout(); $logo = $this->_logo; $modifiedDateGM = gmdate('D,

Re: [fw-general] Zend_Scheduler Component

2008-10-24 Thread Matthew Ratzloff
Hi Christian, Wow, it's already been two years since I last worked on that. To be honest, I haven't thought about it in a long time. IIRC, all the scheduling rule logic is finished, and it's got unit tests... maybe I'll finally just finish it one weekend. -Matt On Fri, Oct 24, 2008 at 5:17 AM,

Re: [fw-general] Looking for a complete Complete Zend_Paginator example

2008-10-24 Thread Matthew Ratzloff
$this->select()->from($this, $cols); Should be: $this->select()->from('your_table_name', $cols); Also, so I'm covering all my bases, I assume you've read the user guide: http://framework.zend.com/manual/en/zend.paginator.usage.html Hope that helps, -Matt On Thu, Oct 23, 2008 at 9:26 PM,

Re: [fw-general] Zend Framework & Dojo

2008-10-24 Thread 411161
http://lampcomputing.com/add-cool-zend-dojo-date-picker-form-element-without-writing-single-line-javascript This tutorial got me up and running. -- View this message in context: http://www.nabble.com/Zend-Framework---Dojo-tp19537547p20156892.html Sent from the Zend Framework mailing list archi

Re: [fw-general] Setting default auth object

2008-10-24 Thread Mon Zafra
In your ACL plugin, you probably have something like if (!$acl->isAllowed($role, $resource, $action)) $this->deny(); Set the $role to 'guest' if Zend_Auth::getInstance()->hasIdentity() is false. But before that, make sure you don't flat out deny access if hasIdentity() is false. On Sat, Oct 25,

Re: [fw-general] Setting default auth object

2008-10-24 Thread tony stamp
Yes i thought that setting a default role would be the best way to go - any advice (or links) on how to do it? -- View this message in context: http://www.nabble.com/Setting-default-auth-object-tp20141150p20155405.html Sent from the Zend Framework mailing list archive at Nabble.com.

[fw-general] QuickStart and creating a SQLite database

2008-10-24 Thread Steve Horejsi
I am getting a failure while trying to create the demo database: Writing Database Guestbook in (control-c to cancel): AN ERROR HAS OCCURED: SQLSTATE[HY000] [14] unable to open database file I can't seem to find any logs anywhere that would tell me what is failing. I have he perms on the whole

[fw-general] Understanding layouts within layout

2008-10-24 Thread John Smith
I had set up a layout structure with one layout inside another for simplicity, but it's turning out to be more complex. I would appreciate help in getting the following to work: The following is a simplified, but accurate representation of what I'm doing: controllers -->IndexController.php -->Wi

[fw-general] More questions about Zend_Form

2008-10-24 Thread Steven Szymczak
I've got my form set up, as well as a user controller to handle logins. When a login fails, I want to display a generic "login failed" message, regardless of which validator failed; however it just keeps giving me the default error messages. I've tried various solutions, including setting a c

Re: [fw-general] Outputting an image

2008-10-24 Thread Giuliano Riccio
Did you try with $this->getResponse()->setBody($image['data']); ? I don't know if it will work but maybe will do the trick :) Giuliano Michael Crumm wrote: > > Hello all, > I seem to be unable to output an image to the browser via a zf controller > action. relevent code follows. > > public fu

[fw-general] Zend_Scheduler Component

2008-10-24 Thread Christian Münch
Hi, in the laboratory is the Zend_Scheduler component. I think this component could be very useful to manage cronjobs. I found a similar solution in SugarCRM and think that many applications need such a solution. Best regards Christian Münch

Re: [fw-general] Re: Tags for the memcached and APC backends for Zend_Cache - new approach

2008-10-24 Thread Diabl0
Fabien MARTY pisze: Hi, Please have a look at the "TwoLevels" backend in 1.7 trunk (or in 1.7 PR), it's want you want. Oh, yeah... I love reinventing the WHELL. A last i still have hope for CLEANING_MODE_MATCHING_ANY_TAG -- K.

Re: [fw-general] error in JQuery datepicker?

2008-10-24 Thread Bart McLeod
Hello Benjamin, Yes, the decorators is exactly where I will have to be looking. The reason that the 'begin' id caused the error is that the 'begin' field is grouped together with other form elements automagically, because I just hate to set decorators every time. It is more than likely, that i

[fw-general] Re: Is Zend_Form really this difficult?

2008-10-24 Thread Colin Guthrie
Steven Szymczak wrote: ok, my form is build (not pretty), and in the interests of moving development forward, I've started working on the authenticating the values entered in the form. Only I can't get that far because submitting the form (with values or completely blank) results in the follo

Re: [fw-general] ZF performances / profiling the culprit

2008-10-24 Thread Bruno Friedmann
Forget all what I've said in previous message. There was an error not shown and the mvc complete dispatch was broke so the result are faster. Accept my apologize to Component writer's. Bruno Friedmann wrote: > Follow at the end > > Matthew Weier O'Phinney wrote: >> -- Bruno Friedmann <[EMAIL P

[fw-general] Like use Zend_Form_Element_Select

2008-10-24 Thread vulpiani
Hello, I would want to know as I can use Zend_Form_Element_Select in order to construct a select tag decent in Zend, I must construct a controller? a model? what will serve to me? which code just I will have to use? thank to you Francisco -- View this message in context: http://www.nabble.co

Re: [fw-general] ZF performances / profiling the culprit

2008-10-24 Thread Bruno Friedmann
Benjamin Eberlei wrote: > hello, > > you might want to install pecl-xdebug extension to PHP and enable profiling. > You can then use Webgrind or KCachegrind to show you which functions and > classes use the most processing power in your appliaction. > > Have you installed APC or eAccelerator? Y