I try to use the next validator of ZF:
$isImageValidator = new Zend_Validate_File_IsImage(array('headerCheck' => true));
(I don'n want to use fileInfo or mimeMagic)
But even when image is chosen, validator returns next:
File 'image.png' is no image, 'application/octet-stream' detected
(When i look through the $_FILES global array i...
I'm on windows 7 with wamp and I don't know where to put the zend framework, as I know I need to change the path of the include_path but I don't know what should that be to work.
I get this error when I open the test files or anything withing the zend files:
Warning: require_once(PHPUnit/Framework.php)
[function.require-once]: ...
Hi
i have the following code snippet, in an appliation working with Zend Framework. I know what Zend Date does.. thats not the problem.
But the coder simply calls "$date" , and i dont know if this does something?
$date = new Zend_Date(time());
$date->addDay(1);
$date;
// save date, or do something ...
Hi all,
Trying to set up a form partly using subforms that i also use elsewhere.
I have setup the decorators to utilize UL-LI notation instead of the regular DtDd wrapper.
Structure is something like this.
RegisterForm
+ Element, firstname
+ Element, lastname
+ SubForm, NoScriptForm [new Olo_AddressApartmentForm()]
...
I am new to Zend Framework, try to configure on my local machine.
Geting Fatal error: Uncaught exception 'Zend_Db_Adapter_Exception' with message 'The PDO extension is required for this adapter but the extension is not loaded' in C:\Inetpub\ZendFramework-1.10.6\library\Zend\Db\Adapter\Pdo\Abstract.php on line 103
Could anybody please h...
i wonder why some errors can be rendered in the error controller but some are just output inline like a normal php script would. most of the time, with 'inline' errors, the whole page is blank apart from the error
...
i notice that when i run a zend framework app from a server, there are alot of side effects. main issue is where i use urls like
/auth/login
i need to use
$this->baseUrl('/auth/login');
thats simple to fix. but when i use
$request->getRequestUri()
for use in redirects. eg after login, i want to redirect the user back to the pr...
I am new to Zend Framework, trying to config project on my local for further changes. I succesfully installed and configured Zend Framework. But CSS is not working. Could anybody help me please?
...
I have been using svn:externals to bring the Zend Framework files into my project. This is what my svn:externals looks like:
-r 22731 http://framework.zend.com/svn/framework/standard/trunk/library/Zend/ Zend
-r 22731 http://framework.zend.com/svn/framework/extras/trunk/library/ZendX/ ZendX
I have it tied to revision 22731 which is th...
Hello, can't figure out, why does key lang disappears between language plugin and matched custom route. I'm calling registry from inside model, which is requested inside custome route.
http://pastie.org/1088574
Message: No entry is registered for key 'lang'
Stack trace:
#0 C:\xampp\xampp\htdocs\chat\application\models\Getcategories.p...
Hi,
I'm writing some unit test with phpUnit to test a Zend Framework application and I've got some issues with testing an exception in the changePassword function. The test doesn't fail, but in the coverage tool which generates html the "throw new Exception($tr->translate('userOldPasswordIncorrect'));" line isn't tested.
public functio...
Hi Zend framework guys,
I have a question for you :
There is production , development , testing etc that we can set .
I assume we have 3 different db for these .
But I have a doubt how do we access the url for testers and developers ?
Do we need to pass as a GET value and set whether its development , or for testing ? Or is there ...
Hi all,
I think that I am having a slow evening but I have a question regarding calling a URL as part of a controller call in a Zend Framework application.
I'm trying integrate an affiliate tracking application into my code, and the only way to register a commission is to call a url and pass the variables as either a POST or GET reques...
I followed tutorial on http://netbeans.org/kb/docs/php/zend-framework-screencast.html, but I am getting not found error whenever I try to run the project.
When I check the box "Copy files from Sources Folder to another location" while creating project and enter path to Apache2/htdocs, it works fine. I am just curious why I need to do th...
I'm working with Flash Builder 4 and I'm planning to work with the Zend Framework for the PHP. Anyone tried to get an environnement for developping with Flash Builder 4 and Zend Studio 7 ?
If you tried, let me know how you install it and give me feedback on this method of developping.
Thanks in advance.
...
Please See Correct Answer for solution to the requested question.
Hi,
Recently I have been searching for telephone validation in zend framework which I think is a missing component of their Validator framework. Therefore I created custom telephone validator which I would like to share with you.
Put code below in a file accessible by...
Hello,
I have this zend form element :
$form->getElement('my_element')->addMultiOptions(array('option1' => 'option1', 'option2' => 'option2', 'option3' => 'option3', 'option4' => 'option4'));
So I get :
( ) option 1
( ) option 2
( ) option 3
( ) option 4
Now let's say I want to add a input (type = text) right after option 3 .. s...
I have a list of products on my site. I draw it with jqGrid. Also I have a form, to create new product, or update existing one. Is there any way to set in jqGrid, that when I press 'edit' button in grid, it redirects me to page like
'mysite/product/edit/id/{id}'
Here is my grid script:
$(document).ready(function() {
$("#list"...
I have a new ZF 1.10 project (just default module - not multiple modules) and am having to prefix my models' class names with "Application_Model_" in order for them to be picked up from the application/models directory.
How can I take more control of this? For example, I wish to namespace the model classes myself - e.g. as "Blah_ClassN...
Hello,
I'm currently trying to improve my PHP by moving towards an MVC framework architecture. I've looked around a lot and have decided to go with the Zend Framework.
However all the tutorials I can find talk about version 1.8, the problem is I can only find version 1.1 on the Zend Framework site.
I'm probably missing some key concep...