Hello, everyone
One site was moved to another server where is installed Solaris and other iconv settings. Now, when I validate anythink with "StringLength" function from Zend Framework my scripts fail with this error:
Notice: iconv_strlen() [function.iconv-strlen]: Wrong charset, conversion from `UTF-8' to `UCS-4LE' is not allowed in /...
If I want to use the Zend_Db_Table->update() method to update my table with data, I cannot find anyway to use bind variables in the "where" clause.
The method signature is:
int update($data, array|string $where)
Usually you will call the method like this:
$table = new Bugs();
$data = array(
'updated_on' => '2007-03-23',
...
Something is wrong here - whenever I try to send two different emails using the Zend Mail function i.e. creating a Zend mail object then populating it with needed details and sending - it works the first time but immediately if I repeat the process for another email with other details... IT DIES OUT giving me this silly error!!!
[22-Oct...
Hi all,
I am working with zend framework for last 2 months. I got zend framework latest version 1.9.0.
I am new in zend framework programming. I am learning one by one.. in zend framework. Now i am confused with creating admin module in zend and their configuration settings. Please help me to create admin module with in the module fold...
Hi,
I have a quick and hopefully simple question that I hope someone can help me with. I have a application that I am working on and I allow users to upload files. All files are loaded in to a directory with in the application folder of the project layout
/application
--/myuploadedfiles
/library
/public
However when I need to rea...
I want the query 'SET NAMES utf8' to execute before any other queries.
But, if I execute it in the beginning of my app, it forces Zend_Db to connect to the Database, even if I'm not running any other queries. It isn't cool: My app processes lots of requests without any queries, only using cache.
How to ask Zend_Db to run 'SET NAMES utf...
Hi all,
I got some codes from other articles for configuring module and layout in zend framework. I tried with in my local. i didn't get different layout for default and admin module. Here is my code for configuring module and layout for zend framework.
configs/application.ini
[production]
# Debug output
phpSettings.display_startup_...
Hi everybody, im trying to formatting the date field 'created_at' from Twitter API response with Zend_Date. I want output the date like this:
21 of July of 2009, 12:30:00 (for example)
What format is this?:
Fri Oct 23 15:47:42 +0000 2009
thanks a lot
...
I want my 'users' table in my database to contain users of all different levels (members, moderators, admins, etc). So a column in my 'users' table is role. I want to be able to check the role to see if they have permission to log in to special parts of the application. How can I do this? Here is my auth adapter so far:
protected functi...
I am using Zend Framework and Doctrine on a project and was wondering if anyone can suggest a good way to integrate Doctrine's validation with Zend_Form. I'm trying to avoid code duplication.
...
I'm sure it's a simple one-liner, but I can't seem to find it.
How can I use a different layout file for a particular action?
Update: This worked for me, thanks!
// Within controller
$this->_helper->_layout->setLayout('other-layout') //other-layout.phtml
//Within view script
<?php $this->layout()->setLayout('other-layout'); ?>
...
I want to get started working with jQuery in my Zend Framework application but not sure which is the best way to get started. I know I could include the jQuery library just like any other javascript library, but what are the advantages of using ZendX_JQuery, and what are the steps necessary to start using it in my Zend Framework 1.9 appl...
I'm trying to connect to a Java web-service using the Zend_Soap_Client from the Zend Framework v1.9.0:
<?php
include( 'Zend/Loader/Autoloader.php');
$autoloader = Zend_Loader_Autoloader::getInstance();
$client = new Zend_Soap_Client('https://webservice.com/webservice-war/webservice?wsdl'
, array('encoding'=> 'UTF-8'));
try{
$resul...
Hello,
I am playing with Zend 1.9 and would like to have the language parameter as subdomain.
Like : http://en.site.com
Is it possible to get the language in .htaccess and set it to an environment variable which I can use in Zend ?
What is the best way to achieve what I want ?
-- added --:
I added this into my routes.ini :
[routes...
Hi,
I am trying to use a layout for each actions in a controller. For example, I have three actions in index controller. Those are indexAction, testAction, and welcomeAction. I created three xml layout files. index.xml, test.xml, and welcome.xml. Finally, I created a plugin.
class Moon_Layout_Append extends Zend_Controller_Plugin_Abstr...
I have a php file for uploading a picture (it uploads the picture, creates its thumbnail and also adds watermark to the picture). The file is being called by AJAX.
It was working on on my localhost on Windows XP with WAMPSERVER 2.0. Now I have installed Windows Vista and suddenly it doesn't work properly (the picture gets uploaded but t...
How can I add a text behind a form element in Zend Framework? Let's say I have a text input field, first there is a label, bellow the label there is an actual input field but I want to add some additional text (2-3 sentences) behind the input field. Something like a short tip or suggestion what is the best value for that field.
...
I'm totally confused about how decorators work. This is the html structure that I'm trying to achieve:
<form id="" action="" method="post">
<fieldset><legend>Contact form</legend>
<p>
<label for="name">Name</label>
<input type="text" name="name" id="name" size="30" />
</p>
<p>
<label for="email">Ema...
Hello
I'm building a web application using PHP5.3 and Zend Framework 1.9.4.
i have an sql file that creates and populates the relevant tables.
is there a way to install this sql file using PHP or even some component of Zend Framework ?
for now i just search for the mysql client binary and install using it.
...
how do i insert a picture into a database from a zend form.
pls help me with the codes
...