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
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
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,
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,
$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,
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
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,
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.
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
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
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
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
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
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.
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
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
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
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
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
19 matches
Mail list logo