Search found 35 matches

by simpli
Sat Jul 13, 2019 5:11 pm
Forum: Zend Framework
Topic: Fatal error: Uncaught Zend\\ModuleManager\\Exception\\RuntimeException: Module (Album) could not be initialized.
Replies: 0
Views: 1897

Fatal error: Uncaught Zend\\ModuleManager\\Exception\\RuntimeException: Module (Album) could not be initialized.

Hi, I'm trying to get back to developping with Zend. I had last developped on ZF 1.8. I am trying to get started on ZF3. I have been stuck for quite some time, completely unable to get the Skeleton program working. I am working on Ubuntu, and have gone over the steps several times. At this point, I ...
by simpli
Thu Jan 02, 2014 4:16 am
Forum: Zend Framework
Topic: Zend_Rest_Controller ListAction executing getAction
Replies: 0
Views: 1074

Zend_Rest_Controller ListAction executing getAction

Hi all, I have a Zend_Rest_Controller that has the usual RESTful verbs. They are working fine. I also have a listAction that is not working at all. Here's what I have in the listAction: public function listAction(){ echo 'in list action'; } It is never actually executed. I want to specify that the l...
by simpli
Sun Jan 03, 2010 6:14 am
Forum: Zend Framework
Topic: Calculate number of months between two dates
Replies: 2
Views: 2748

Calculate number of months between two dates

Hi, I am trying to calculate the number of months between the first date of month A and firrst date of month B. I would have for instance: DateA = '2008-10-01' (october 1st 2008) DateB = '2010-03-01' (March 1st 2010) and I would like a function that return to me 17 months. I tought first that compar...
by simpli
Sun Jan 03, 2010 6:06 am
Forum: Zend Framework
Topic: Zend date constructor
Replies: 1
Views: 1029

Zend date constructor

Hi, I have date data in my database under this format: '2010-01-31' for january 31st 2010. I want to take that data and create a zend_date with it. I have not been able to see anything in the documentation that allows me to do something like that. I was expecting to be able to do something like date...
by simpli
Tue Dec 08, 2009 4:42 am
Forum: Zend Framework
Topic: Zend_Json::encode
Replies: 0
Views: 747

Zend_Json::encode

Hi guys, I have the following php arrray.

Code: Select all

foo ( [node_id] => 683)
When I use Zend_Json::encode($foo); it returns {"node_id":"683"}.
I expected {"node_id":683} (without the quotes).

Is there anyway I can use that function to return the integer without the quotes?

Thanks and best regards,
JR
by simpli
Thu Oct 15, 2009 3:51 am
Forum: Zend Framework
Topic: problem creating a helper
Replies: 0
Views: 723

problem creating a helper

Hi, I am trying to create a helper to return an array that I need in several controllers. I set up the helper according to http://devzone.zend.com/article/3350-Action-Helpers-in-Zend-Framework but I am getting an error message Uncaught exception 'Zend_Controller_Action_Exception' with message 'Actio...
by simpli
Fri Sep 18, 2009 3:27 am
Forum: Zend Framework
Topic: Retrieve data with POST (REST)
Replies: 3
Views: 1652

Re: Retrieve data with POST (REST)

I found the solution. The data is in the body of the requests so getRawBody() is what will give you the data that was sent.
JR
by simpli
Thu Sep 10, 2009 11:55 am
Forum: Zend Framework
Topic: Posted data
Replies: 1
Views: 1026

Posted data

Hi, I am having some problems retrieving my post data. Currently in my controller I do the following: echo $this->_request->isPost() ? print_r($this->_request->getPost(), true) : 'THIS IS NOT A POST REQUEST' and I get an empty { } as the result. I did check the method and it is a POST but I cannot s...
by simpli
Thu Sep 10, 2009 3:49 am
Forum: Zend Framework
Topic: Retrieve data with POST (REST)
Replies: 3
Views: 1652

Retrieve data with POST (REST)

Hi, I am trying to use Zend's new REST controller. in my postAction I am trying to retrieve the posted data. I tought i would test that I receive the data correctly before moving on to implementing my business logic. Unfortunately when I echo or print_r, I have nothing niet nada. I try to use getPar...
by simpli
Wed Sep 09, 2009 5:21 am
Forum: Zend Framework
Topic: Problem after transitionning to 1.9.2 with dojo
Replies: 1
Views: 1662

Problem after transitionning to 1.9.2 with dojo

Hi, I am experiencing an issue after transitionning from 1.8 to 1.9.2. there are what i believe to be language files in dojo that are present only on builds. since I am coding from trunks these files aren't at the specified location. On 1.8, I used to have an error message on my firefox page firefox...