zend-framework

PHPUnit+ZendFramework ::How I can test multu users session in the same time?

Hi, I beginer programmer,and don't have any QA experience (only simple test that i write without PHPUnit or other tool) How I can create test for testing multi users sessions in the same time? (PHPUnit+ZendFramework) basic tests examples that I thinking to do (I am not QA - I soory if i wrong): users logins in the same time use...

Zend Framework-where do calls to my methods go? Controller of Model?

Hi guys, I'm confused about exactly what I should have in my controller and what in my method. Specifically, I have this in the action method: public function upcomingshowsAction() { $gcal = $this->_validateCalendarConnection(); $uncleanedFeedArray = $this->_getCalendarFeed($gcal); $finishedFeedArray = $thi...

Zend Framework PDF example to excel type

How can I make something like this with Zend_PDF: I have a few columns A, B, C, D, E and after them I will have some information, something like excel. A | B | C | D ss|das|dad|ds ss|das|dad|ds ss|das|dad|ds How can I create something like this with ZF_pdf? I will pull the data from DB, can you please give me an example? ...

How do I call the methods in a model via controller? Zend Framework

Hi guys, I've been searching for tutorials to better understand this, but I'm having no luck. Please forgive the lengthy explination, but I want make sure I explain myself well. First, I'm quite new to the MVC structure, though I have been doing tutorials and learning as best I can. I have been moving over a live site into the Zend Fr...

Fulltext for innoDB? or a good solution for php app

I have a table I want to run a fulltext search on, but it is currently innoDB and is using a lot of foreign keys for other kinds of queries. Should I make like a 1:1 "meta-data" table that is myisam for fulltext? Also I am reading some things that say that fulltext corrupts MySQL tables pretty randomly? I dunno, the articles are a cou...

Is Zend Certification "needed" before starting with the Zend Framework?

Hi, We're starting a new project using the Zend Framework, because the ideas and expandability speaks to us. But now I'm wondering, should we first get some form of Zend Certification before starting with the Zend Framework? Will we miss fundamental yet basic groundrules if we just start "hacking away" using the Zend Framework? I don...

"If-Match or If-None-Match header or entry etag attribute required" Error when trying to update a contact on google contacts using Zend Framework

Hi guys I'm trying to update my google contacts using the zend framework but I'm getting the following error: Expected response code 200, got 403 If-Match or If-None-Match header or entry etag attribute required The following is my code: Zend_Loader::loadClass('Zend_Gdata_ClientLogin'); Zend_Loader::loadClass('Zend_Http_Client'); Zen...

PHP / Zend Framework: Force prepend table name to column name in result array?

I am using Zend_Db_Select currently to retrieve hierarchical data from several joined tables. I need to be able to convert this easily into an array. Short of using a switch statement and listing out all the columns individually in order to sort the data, my thought was that if I could get the table names auto-prepended to the keys in th...

Zend Framework: Can I use an add view script for editing too?

I have a simple Zend Framework that has a view script to add records to the database. This is a silly question IMHO, but how can I use the add view script to edit the record as well?? I have played around with a few scenarios to no avail. Thanks, Steve ...

Xampp and Zend Library Conflicts

Im trying to use the Zend Frameworks ACL library in my code (in codeigniter) and after including the library in my controller I get this error: Fatal error: Cannot redeclare class Zend_Acl in C:\xampp\php\PEAR\Zend\Acl.php on line 48 If I remove the include to the Zend library I get this error instead Fatal error: Class 'Zend_Acl' no...

Mysql adapter for Zend_Translate

Hi everybody, I'm currently in the planning phase of a rather large project that I'll develop in the Zend Framework. One of the problems I'm facing is that the customers will want to translate not only the content but also the interface. I'm currently using gettext and poedit to manage my language files but this is not an option for the...

Zend_Cache_Backend_Sqlite vs Zend_Cache_Backend_File

Hi, Currently i'm using Zend_Cache_Backend_File for caching my project (especially responses from external web services). I was wandering if I could find some benefit in migrating the structure to Zend_Cache_Backend_Sqlite. Possible advantages are: File system is well-ordered (only 1 file in cache folder) Removing expired entries ...

Zend Framework - Zend Tool - Module error: I have error after I create module with Zend Tool

Hi, I new in zend framework. I create zend project with zend tool and its works , but i create module and when i try access him with browser I get Error. I write my steps, please help me. Thanks, Yosef My steps: $ sudo zf create project mystore put Zend library inside library test: http://localhost/mystore/public/ (working) ...

Avoiding Zends Error Messages

I am using the Zend Framework for ACL's in codeigniter but if something is not right in the database or there is an error with the code that interfaces with the framework then the framework displays its own error messages. Is there a way to suppress these? ...

Zend_Controller_Router_Route_Chain more routes - more problems

When i use only langRoute and moduleRoute i have not any problems. But when i add pageRoute it is not work properly. I have tried many another ways do it (Regex etc) but none gives the desired result. Can anybody help me? $front = Zend_Controller_Front::getInstance(); $router = $front->getRouter(); //Route_page needs dispatcher and req...

Zend_Form setMultiFile()

Hello everyone, i got a question related to the setMultiFile method of zend_form. I already got a form like this: $foto->setLabel('Foto:'); $foto->addValidator('IsImage', true); $foto->addValidator('Count', true, 12); $foto->addValidator('Extension', true, 'gif,png,jpg'); $foto->setDestination(PUBLIC_PATH.'/uplo...

Zend Framework-does every webpage have it's own controller and indexAction and view?

I'm wanting to be sure that I am setting things up correctly. On a typical website with 10 pages, would each page have it's own controller with it's own IndexAction and it's own View folder with it's own index.phtml as a view? Or do you have one controller with multiple Page1Action, Page2Action, etc and have multiple differently named...

How can I query Google Spreadsheets API with a string value?

I am using Zend_Gdata_SpreadsheetsListQuery. In PHP my query is: "confirmation=$confirmation" The problem is that $confirmation = 'AB-CD-EFG-012345'; Apparently the hyphens are causing problems with the query and the exception thrown is: Uncaught exception 'Zend_Gdata_App_HttpException' with message 'Expected response code 200, go...

How to connect to database in zf

Fatal error: Class 'Application_Model_News' not found in C:\xampp\htdocs\testZend\application\controllers\IndexController.php on line 14 i cannot connect model class with index controller how can i solve the problem how will the Model Application_Model_News class identified in the controller ...

Inline Zend Navigation links in view content saved to db

I'm storing the page content in the database (both as markup and HTML code) and displaying this content in the view (let's say it's CMS or forum post). The this data have also some links to internal pages existing in sitemap (Zend_Navigation object). It's easy to insert the link in page body just by using <a> tag. But the contents of th...