zend-framework

Charsets in general, with specific questions regards Zend DB - incorrect display of data.

Hello, I'm having trouble in my Zend Framework App displaying the correct characters. EG/ rue de l'Odéon Displays as: rue de l'Od�on When displaying information through a webservice and also by displaying it through the applications view. I have tryed the following things: 1) Set the character encoding in the view. $view->setEn...

Did I understand right how to build robust php backends with Zend Framework ?

Most of you should know that 'famous' article about "Writing Robust PHP Backends with Zend Framework" After an insteresting reading, i decided to give it a try, since i couldn't be able to find the gold solution to handle my datas. Then, i tried to write kind of a skeleton, to have a concrete example. But some points looks weird for m...

To get the complete row with join tables in Zend_Db_Table

This is my table structure. http://img6.imageshack.us/img6/8730/articlek.jpg I want to get a article row object from id with section and category names instead of section_id and category_id ,And user names instead of author_id and modified_by. Please help me. ...

Need a way to return scroll window position after page refresh

I am writing a game in PHP/Zend Framework and Facebook JavaScript. The gameboard is displayed in a scrolling window. To view the entire gameboard, the user must scroll around. Each step of the game causes a page refresh, so when the user moves on to another step, their scroll postion is lost and the window is returned to it's default pos...

How do I setup Zend Framwork with WAMP?

Hi, I read that to include the Zend framework, I must include this on the include path in php.ini. But I have a doubt. Where do I find the php.ini file in my WAMP with php 5.3.0? Please help me because I am new to this topic and also to PHP... Thanks in advance. ...

Zend Framework/Quickstart: undefined constant APPLICATION_PATH

Hai I got an error message Notice: Use of undefined constant APPLICATION_PATH - assumed 'APPLICATION_PATH' in C:\wamp\www\index.php on line 4 Notice: Use of undefined constant APPLICATION_PATH - assumed 'APPLICATION_PATH' in C:\wamp\www\index.php on line 5 When i put below code in index.php: set_include_path( 'C:\wamp\www\Zend\...

How to get started with Zend Framework developemt

Hai First of all Thanks... I have a downloaded Zend framework C:\wamp\zend I changed include path to php.ini to C:\wamp\zend, I seen this in my php info. I think the include path is correct. Still I have lot of doubt, where I start my work in zend framework? Which are the steps?? Thanks ...

Zend_Tool setup problems

hai I read that to create a project, execute the zf Windows windows command (zf.bat): C:\>zf.bat create project newproject I saw zf.bat in my C:\wamp\www\Zend\bin, I want to create a new project in c:\wamp\www When I tried to run c:\wamp\www\zf.bat, I got an error message: "zf.bat is not internal or external command, operable progr...

Zend Framework relationships - defining column names in findManyToManyRowset()?

Hi, I'm working on an application developed using Zend Framework. I have defined relationships in models, and can use them happily, e.g: $rowset = $row->findManyToManyRowset('People', 'Jobs'); However, i've hit a problem where the rowset is returned has column names that are the same in 'People' and 'Jobs', and therefore, merges the...

FlashMessenger with Zend - how can I send messages to another user?

Hello, I'm trying to use FlashMessenger to notify another user of an event. Does anyone know if this is possible? Something like $flashMessenger->addMessage( array('status'=> '', 'message'=> 'Hello!'), $user); ...

disabling Zend Framework

I'm using FreeBSD + Apache. How do I disable Zend Framework from running on a system? I prefer not to delete the entire software if I don't have to. Secondarily, how do I find out the version of Zend Framework I am using? I am refering to Zend Framework, the CMS. What would be my DocmentRoot directory? It seems to me that the Document...

Zend Framework create project error

I am new to the Zend Framework. I read the Zend Framework document. Here I saw to work Zend Framework must include the path in my php.ini, I believe that this is done because in my php info I saw include path is C:\www\zend_frame\library Also in document it says that to create a project I must run: C:\> zf.bat create project quickstar...

How to Retrieve the Request Object in the Bootstrap File? Zend Framework/PHP

Anybody know how to retrieve the request object in the bootstrap file of zend framework mvc. Just trying to repopulate a form that is included on every page if you know a better way of doing this instead of using the bootstrap file then let me know? Thanks. ...

Need help with pdo_mysql and data mapper pattern

I'm having issues with php-cgi.exe crashing while using php-pdo-mysql.dll. I'm using the data mapper design pattern show in Padraic Brady's Zend Off The Deep End and everything has been working correctly. I have a table which stores an ip address whitelist, and I'm able to access that properly via a mapper class using Zend_Db_Table. I...

How to grab the view object from inside a Zend_Controller_Plugin Class?

I need to make a Zend Controller Plugin that repopulates a form with a request that is in every page on predispatch. just need to figure how to grab the view object from inside the plugin and if there are any specifics for plugins as far as file directory. Thanks. ...

Zend and Flot Charts

I'm planning on adding some flot charts to my site, and i'm wondering are there any recommendations on the best approach for handling this. I have existing model and controller classes that query the DB, and a simple .phtml to render this data as a table. One approach is to add a new flot.phtml file, and have this class handle the crea...

Why is this Zend Framework _redirect() call failing?

I am developing a Facebook app in Zend Framework. In startAction() I am getting the following error: The URL http://apps.facebook.com/rails%5Facross%5Feurope/turn/move-trains-auto is not valid. I have included the code for startAction() below. I have also included the code for moveTrainsAutoAction (these are all TurnController actions)...

array to Zend_Db_Table_Row zend framework

Hi, is there a way of automatic converting from array to Zend_Db_Table_Row or Zend_Db_Table_Rowset? Form Zend_Db_Table_Row you can get the array with toArray(), but I was wondering if there exits anything like opposite of that? Till now I have been implementing a function fill($data) which took the array and than set the atributes of Z...

Populate a zend_form element from within a forwarded action

I'm pretty sure now that this cannot be done but I would appreciate clarification on why, so I can avoid similar situations in the future! I have a form that when submitted dependent on user input either completes or requires further input with a parameter needing to be passed to the new form. The initial submit works fine and the value...

Zend Stored Procedure

I have this code which calls a stored procedure within ZEND. Is there a way to print the SQL command that will get executed? $sp = $dbAdapter->prepare('CALL updateResultsByEvent(?, ?, ?, ?)'); $sp->bindParam(1,$id); $sp->bindParam(2,$event->name); $sp->bindParam(3,$event->distance); $sp->bindParam(4,$event->unit); // print $sp;???? $sp-...