zend

How to parse ZendGData Picasa GPhotoTimestamps in PHP

So, i'm having a lot of trouble with this little piece of code. An example timestamp is this: '1278509422000'.. the problem is that it comes in as a string and I have to convert it somehow. I know about the problem with milliseconds and have tried dividing by a 1000 and much more (intval/floatval) but it just will not become a correct da...

Zend_Translate : How can be done with zend framework translation that will translate each expression according his html id?

Hi, I beginner in zend framework and its a bit hard for me to understand zend_translate how its works. My Main Question: How can be done with zend framework translation that will translate each expression according his html id and how non programmer translator can see word location in web browser for translate each expression according...

Which solution supplied zend_translate for translate word with few meanings?

Hi, Which solution supplied zend_translate for translate word with few meanings? Example: http://m-carstairs.com/englishlessons/id12.html Thanks, Yosef ...

Create submenu with Zend Navigation

Is it possible to create a submenu in Zend Navigation? At this time i've got this in my application.ini: resources.navigation.pages.indexHome.label = "Home" resources.navigation.pages.indexHome.controller = "index" resources.navigation.pages.indexHome.action = "index" resources.navigation.pages.indexLogin.label = "Login" resources.navi...

Zend File Upload -- Access data in file

I'm building a site in Zend that requires the ability to upload a list of email addresses via a file upload. This will end up populating a distribution list table. What I'd like to do is have the user complete the form, including the attached file, then upon submit, I will parse the file and submit the form for each line of the file. ...

how do I override php://input when doing unit tests

I'm trying to write a unit test for a controller using Zend and PHPUnit In the code I get data from php://input $req = new Zend_Controller_Request_Http(); $data = $req->getRawBody(); My code works fine when I test the real application, but unless I can supply data as a raw http post, $data will always be blank. The getRawBody() meth...

Zend PHP qualification

The company I work for paid alot of money to put me on the Zend PHP programming course, i completed all the online classes and tutorials all I need to do know is book the test and pass. Any advice from anyone? areas i should concentrate on? materials ? blogs? ...

How to protect our code?

I have to protect my code? which is the best method for protecting our codes? any body can help me? ...

Use cases for Modules in the Zend Framework

Besides the obvious 'admin' and 'blog' use cases for a module structure in Zend Framework are there any reasons or guidelines to use Modules? I feel drawn to use modules, but I'm not sure how I would split my web app up into modules. Can you suggestion some instances where using modules would be beneficial? ...

Looking for another Framework.. Which one should I pick?

I have been using CodeIgniter for about a year now, but I feel that I have spent too much time building things that should be native. My own version of it is pretty cool and has almost everything I have ever used to build a web, in a way that it is reusable, but still lacks power and every time I learn something new (like TDD, or ORM), I...

Why Zend_Form produce <dt id="label-id"> <dd id="elem-id"> ?

Hi, Why Zend_Form produce <dl> <dt id="label-id"> <dd id="elem-id"> </dl> ? (I understand that its produce by default decorators, but why and for what they used? ) Thanks ...

Zend_Form:: When should be form created in view and not in controller?

Hi, Zend_Form:: When should be form created in view and not in controller? option 1 - form created in controller and passed to view (usually used) controller: $form=new MyForm(); $this->view->form=$form; view: echo $this->form; option 2 - form created in view directly (looks better to me because form its subpart of view) view:...

Adding form elements to a form powered by Zend_Form

I have a huge and complex form, and I have build it using Zend_Form. There are multiple places in the form where the user can add elements on click. Currently, if the user submits the form, and the validation fails - the elements added by the user are not retained - as they were not a part of the form. Is there a natural way to add them ...

PHP - ob_start("ob_gzhandler") why the function not use directly in zend framework project?

Hi, I beginer in zend framework. ob_start("ob_gzhandler") - why the function not use directly in zend framework project? (does ob_start("ob_gzhandler") used auto in zend framework? ) Thanks ...

How to alter the schema of a database to introduce new features or change the current features

I'm developing an app using Zend Framwork using Git for version control. What is the best approach for updating the schema and the database when one of us makes an update to the db structure? currently, we have to blow out the tables and recreate them manually to reflect the new updates. ...

Session variable not changing using Zend_Session_Namespace

within the two actions below, i changed the session variable callback and selectLabel public function actn1Action() { $this->_helper->layout->disableLayout(); $this->_helper->viewRenderer->setNoRender(); $ns = new Zend_Session_Namespace('temp'); $ns->callback = $this->getRequest()->getBaseUrl()."/callback1"; $ns->selectLabel = 'Label1'...

Problem with url rewriting within a zend modular cms

Hi guys, In the process of building a modular cms I have come to a point where I am standardising certain parts of the system into the "core" and leaving all extras as modules. I never had any issues when I was accessing content pages via example.com/content/about-us however it looks a little messy to have the content at a url removed ...

Doctrine Column not found: 1054 Unknown column 's.features' in 'field list''

I added a new column "features" to the site table and regenerated the models using Doctrine This code is causing an error $siteTable = Doctrine_Core::getTable("Site"); $site = $siteTable->findOneByName("site"); // this line is throwing an exception Exception : Unknown column "s.features" in field list..... I checked the database ...

Where to put custom functions in Zend Framework 1.10

Hi, I have to use custom functions / objects in my web application based on Zend Framework 1.10. Where is the best place to put them ? Thanks in advance ...

Is There a way to use Zend Search Lucene in a way similar to Useing the WHERE LIKE sql in Databases ?

$select = $this->_db->select()->from($this->_name,array("id","fullname","username","email"))->where("fullname LIKE '$query%'"); I am using this SQL statement currently to power my Ajax auto suggest, if i type in "a" it gets me results starting with a. I want to know if this can be accomplished my using Zend Lucene indices. ...