zend

Strange error with zend frame work

Fatal error: Uncaught exception 'Zend_Db_Adapter_Exception' with message 'SQLSTATE[28000] [1045] Access denied for user 'liveaide_dbuser1'@'lynx-u.znetindia.net' (using password: YES)' in /home/liveaide/public_html/aider20test/zyberops/library/Zend/Db/Adapter/Pdo/Abstract.php:144 Stack trace: #0 /home/liveaide/public_html/aider20test/zyb...

Zend Framework call form as subform within a form.

Hello, I am trying to call a form from within another form. I need it to come in as a subform. However, I cannot merely extend it as both forms extend different things that are required. This is kind of what I was thinking but it doesn't work: $subForm3 = new Form_CreateEventInformation(); Basically create a subform3 from th...

How can I force Eclipse to produce always the same DEBUG_SESSION_ID GET parameter when debugging PDT project with Zend Debugger?

I'm using GWT as a front-end and PHP as a back-end in my application. I have those as two separate projects in Eclipse. My idea was to debug the application as a whole and I succeeded that. The problem is that I have to rewrite my ajax calls with Zend Debuger's parameters (DEBUG_SESSION_ID, START_DEBUG, DEBUG_PORT ...) every time I start...

zend mod rewrite not working

tia here i my .htacess SetEnv APPLICATION_ENV development RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ index.php [NC,L] ...

Create new framework project in Zend Studio

I hv problem in creating New Framework project on Zend Studio.I'm new to Zend Studio. Using Zend Studio ver.7.1.0. When i'm creating new zend framwork project (Zend Server is successfully installed), It will not create 'application' & 'public' folders. In my previous test project those were created automatically. But now its create only ...

Default element value using Zend_Form with Zend_Config_Ini

I have been looking for hours and I can't find any documentation anywhere as to how you set the default value of an element using Zend_Config_Ini as the initialisation to a Zend_Form. I've seen the documentation for how you do it in normal PHP code... $validators = array( 'month' => array( 'digits', 'default' => '1'...

Zend navigation from action

<ul> <li> <a href="<?= $this->route('list', 'test1', 'default', array(), null, false) ?>">Test1 </a> </li> <li> <a href="<?= $this->route('list', 'test1', 'default', array(), null, false) ?>">Test2 </a> </li> <li> <a href="<?= $this->route('list', 'test3', 'default', array(), nu...

better implementaion of a global Zend_Log instance?

Is there a better way to have a globally accessible Zend_Log object? In Bootstrap.php I'm doing: protected function _initLogging() { $logger = new Zend_Log(); $writer = new Zend_Log_Writer_Stream(APPLICATION_PATH . '/../app.log'); $logger->addWriter($writer); Zend_Registry::set('log', $logger); } Then throughout the a...

Zend_Form : Adding fields in sub-forms on user's click

I'm having a zend form - comprised of a number of zend - sub forms, where the user is creating a new question (its a content management system). In one of the subforms, the user can click on a button to add more textfields, like this: [----------] [----------] [click to add more] which should give [----------] [----------] [---------...

Missing required extension: XMLRPC

I'm trying to install KnowledgeTree Community Edition on my CentOS VPS. One of the requirements for this was ZendServer - Which I had to install via their universal installer as installing via YUM was just straight out failing. I assume due to CPanel... Anyway, I got ZendServer installed and then downloaded the source of KnowledgeTree a...

How can I link to a specific tab created with Dojo/Zend Combination

I have the following html / Javascript: http://pastie.org/782618 And the following Zend PHP Code for the tabs: http://pastie.org/782620 I would like to link to the Second Tab (Event Information2). If possible I would prefer to be able to have a button on the first tab that when clicked it goes to the next form. If that isn't possib...

Zend Framework: How to include an OR statement in an SQL fetchAll()

I am trying to build the following SQL statement: SELECT users_table.*, users_data.first_name, users_data.last_name FROM users_table INNER JOIN users_data ON users_table.id = user_id WHERE (users_table.username LIKE '%sc%') OR (users_data.first_name LIKE '%sc%') OR (users_data.last_name LIKE '%sc%') I have the following c...

key value routing in Zend Framework Route

Hello, I'm using a Hostname route to capture a subdomain and use as a category. I then chain a Router route for the controller, action and key/value pairs. $hostnameRoute = new Zend_Controller_Router_Route_Hostname( ':customer.ddc.:domain', array( 'customer' => ':customer' ) ); $routerRoute = new Zend_Controller_Router_Route( ':c...

MySQL progressively decaying...?

I have a Zend/PHP script that reads rows from a table in one MySQL DB, transforms the data, and adds rows to a second table in another MySQL DB. As I've bee debugging the script, it has been getting less and less far along before tossing an error. Right now, after adding 60 rows, it quits. In the beginning it was adding 300+ rows. The s...

How print all the weeks in an year (or first monday of year)

Hi all, How print all the weeks which start with monday and end with sunday.. like below ..using Zend_date 1 04-Jan-2010-10-Jan-2010 2 11-Jan-2010-17-Jan-2010 3 18-Jan-2010-24-Jan-2010 ...

How to validate multidimensional array in Zend ?

Hello ! I am wondering what is the best way to validate multidimensional array using Zend_Validate with Zend_FilterInput. Here is my current code: $filters = array( 'symbol' => array('StripTags', 'StringTrim'), 'mode' => array('StripTags', 'StringTrim'), ); $validators = array( 'symbol' => array('N...

zend json and object's private attributes

From my reading, I understand JSON to only work with public attributes. Is there a way to get it to work with private attributes? Would the magic getter (__get) do this? TIA ...

How to get the number of weeks in a particular year? Also how to get the current year using zend?

1 <?php 2 // get number weeks of year for 2008 3 // result 52 4 echo date("W", mktime(0,0,0,12,28,2008)); 5 ?> How can i get the above result , using zend functions .also how can i get hte current year using zend ...

Zend Framework Path Problems

All, I am just trying to view any page at all besides the “Welcome to Zend Framework” screen. I have downloaded the project from this tutorial: http://framework.zend.com/docs/quickstart/create-a-form (Zend Framework Quickstart) As far as I can tell, the paths are coming up correctly. I read this post: http://www.johnmee.com/2008/11/z...

Zend_Db_Table fetchAll and column names

I'm testing Zen_DB and Zend_DB_Table and I'm facing a problem: Let's say I've got two tables table A(id, title) table B(id, title) If I write something like $db = $this->getDbTable()->getAdapter(); $query = "SELECT A.*, B.* FROM A INNER JOIN B on A.id = B.id" $stmt = $db->query($query); $rows = $stmt->fetchAll(); each re...