I am using poedit with zend_translate.
I have done everything required in zend. I have created some sample code in zend view files
$this->translate("Hello");
I have then created a new catalog in poedit.
I specified the initial settings (like base directory, translation function)
I edited php parser tab:
a) *.php to *.php;*.phtml
...
Hi.
I'm looking for how to make a dynamic sidebar (data is brought from a database) with Zend_Navigation, nothing found anywhere.
If anyone has worked with Zend_Navigation working with database, I appreciate your help.
greetings.
...
Hi all,
Currently my code below works fine but it's a bit of overkill. In my controller I fetch the categories that have links and all the links in my database.
In my view I loop through all the categories and then when I want to add the links under the category I loop through all the links in my database instead I should only loop thro...
I'm not sure what the problem is here, I've inherited some code form Zend Framework and it's using Propel to make DB Queries. I've changed the config file to have the right values in it, username, password, localhost and dbname however, whenever the site has to make a database call it dies with this message:
Error processing connection ...
I'm using Zend_Auth with a "Database Table Authentication". What I want to do is allow the user to login with either a username or email address as the "identityColumn". How would I allow both. I'm stuck.
...
Hey SO,
I'm running Zend_Search_Lucene, which is almost exactly the same as normal Lucene. I'm keeping stores in my Lucene index, and they're holding this:
id of store for sql - 'store_id' of field type keyword
name of store - 'name' of field type text
latitude of store - 'lat' of field type keyword
longitude of store - 'lng' of fi...
I am trying to build a Connect app using PHP and Zend Framework.
I also have a Zend_Auth based user authentication system.
Now, I am able to log in using Facebook but log out is not working.
I need to clear the Zend_Auth identity as well as remove all Facebook login info as well.
What would be the best way to do this?
I tried facebook_...
Does someone know if Zend_Lucene class support CJK (Chinese Japanese Korean).
I want to use it on my own website the only problem it should work for both English and Japanese language.
Also if someone has some ressource about CJK version of the Java version would be appreciated also.
Thanks
...
After inheriting some Zend Framework code it didn't work, after lots of fiddling I've managed to create the schema and rebuild the models, although now I'm getting the following error:
Call to undefined method Criteria::hasSelectClause() in home/richard/library/om/BaseDomainPeer.php on line 329
Why would propel generate files that c...
I have a method that deletes a row form a database using the sql adapter provided the the zend framework.
class Table extends Zend_Db_Table_Abstract {
...
$where = $this->getAdapter()->quoteInto(
'ModID=? AND URL=?',
array((int)$mid, $url->toString())
);
$this->delete($where);
The issue is that this ...
We are developing a new site in Zend Framework while we maintain and improve our older version (plain old fashion PHP files).
This in some cases is meaning waisting hours of programming that we could to some extend use for our newer versions.
We do have full server control and a sophisticated 301 rewrites on Apache, so we could rewrite...
I have a common ‘Contact Form’ in my project which is called in most of pages like index, about us etc. this page accept user inputs and sent an email to admin, then return back to the page, from which it is called
Code for contact form is
class Form_Contactus extends Zend_Form
{
public function init()
{
$this->setMethod('post...
I'm validating user entered date string in YYYY-MM-DD format using Zend_Validate::is($value,'Date').
this call causes this hierarchy:
Zend_Validate::is()
Zend_Validate_Date->isValid()
Zend_Date::isDate()
Zend_Locale_Format::getDate()
Zend_Locale_Format::_parseDate()
and then fials with this exception:
Zend_Locale_Exception: Unable t...
Zend Framework:
I have the following url /base/url/[number]/[string]
OR /base/url/action/controller/param/value
I want in the case of /base/url/[number]/[string] to transform it to
/base/url/controller/a/action/b/id/[number]/name/[string]
The a and b are constants (i.e. each time I see a number in the place of...
Hey there, I'm trying to validate a form with Zend_Validate and Zend_Form.
My element:
$this->addElement('text', 'username', array(
'validators' => array(
array(
'validator' => 'Db_NoRecordExists',
'options' => array('user','username')
)
)
));
For I use Doctrine to handle my databas...
Hi
I am using INI files to manage my Zend_Form elements.
Here's an example .ini file:
form.action = ""
form.method = "post
form.elements.attribute_name.type = "text"
form.elements.attribute_name.options.label = "Element Name"
form.elements.attribute_name.options.validators.strlen.validator = "StringLength"
form.elements.attribute_nam...
I'm looking for some example to make a dynamic menu with Zend_Navigation because the data are from a database.
If anyone has any example of how it will be grateful.
...
Hi,
I am using zendgdata library for google calendar.
I am getting this error while using this function createQuickAddEvent(it add events to the the google calendar).
Code of this function is:
/**
* Creates an event on the authenticated user's default calendar using
* the specified QuickAdd string.
*
* @param Zend_Http_Client $c...
I want to open a PDF File with Zend_PDF.
Manipulate an existing textfield.
Save the PDF.
How to manipulate an existing Textfield?
Is this possible?
...
I have a form. I have a single element that needs to be wrapped in a div or fieldset (for formatting). Then I have two groups of elements, including the above, that I want to wrap in a fieldset or div. I've managed to create two groups, but Zend Form seems to balk at letting me create a group containing a group. Should I be able to do th...