Skip to main content

Posts

Showing posts with the label zend-framework

Commitment to Zend Framework - any arguments against?

I am refurbishing a big CMS that I have been working on for quite a number of years now. The product itself is great, but some components, the Database and translation classes for example, need urgent replacing - partly self-made as far back as 2002, grown into a bit of a chaos over time, and might have trouble surviving a security audit.

Can"t understand why Zend_Mail::addHeader() strips newlines

(Since this is my first SO question, let me just say I hope it's not too Zend-specific. As far as I can tell this shouldn't be a problem. Although I could have posted it in a Zend-specific forum, I feel like I'm at least as likely to get a good answer here, especially since the answer might involve MIME-related issues that transcend Zend Framework. I'm basically trying to understand whether the issue I'm facing should be considered a ZF bug, or if I'm misunderstanding something or misusing it.)

Zend Framework form with jquery

Any one a idea how to simply create a form with Zend_Form and jquery? I want to use Zend_Form to validate the form so I don't have to dual script the form in JavaScript and PHP. Thank you, Ivo Trompert Source: Tips4all

Zend_Session / Zend_Auth randomly throws Error Message ps_files_cleanup_dir: opendir(/var/lib/php5) failed: Permission denied (13)

I'm currently working on a new Application using (among other things) Zend_Auth but, for whatever reason, this Error Message is showing up at any location totally randomly (or so it seams) Zend_Session::start() - /home/hannes/workspace/develop/library/Zend/Session.php(Line:480): Error #8 session_start() [function.session-start]: ps_files_cleanup_dir: opendir(/var/lib/php5) failed: Permission denied (13) Array #0 /home/hannes/workspace/develop/library/Zend/Session/Namespace.php(143): Zend_Session::start(true) #1 /home/hannes/workspace/develop/library/Zend/Auth/Storage/Session.php(87): Zend_Session_Namespace->__construct('Zend_Auth') #2 /home/hannes/workspace/develop/library/Zend/Auth.php(91): Zend_Auth_Storage_Session->__construct() #3 /home/hannes/workspace/develop/library/Zend/Auth.php(141): Zend_Auth->getStorage() #4 /home/hannes/workspace/develop/xxxxxxx/application/controllers/AdminController.php(10): Zend_Auth->hasIdentity() #5 /ho

A CMS on 2 DIFFERENT frameworks?

I'm not sure if this is possible, but let's say you want to build a CMS, but you're torn between 2 frameworks because each has some features that you like. Is it possible to create the CMS with both framewoks? Does this approach have merits or pitfalls? Source: Tips4all

Zend_Gdata and OAuth

I successfully retrieved token key / secret after applying Google Hybrid Protocol (OpenID + OAuth). Then I'm looking into Zend documentation here: http://framework.zend.com/manual/en/zend.gdata.html ... and into Calendar API example here: http://code.google.com/googleapps/marketplace/tutorial_php.html#Integrate-OAuth They mention about AuthSub method supported by Zend_Gdata library (especially in Zend_Gdata_HttpClient class form what I can see). But I cannot figure out how to use my key/secret tokens retrieved by Hybrid method in order to access calendar feeds. Example mentioned above uses AuthSub authentication, while Google recommends to switch to OAuth if possible and where possible, instead of using AuthSub. Any ideas? Thanks.

Is en_UK an illegal locale?

So far I had always used 'en_UK' for British English. Today I got an error when using it with Zend Framework because the locale is not included in the long list of recognized locales. Here's just a short extract of that list: 'ee_GH' => true, 'ee_TG' => true, 'ee' => true, 'el_CY' => true, 'el_GR' => true, 'el' => true, 'en_AS' => true, 'en_AU' => true, 'en_BE' => true, 'en_BW' => true, 'en_BZ' => true, 'en_CA' => true, 'en_GB' => true, 'en_GU' => true, 'en_HK' => true, 'en_IE' => true, 'en_IN' => true, 'en_JM' => true, 'en_MH' => true, 'en_MP' => true, 'en_MT' => true, 'en_NA' => true, 'en_NZ' => true, 'en_PH' => true, 'en_PK' => true, 'en_SG' => true, 'en_TT' => true, &#

Error when load library of zend framework

I using library of Zend Framework and code php (no using struct zend, only use library of zend framework), when I load library of zend is error: Fatal error: require_once() [function.require]: Failed opening required 'Zend/Search/Lucene/Storage/File/Filesystem.php' (include_path='.;C:\php\pear;C:\wamp\www\Zend') in C:\wamp\www\...\Zend\Search\Lucene\Storage\Directory\Filesystem.php on line 349 I put library of Zend in C:\wamp\www\Zend I call library of Zend in code php here: ini_set("include_path", ini_get("include_path") . ";C:\\wamp\\www\\Zend"); require_once 'Zend/Search/Lucene.php'; How to load library of zend in this case ?

Trouble with displaying JSON array

could you please help me figure out why I'm getting "undefined" instead of the value. As it is plain to see I'm having trouble getting the data from the array, in firebug I get this as a response.... {"status":"success", "response":[ {"email": {"email":"xxxxx@iing.mxl.uabc.mx", "valid":"1", "reason":null, "confirmed_at":"0000-00-00 00:00:00", "contact_email":"1", "login_email":"1", "users_id":"6375"}, "history":[ {"contactRole":"Non Classified Lead with History", "contactProject":"2082", "contactBrand":"B"}, {"contactRole":"co Author", "contactProject":"32", "con

Doctrine 1.2 / Zend

Im having trouble with doctrine generating the code for a query that has a umlaut in. $q = Doctrine_Query::create() ->select('DISTINCT p.project_name, fqha.form_question_has_answer_request, fqha.form_question_has_answer_form_id, fqha.form_question_has_answer_user_id, u.user_username, c.company_hall_no, c.company_type, c.company_company_name, c.company_country, c.company_stand_number, c.company_image_file_1, pchu.project_company_has_user_project_id, pchu.project_company_has_user_user_id') ->from('Klarents_Model_ProjectCompanyHasUser pchu') ->innerJoin('pchu.Klarents_Model_Company c') ->innerJoin('pchu.Klarents_Model_Project p') ->innerJoin('pchu.Klarents_Model_User u') ->innerJoin('pchu.Klarents_Model_Form f') ->leftJoin('pchu.Klarents_Model_FormQuestionHasAnswer fqha ON fqha.form_question_has_answer_form_id = ' . $this->zon

How to check an already existing record in Magento?

I am trying to perform an SQL query kind of thing where I need to check if my database table contains a particular record or not. If it does, do nothing else add the record which isn't present. My table sample contains fields like sample_id (auto-incremented), order_id, order_email_id, review_request, coupon_sent . It has got 4 records having order_ids (71, 74, 126, 165) To obtain $ids, I have this query, $to_date = date('Y-m-d H:i:s',strtotime('-3 days')); $orders = Mage::getModel('sales/order')->getCollection()->addFieldToFilter('status', 'complete')->addFieldToFilter('updated_at',array('to' => $to_date ))->addAttributeToSelect('customer_email')->addAttributeToSelect('entity_id'); foreach($orders as $order) { $email = $order->getCustomerEmail(); $id = $order->getEntityId(); $sample = Mage::getModel('sample/sample')->getCollection()->addFieldToFilter('orde