I have the following element in my form:
$attachment = new Zend_Form_Element_File('attachment');
$attachment->setLabel('Attach File (2MB Max)');
$attachment->addValidator('Count', false, 1);
$attachment->addValidator('Size', false, 2048000);
If I print the entire form in the view, this field works fine. However I have some very custom...
The error I'm trying to get rid of is there is an additional letter "t" outputted before the rest of the HTML in one of my Zend Framework applications. The "t" is there only in a single action so I'm certain the problem is somewhere there.
For illustration HTML markup of the buggy controller action starts like this:
t<!DOCTYPE html PUB...
I was wondering if anyone knew how to use some components of the Zend Framework without having to actually use the framework. For example, I would like to use their Zend_Validate components, but don't want the overhead of the framework as it's a small one-page script.
Can this be easily done, and if so, are there guides/tutorials on ho...
Hi,
I'm working on a project that requires a fair bit of inserting/updating rows in MySQL tables using Zend_Form. I'm trying to simplify the insert/update procedure by extending Zend_Db, and it seems a lot of this has been done with Zend_Db_Table and Zend_Db_Table_Row.
However, I can't understand how to link them together in the most ...
Hello. I'm trying to use a select object to filter the results of a many to many rowset. This call works great:
$articles = $this->model->findArticlesViaArticlesUsers();
This however does not:
$articles = new Default_Model_Articles();
$articleSelect = $articles->select();
$articleSelect->where("status = 'published'")
->...
i need to get the current locale direction in zend_locale
either rtl or ltr
...
Hi there,
I have the db and my tables look like this:
What I want to do is to get all models where manufacturers name column starts with A.
Which means that that simple part of query should be like $manufacturers->fetchAll("name LIKE '$letter%'");
I am trying to accomplish this with ZF relations but it ain't going, so any kind of he...
I'm relatively new to PHP and have been writing a project using what I believe is a fairly basic file architecture - all files and sub-folders within one main site folder accessed separately. Within the project, I've been using the Zend Framework as more of a library than an actual framework. I'm happy with Zend and using it like this ma...
Possible Duplicates:
What PHP framework would you choose for a new application and why?
Whats your no framework PHP framework?
I am thinking to use a MVC framework in php. I used codeigniter before for some of my project.
Codigniter is light weighted compared to other framework. But it has less functionality compared to the ot...
Anybody here can point me on the right direction on using firebug for logging on Zend 1.9.x ?
I am using this : (from Zend Framework Manual page)
// Place this in your bootstrap file before dispatching your front controller
$writer = new Zend_Log_Writer_Firebug();
$logger = new Zend_Log($writer);
// Use this in your model, view and co...
I'm aware of default directory structure for Zend Framework modular applications that is in the manual.
/application
/controllers
/modules
/admin
/controllers
/views
/views
/configs
/www
index.php
But I'm wondering why should I do it this way. It really sux to have the default module in /application and othe...
Hi I'm currently working on some php - zend framework project on my osx - apache. The problem is when ever I want to force the download of some files using my php application the downloaded files is corrupted and the size of the file is 5.4 kb! I've tried so many changes in my code and even used some classes to force the download but sti...
I'm using Zend FW 1.9.2, want to disable the default routes and supply my own. I really dislike the default /:controller/:action routing.
The idea is to inject routes at init, and when the request cannot be routed to one of the injected routes it should be forwarded to the error controller. (by using the defaultly registere Zend_Control...
Hello all
I am starting a new project with my new employer. I am used to developing applications in Ruby on Rails. The team I am working with are more orientated to PHP and have decided they would like to use Zend framework for our new project. I am already reasonably familiar with PHP but not Zend.
I am looking for any resources that ...
I have a Form element:
$Form=new Zend_Form;
$Form->setAction($this->view->url(array('controller'=>'auth','action'=>'create'),null,true))
->setMethod('post')
->setAttrib('id','auth-form')
->removeAttrib('enctype');
As can be seen I use the removeAttrib method to remove the default enctype. But, when I...
I'm about to start working on a new project at a somewhat new job, and I've run into a bit of a problem. They're not big fans of MVC.
The reason why this bugs me is that they claim they're currently using the Zend Framework when they're really not. They're barely using the DB model classes, and that's about it. No MVC, no extending of Z...
Just curious as to how people are tackling multi tenancy using Zend (particularly directory structure, database, modularity, per tenant views, etc.). I haven't found too much myself, anyone?
...
Hi
I'm having issues with trying to use Zend_Form_SubForm and sessions. My controller is in essance acting a wizard showing different subforms depending on the stage of the wizard. Using the example I am planning on storing the forms in a session namespace.
My controller looks like this.
include 'mylib/Form/addTaskWizardForm.php';
...
Hey there,
I've got a Form where the user can check a checkbox "create new address" and can then fill out the fields for this new address in the same form.
Now I want to validate the fields of this new address ONLY if the checkbox has been checked. Otherwise, they should be ignored.
How can I do that using Zend_Form with Zend_Validate...
Hai
I want to create a project in Zend framework, but I don't know any idea about how to include this zend framework in to wamp server.
Any one please helps me...?
Thanks in advance..
...