I am developing a CMS based on Zend Framework which have many modules, for example News and Gallery.
Each module has some part with same function as manage categories and comments (Categories and comments for News, Photos, Albums - cames from News and Gallery modules - are separate).
Can somebody give me the advise to avoid making duplic...
In Zend Framework 1.8, what is the recommended way to register a new plugin in Zend Framework 1.8?
<?php
/**
* Enter description here...
*
*/
class Wenbert_Controller_Plugin_CheckHasAccess extends Zend_Controller_Plugin_Abstract {
/**
* Enter description here...
*
* @param Zend_Controller_Request_Abstract $request...
I'm working on building up an interface that I want to function as a "tabbed browsing" sort of function. Each of these tabs has already been written as an action and the tabbed interface works fine as links to the individual tabs. I decided to try writing the "index" page for this controller - putting the content of all the tabs into h...
Is there a way to save the soap request SoapClient sends when calling __soapCall to a file instead of sending it to the actual server?
I'm trying to save the soap requests to a queue and then send them over a period of time (the requests will be very different).
I'm using Zend_Soap.
...
I am using Xajax in Zend Framework. I need to call action of particular controller in function of Xajax Class I have created.
...
Given the code (which looks like it should be valid):
<!--[if lt IE 7]> <style type="text/css" media="screen">
<!--
div.stuff { background-image: none; }
--></style><![endif]-->
The W3C validator throws a fit:
S separator in comment declaration
invalid comment declaration: found name start character outside comment but inside commen...
I am trying to write this, query with zf select but without success
SELECT * FROM `subscribers` WHERE id IN (Select subscriber_id From gs_relations Where group_id=55)
I was trying with ssomething like this:
$gs_relations = new GSRelations();
$part = gs_relations->select()->from('gs_relations',subscriber_id')->where("group_id=$group_i...
I have been coding my PHP applications in Notepad. I want to take it a step up and do it professional, and as far as I can tell using the Zend Framework is where to start. I have been reading the documentation and quick start and a few tutorials but I am still completely lost.
Is Zend on your local machine or on the remote server?
Is ...
Zend Framework, being as flexible as it is, is ripe for plenty of tips and tricks. I know I've seen a lot of quirky, undocumented things that people put in their apps. I'd love for people to share their creative coding tricks using ZF.
There is a similar thread to this with Django that I found very helpful, so I thought I would start on...
I'm trying to work through the quick start tutorial of the Zend Framework version 1.8.2, but I'm getting an error when running this code:
zf.sh create project quickstart
error: expecting `'{'' in /Users/andrew/Sites/_library/ZendFramework-1.8.2/library/Zend/Tool/Framework/Client/Console.php on line 63
I'm doing this on Mac OS X 10.4. ...
I'm trying to append data to a Zend_Search_Lucene index but I'm getting a memory limit error on a line of on line 1584 of Zend_Search_Lucene_Index_SegmentInfo that has this
$bitCount = count(bitset_to_array($delBytes));
It runs fine on our development servers but when ported to another server that's when I get the error. The differe...
Hello
I am coding search engine using Zend Framework Lucene. I'm trying to make fuzzy query:
"name:sxample~"
When I put it into Luke - it founds 14 results (all with word "sample"). When I use my php code -
$query = 'name:sxample~';
$query = Zend_Search_Lucene_Search_QueryParser::parse($query,'utf-8');
try {
$hits = $index->fin...
My sql statement is not working with Zend, its complaining about the Count(*) field... what am I doing wrong?
// get open/closed
$stmt = $db->query('SELECT status, count(*) as total FROM reported_issues WHERE date_reported >= '.$today.' AND status IN (0,1) GROUP BY status');
while ($row = $stmt->fetch())
{
switch ($row['status'])
...
Why am I receiving same attachment twice with this code!?
$mailer = new Zend_Mail('UTF-8');
$mailer->setFrom($group_email,$group_name);
$mailer->setSubject($title);
$mailer->setBodyHtml($full);
$fileContents = file_get_contents('test.jpg');
$attachment = $mailer->createAttachment($fileContents);
$attachment->filename = "test.jpg...
I'm a php developer that uses Zend Framework extensively for developing at work. I've always liked some of the concepts put forward by Java but as I've rolled out big websites with ZF and had to work through performance/security issues I would like to use a framework in java that has similar features to Zend Framework or maybe bypasses s...
There has been a fair bit of talk/debate lately in the Zend Framework community about thin controllers. Apparently there is a tendency of ZF users to view the Model as nothing more than the gateway to the database.
The argument is that Models should be "fat" and do more of the work and Controllers shouldn't be chaining methods and doin...
I am using background images in my css, which, obviously, requires writing URLs in the css file.
So, while the relative path might be the same, the base URL will be different between development and production.
So, is there a better solution than:
1. changing it each time manually
2. using resources on the cloud with full URL
3. making t...
hi all,
i want to know if Zend Framework has any class for handling cookies. a class that wraps php's setcookie() function for example.
thanks in advance.
...
Hi -
I have the following code:
$selectColumns= array('user_id.user_email',
'user_details.first_name',
'user_details.last_name',
'user_details.zip',
'user_details.store_id');
$result = $handle->select()->from('user_id')
->where('uid=?', $uid)
->columns($select...
If I build a form:
$search_words = new Zend_Form_Element_Text('text');
$search_words->setRequired(true)->setDecorators(array(array('ViewHelper')));
$form->addElement($search_words);
$go = new Zend_Form_Element_Submit('gogogo');
$go->setDecorators(array(array('ViewHelper')))
->setIgnore(true);
$form->addElement($go);
...