I'm getting odd output from the getDate() function. It's supposed to return a date without the time parts, but I am getting time parts. Am I missing some configuration option that would correct this?
Sample Code:
date_default_timezone_set('America/New_York');
$date = new Zend_Date(array(
'year' => 2010,
'month' => 3,
'day...
Have a date of birth in format 'MM/dd/yy' for people born in the 1900's. I'm using Zend_Date to
parse and convert the string value
$date = new Zend_Date();
$logger->info(sprintf('Convert DOB %s -> %s',$dateOfBirth,$date->toString('yyyy-M-dd')));
I get
2010-06-24T16:55:50+00:00 INFO (6): DOB 9/13/57
2010-06-24T16:55:50+00:00 INFO (6)...
Hi Guys,
Php has a Zend Engine.. The zend engine provides fopen.. Php also provides fopen...
But when we call fopen, php's fopen is called.. I have three questions here
What is the purpose of the /php--Nn/ext folder .
Do the functions in ext folder need to be recompiled everytime they are changed?
Do the functions in the ext folder ...
I have a url of my application http: //localhost/application/home/user/index where user is the controller and index is the action.
So in my menu I did:
echo $this->ajaxLink(
"Item",
$this->baseUrl."user/index",
array('update' => '#container', 'method' => 'POST')
);
Then when I click it the link is http:// localhost/ap...
I'm working on a project to pull in album information from a user after authenticating using AuthSub. I cannot for the life of me figure out how to pull a list of all the albums associated with the default authenticated user.
When I call getAuthSubTokenInfo I get ..
Target=dev.mywebsite.com Secure=false Scope=http://picasaweb.google.co...
Hi guys,
I'm doing this tutorial:
http://www.phpeveryday.com/articles/Zend-Framework-Database-Creating-Input-Form-P494.html
We are building a simple input form using POST and submitting it to a mySQL database. All is working fine. I'm just trying to get my head around the getRequest() function.
In the controller, we have this:
pub...
Zend Auth Adapter Ldap in 1.10.6 fails when using the same options
ldap.server1.baseDn = "CN=Users,DC=webex,DC=local" (this is just one option)
the exact same option works in the previous 1.5 or 1.6 versions
if i change the above option to
ldap.server1.baseDn = "DC=webex,DC=local"
then it works but would always return Invalid Credent...
How to change standard zend route from:
http://example.com/controller/action/param1/val1/param2/val2/...
to
http://example.com/controller/action/?param1=val1&param2=val2...
...
I have a simple form accomplished with Zend_Form which is retrieving all its parameters from an XML file. Form has a file input which I need to allow empty submits as well. I mean users should have the chance to leave this field empty.
I tried various combinations of allowEmpty and required directives but no help. Below is the XML block...
Overflowers':
I'm using Zend, and doing an Ajax post to a controller. I can determine in the
Controller if it is a Ajax call using isXmlHttpRequest()..
However.. I can't find the value for my Posted JSON encoded data any where ?
I guess Zend strips it out, but its frustrating .. anyone have any idea where
the Ajax posted values go?
...
Let's say I have the following in my ini file:
resources.frontController.plugins.auth = AuthPlugin
Where should the AuthPlugin class be placed? Let's say I would like it under controllers/plugins.
UPDATE:
Based on the suggestions below I am still having trouble. Let me be exact in what I currently have:
1) main part of applicat...
Hi i am new to zendframework , i creating a form using Zend_Form();
i need to give a name for that form. i try the below but not works
ex1:
$form = new Zend_Form();
$form->setMethod('post')
->setName('add_to_mail')// give name like this
->setAttrib('id', 'add_to_mail');
ex2:
$form = new Zend_Form();
$form->setMethod('post')
->setAtt...
I have a single Zend_Form_Element_File element that handles the upload just fine. What I want to know is, is it possible to use the Zend_Form_Element_File element only and still maintain the value that was originally uploaded? Generally this sort of thing would be handled via a hidden field but I would like to keep it in the Zend_Form_El...
Hi,
Got the following:
Zend Studio
Zend Framework Project
Remote host with FTP and SSH (root access)
Want to:
Save directly to remote host.
Currently i'm working on a localhost *AMP server, manually updating the remote through FTP.
Have tried various ways to acomplish the above - unsuccessfull obviously.
Can some one tell me w...
Is there a pre-written PHP spider/crawler that can be used to feed documents to the Zend_Search_Lucene indexer? I've found Sphider but it is very tightly coupled to MySQL, and not able to be integrated easily with Zend Lucene (as far as I can tell)
I'd originally written the search index to work on CMS/Wordpress page-save, so no spideri...
I'm trying to delete a Row, can anyone tell me the proper syntax for this ?
class Application_Model_Event extends Zend_Db_Table_Abstract {
protected $_name = 'xx';
protected $_primary = 'xx';
public function deleteEvent ( $xx) {
$this->delete( $this->select()->where('idEvent = ?', '8'));
}
}
...
I'm confused. if the default handle in page.xml defines the default page layout. How come when you first install magento. Its set as 3 column layout but the front page is a 2 column
...
How can i forward to other action inside the same controller avoiding repeat all dispatch proccess ?
Example:
If i point to User Controller the default action is indexAction() inside this funciton i use _forwad('list') ... but all dispatch proccess are repeated.. and i dont that
Whats is the right way ?
...
When I try to access the url http://localhost/mysite/public/images/grey-arrow.gif in a controller in my application I get the error:
Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (images)' in C:\xampp\php\PEAR\Zend\Controller\Dispatcher\Standard.php:242 Stack trace: #0 ...
How could I remove the get query from the URI, so I can use this method:
$request->getRequestUri()
And get the URI without the GET query part?
I.e. this:
/module/controller/action/par/val?par2=aaa
I would get:
/module/controller/action/par/val
...