Hello,
Hector thanks for the reply. And also sorry from the list that I
remembered my question was asked recently
When I investigated the issue a bit more, I found that it is not due
to a broken link. I did not find any missing/broken link in the
apache's error.log
And also my htaccess file uses
RewriteRule !\.(js|ico|gif|jpg|png|css|swf|flv|txt)$ index.php [NC,L]
instead of
RewriteRule ^.*$ index.php [NC,L]

But, I tried all the pages and found out that the firebug gives the
same logs twice only on the redirected pages.
For example, this double logs occur in the sample code flow below:
-- list records -> click the edit link of the record -> edit record
a. submit the page
b. update records in the db and if successful:
c. redirect back to list page via $this->_helper->redirector('list')

If there is a redirect like above, than the log is doubled with the
same data/stats.
This is normal. Is not it?

Thanks
scs

On Fri, Mar 26, 2010 at 5:24 PM, Hector Virgen <[email protected]> wrote:
> One of the most common reasons for a page to be running twice in ZF is
> because of a broken href/src attribute in link, img, or script tags. This is
> because ZF catches all paths that don't match to a file.
> For example, if your page has a <link> tag that like this:
> <link href="" rel="stylesheet" type="text/css" />
> Then any time that page is access, the browser will attempt to access the
> same URL as a stylesheet. Since it's technically not a 404, Firebug may not
> catch this.
>
> --
> Hector
>
>
> On Fri, Mar 26, 2010 at 5:51 AM, scs <[email protected]> wrote:
>>
>> Hello,
>> I was looking firephp db profile stats. And I saw two records of
>> profile on firephp. Both are the same.
>> Shall I suspect that the page runs twice anyhow?
>> If yes, how can I find if it runs twice and where shall I look?
>>
>> Thanks,
>> scs
>
>

Reply via email to