zend-framework

Blogging Infrastructure using Zend Framework?

Hi there folks, I'm researching the prospect of incorporating a blog into my site. Currently, my site is written using the Zend Framework so it's not just a case of using Wordpress and that be the end of it. I was wondering. Has someone already done what I'm thinking of doing and written a blog infrastructure with comments and so forth...

Zend form whitespace validation

Hi all i have below code $name = new Zend_Form_Element_Text('name'); $validator = new Zend_Validate_Db_NoRecordExists('clients', 'name'); $validator->setMessage('A record already exists'); $name->addValidator($validator); $name->setLabel('Name'); $name->setRequired(); $name->setDecorators($decorator->elementDecorators); if i enter ab...

zend_barcode in MVC

hi people, i just want an Action to print a barcode image, but i can´t get this working in MVC, i just do the following: public function barcodeAction() { $this->_helper->layout->disableLayout(); $this->_helper->viewRenderer->setNoRender(); Zend_Barcode::render($_GET['barcodeType'], 'image', $_GET, $_GET); } but when I cal...

SWIG generated code fails to run on PHP 5.3.2 undefined symbol: zend_error_noreturn

I have a library that I have been using successfully with PHP 5.1.6 with the help of some wrapper code generated by SWIG (v1.3.40). I have just upgraded to PHP 5.3.2 and I am seeing the following error: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/myLib_php.so' - /usr/lib/php/modules/myLib_php.so: und...

How do I automate the formatting of PHP source?

I have a large-ish PHP project (hundreds of files) that I've been brought in to work on and the source formatting hasn't been very consistent from the beginning. I'd now like to take all source and format it according to the Zend Framework coding standards (tabs to spaces, short tags to full php tags, correct indenting, etc.), however t...

XSD for Zend Forms config XML

Does such scheme exist? If yes, where can I find it? ...

need advice on Zend framework Application architecture, or say approach dealing with modules

Let me start with the things that I did and how am I using some things to get results I have set up modular structure as: application/ /configs /layouts /models /modules /users /profile /frontend /backend /controllers /views .......

I get funny characters when reading multipart and text messages using Zend Mail?

Hi guys I've shifted to using the zend framework for reading messages from an inbox however when reading some html messages I see a lot of weird charcters like: don’t looks like don=92t Plus other weird characters like =20 .. whats going on? Is it an ecoding issue? How do I fix it? ...

How do you work in team?

I always designed/developed/released a software or web project myself/independent activity using java/vb.net and php (intermediate level of experience). But recently i have to work in a company with team of 5+ using Zend or Cakephp. Q. My question is how do you work using php frameworks in team and all those SVN staffs? 10 ppls will m...

Best possible PHP error class

I am looking for some coding ideas on the following task I am trying to achive. I have a list of Error Numbers, Description, and User Friendly Description in a document. Ex: Error Number, Description, User Friendly Description ----------------------------------------------------- 1, Internal Error, "An Internal Error has occurred. Ple...

What is an alternitive for using action(); or forward(); in ZF for pulling out different controller/actions in the layout?

Basically in order to have a profile Block u need - let's say profile controller, PhotoController, may be dashboard to show at the same page at the same time and to reach this in the zend framework is sometimes done through helper action() or forward, are ther better options? ...

Zend_Db Enum Values [Closed]

I find this solution $metadata = $result->getTable()->info('metadata'); echo $metadata['Continent']['DATA_TYPE']; Hi, I want to get enum values in Zend_Db. My Code: $select = $this->select(); $result = $select->fetchAll(); print_r($result->getTable()); Output: Example Object ( [_name] => country [query] => Zend_Db_Table_Se...

zend_navigation and modules

Hi, I am developing an application at the moment with zend and I have seperated the app into modules. The default module is the main site where unlogged in users access and have free reign to look around. When you log in, depending on the user type you either go to module A or module B, which is controlled by simple ACLs. If you ha...

Changing the Access Denied Message in Magento

How can I change the "Access Denied" page/copy that is displayed in the magento admin when you try to do things outside of your reach? I'd like to change the copy a bit. Any ideas? ...

how do I set the channel image in an RSS feed created with Zend_Feed_Writer ?

I can't find any setImage method. Using Zend Framework 1.10.2 (1.10.3 was released today, but I didn't see any mention of Zend_Feed_Writer at all in the changelog). ...

Add some html to Zend Forms

Hello everyone, Im looking for a simple bit of code that will let me add the following html into my zend form: <div id="wmd-button-bar" class="wmd-panel"></div> Thats it, it needs to be above my 'method' element in the form but thats it. For such a simple action I cant find any methods that don't involve me learning rocket science (i....

Display a tree dijit using zend framework

I am trying to display a tree of categories and subcategories by using dijits with zend framework. Haven't been able to find a good example. This is what I've got: Basically I got the following code as my action: class SubcategoriesController extends Zend_Controller_Action{ ..... public function loadtreeAction() { Zend_Dojo::enab...

Zend_Navigation failing to load

Hi, Following on from my earlier question, I am still having issues with loading the xml file into Zend_Navigation. I am now getting the following error message: <b>Fatal error</b>: Uncaught exception 'Zend_Navigation_Exception' with message 'Invalid argument: Unable to determine class to instantiate' in C:\www\mysite\development\w...

Problem htaccess and Zend

Hello, I have a server with php4 and pho5 support. But i need to user this one to say server it must be parsed like a php5 file AddType x-mapp-php5 .php .php5 .htm .html But now, my Zend Project have no access to the controllers... public/index/search -> 404 Not found On my local Server it works perfectly.. someone know...

Add Zend_Navigation to the View with old legacy bootstrap

Hi, I've been struggling with Zend_Navigation all weekend, and now I have another problem, which I believe has been the cause of a lot of my issues. I am trying to add Zend_Navigation to a legacy 1.7.6 Zend Framework application, i've updated the Zend Library to 1.9.0 and updated the bootstrap to allow this library update. The problem...