zend-framework

Best Zend Framework architecture for large reporting site?

I have a site of about 60 tabular report pages. Want to convert this to Zend. The report has two states: empty report and filled in with data report. Each report has its own set of input boxes and select drop downs to narrow down searches. You click on submit and it retrieves the data. Thats all each page does. Do I create 60 controller...

zend navigation using database

hello all how we could create a container for Zend_Navigation instead of xml file use of database table? thanks ...

Is the Zend_Db_Table_Abstract->insert() function safe?

I am using the insert() function from Zend_Db_Table_Abstract. The data being inserted is user input, so naturally I am curious if ZF does the data cleansing for me, or if I should do it myself before I call the insert() function. ...

PHP / Zend custom date input formats

Hi, I'm creating a library component for other developers on my team using PHP and Zend. This component needs to be able to take as input a date (string) and another string telling it the format of that date. Looking through the Zend documentation and examples, I thought I found the solution - $dateObject = Zend_Date('13.04.2006', ar...

Generate PHP Documentation from NetBeans 6.8 project

All, Is there a way to generate PHPDoc documentation for a PHP project in Netbeans 6.8? Thanks ...

When should use doctrine ORM and when zend-db-table?

In terms of project scale, doctrine vs zend-db-table speed and performance, when should I use doctrine inside Zend project, and when zend-db-table? ...

What do two colons mean in PHP?

I don't know what its doing when we have this situation Foo::Bar It looks like a path ...

page not show after issuing zf command

hello guys, just simple question, recently i have setup a web server to build project using zend framework, after setup and see those welcome page saying that you are creating websites powered by zendframework, then i try issuing command, $ zf create controller alert i get the message that saying that i've successfully create control...

PHPUnit with Zend Framework

Hi, i have studied some examples for PHPUnit with Zend Framework, but there is one part iam not understanding. In the most examples, the Application Bootstrap runs from some kind of baseClass inside the setUp() Method. Why not in __construct()? Is there any good reason? Example iam talking about ...

zend framework forum module ?

Are there any good Forum modules? If not I guess I'll have to write some kinda ghetto script to link in another solution. ...

PHP ZF: I can't debug my IndexController.php actions code

Hi I'm new to php and I'm using xampp, eclipse pdt, xdebug. I've set xdebug so that I can debug my site on apache but when I click 'debug as web page' in the eclipse ide only the breakpoint in the public/index.php and in the views get hit. If I put a breakpoin here public function indexAction() { // action body $this->view->s ...

Logging in MVC (Zend Framework)

Is there a best-practice when it comes to where to put the logging functionality in an MVC application, for example a Zend Framework application (Zend_Log)? Should I put the logging in the controller or in the model? Or in both? If in both, should they have the same logger or a separate one? ...

How do I select a bunch of random rows from a table?

I have a database of filenames that relate many-to-one to a set of subjects. How can I randomly select one filename from the several in the database that relate to a given subject? I'm working with Zend Framework, so if there is a ZF function that would help please mention it. ...

Redirect all traffic but "beta" sub-domain to Splash screen (mod_rewrite)

Hi, I'd like to redirect all my traffic to my root domain, the root domain being a Splash screen. I'd like to do this ONLY when the %{HTTP_HOST} is not beta.example.(com|es|fr). So I've tried the following in my .htaccess file, with no luck... (infinite loop... I guess it's not getting the REQUEST_URI condition, but cannot figure out w...

Convert REQUEST_URI to route (Zend Framework)

Is there a built in method in Zend Framework to convert a REQUEST_URI to its route name? I want to know if ZF dispatches my request to a route, what route is taken for that specific request. For example, this is my routes.ini: routes.about.route = ":lang/about-my-company" routes.about.defaults.controller = index routes.about.defaults....

What is method signature in SOAP header?

I want to imitate the following SOAP request using Zend Framework but I don't understand the '__MethodSignature' part in header. Could someone please explain this? <SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encodi...

Zend_Soap_AutoDiscover and PHP namespaces

I'm using namespaces in PHP for the first time in an application that provides a web service via Zend_Soap, and I'm running into a problem with the autodiscover feature. I have code something like this: $autodiscoverObj = new Zend_Soap_AutoDiscover(); $autodiscoverObj->setClass('My\\Namespace\\MyClass'); And I'm getting errors like th...

Best Way to Deploy Zend Web Application

I've read a lot about deploying applications here, but haven't found a suitable answer to our needs yet. We have a large web application built with the zend framework that we want to deploy to a remote server. We want to be able to easily and safely deploy a new version of our application to our production server. What needs to be done...

magento, making a grouped product show on sale based on product children prices

Hi, Question regarding Magento and sale items. So I have to use grouped items to link multiple items which are the same style but different colors, these are the items I have showing on my search results/category pages. - I am trying to figure out how I can make the master sku, show as on sale, when the children items are marked on sale...

how to properly display utf encoded characters on my utf-8 encoded page?

Hi guys I'm retrieving emails and some of my emails have utf encoded text. However even though my page is encoded as utf 8 - in some places when I try to out put utf text I get funny characters like : =?utf-8?B?Rlc6INqp24zYpyDYotm+INin2LMg2YXYs9qp2LHYp9uB2bkg2qnbjCDZhtmC?= =?utf-8?B?2YQg2qnYsdiz2qnYqtuSINuB24zaug==?= Whereas in othe...