zend

why are some frameworks slow?

why are some frameworks slow? for example how comes that zend frameworks are slower than code igniter? if you don´t use a lot of classes, just chose the classes of your needs, then it shouldn't get slow? are you forced to use a lot of classes with zend framework or are they preloading a lot of classes automatically? ...

Zend_ProgressBar

Hi Anyone have the idea to implement Zend_ProgressBar .. If dont mind pls write a sample code... Thanks & Regards Nisanth ...

How to PASS your own mysql connection to Zend_DB?

I have my own mysql_connect ...etc until i wanted to use ZEND framework in particular with Zend_DB .How do I pass my connection to be used as an adapter to ZEND? $myconn = mysql_connect('...blab',blah etc...) eg. Zend_DB_table::setAdapter($myconn); ...

I can't delete an Event Feed with Google data API

Hi Guys I'm trying to delete multiple events from the Google Calendar API (From a date range). I get the feed correctly, this is not the problem. The probleme is the delete function. I get this error : "Error: You must specify an URI to which to post." Can somebody please help me! Thank You $service = new Zend_Gdata_Calendar($clien...

Custom View Helper is never run when extending Zend_Form_Element_File

Hi, I want my own form element based on Zend_Form_Element_File. My Problem: the custom view helper I created is never run. Instead, always the FormFile Viewhelper is run. When I inherit from Zend_Form_Element_Xhtml, my custom view helper works. Does not work: class XY_Model_Form_Imageu extends Zend_Form_Element_File { public $helper...

Zend Front controller

My website(a single server) is using front controller pattern as the single entery point and I understand that only a single instance of this controller exist at any given point of time (Singleton pattern) $frontController = Zend_Controller_Front::getInstance(); What surprises me is if I get concurrent requests/traffic(assume some big n...

A different service for my Flex app using Zend_Amf

I have an iterator service that works fine already and returns a correctly structured values to my flex application through my Zend Amf server $contacts = array(); mysql_connect( 'localhost', 'root', 'test' ); mysql_select_db( 'test' ); $res = mysql_query( 'SELECT * FROM contact' ); while( $contact = mysql_fetch_as...

How to display 2 display groups in the same div in a zend form?

Hello, How can I display more than 1 display group WITHIN a div? I simply need to show a visual separation - but within the same div. Is there a way to show more than 1 display group within a div? for example: to achieve the following in zend forms: <div style="width: 100%;"> <div style="width: 50%; float: left; paddi...

How to hide links on browser's statusbar when you mouseover on links on webpage?

I am using Zend, PHP, AJAX, JQuery in my projects. Question is that how can I force to not display a link on browser's statusbar when I mouseover on a link on my webpage. Best example is on this site, when you mouseover the up-vote link on this site, it does not show the link and after click the votes increased without refreshing the pa...

Zend_Db_Select - Joins and Count - Possible Zend Bug?

I'm having an issue getting a COUNT() from a SQL query using Zend_Db_Table_Select, and I think it may be a possible bug because the SQL it should be generating actually works. Here's the Zend Select Query: ($this is a Zend_Db_Table, renamed to table1 in this example) $select = $this->select(); $select->setIntegrityCheck(false);...

Zend_Session_SaveHandler_DbTable not generating valid session ID?

I'm currently tearing my hair out trying to persist authentication via a database bases session. I've set Zend_Session to use a database, and on inspection, Zend is writing values to the database. However, the ID for those sessions doesn't appear to match the PHPSESSID - yet when I get Zend_Session to return the id - it returns a matchi...

Zend Auth and Redirecting a user after login

Hi, So i'm using a simple Zend_Auth mechanism to ensure my users login before they can access certain controllers. My AdminController contains this method function preDispatch() { $auth = Zend_Auth::getInstance(); if (!$auth->hasIdentity()) { $this->_redirect('auth/login'); } } The user gets redirected to the Auth...

zend framework paginaator results too slow

I have a query that running way too slow. the page takes a few minutes to load. I'm doing a table join on tables with over 100,000 records. In my query, is it grabbing all the records or is it getting only the amount I need for the page? Do I need to put a limit in the query? If I do, won't that give the paginator the wrong record count?...

Magento; private/public filesystem layer

I want to split up the magento package in a private and public web directory. E.g. the private directory is reuseable on multiple projects, its just the app. private/ app, downloader, includes, lib, pkginfo, var public/ 404, js, media, report, skin + current root files (index.php etc.) Im setting this up in SVN where just one cop...

What does "zend_mm_heap corrupted" mean

All of the sudden I've been having problems with my application that I've never had before. I decided to check the Apache's error log, and I found an error message saying "zend_mm_heap corrupted". What does this mean. OS: Fedora Core 8 Apache: 2.2.9 PHP: 5.2.6 ...

I am using an INI file format to create a Zend Form but I cannot seem to get the options array filled in from the ini.

Is there a way I can get my the following function ported correctly to the the Zend_Form_Element? I have a custom element and i am passing my own options in for the details of what I am working on: below is the PHP and following will be the INI $html = $this->helper->formBlah(array( 'name'=>'foo', 'value...

Youtube API PHP problem

Hello. I downloaded the library Yotube API PHP (search for videos) from zend.com and its examples. On windows (localhost) everything works fine ... Uploading on the debian server, and there at the request search video gives an error: Invalid response received - Status: 404 Code of this error from videO-browser.js /** * Sends an AJ...

How to limit file upload speed in php or apache?

I'm doing some form in Zend Framework for file upload on "Apache friends - xampp" server 1.7.1 on Ubuntu 9.10. My problem is that I what to add progress bar for this upload and since xampp server is on my localhost, file uploads are very fast. As a result, I have no time to check or observer if progress bar works as it should. Is th...

How to setup a Zend_Form_Element_Select with multiple params at OPTION tags

Hi. I am creating a Zend Form to allow the user to change the current Locale from a list saved in my DB. I would like to know how to add more attribs to the option list. $obj_locales_select = new Zend_Form_Element_Select('sel_locale'); $obj_locales_select->setLabel('form-params-language-changelocale-sel_locale-label'); $obj_locales_sele...

Zend scripts not setup correctly I think

When Ive created a new controller, ie in this case Authenticate, Ive also created the folder and file application/views/scripts/authentication/index.phtml Not a problem when hitting the url http://dev.local/authentication/ but when calling any action ie http://dev.local/authentication/login, I get the error below. Message: script 'aut...