Hi,
I have a search module. It has one form within it that produces the search field, I am using a viewScript that is stored within views/scripts/forms to render the form.
I want this form to appear on ever screen so I have written a ViewHelper that creates the from and returns it. This works fine when I am within the search module bu...
Zend framework i have directory tree as following with robots.txt file, but when i browse www.site.com/robots.txt , it says page not found error. How do i tell ZF that robots.txt is allowed?
A. Directory tree:
wwwsite/application
wwwsite/library
wwwsite/ZendFramework-1.10.7.tar.gz
wwwsite/public
.
|--- captcha
|
|--- css
|--- js
|---...
hi all,
i am using zend_translate class (ini adaptor) for my multi language site.
but when i use some keywords in my language files it produce error. for example (yes, no keywords).
sample language file entries which produce error:
yes=native language yes
no=native language no
how do i solve this problem?
thx in advance.
...
Hello friends,
I´m trying to use the zend mime validator and I´m doing this:
$mime = array('image/jpeg','image/gif');
$valid = new Zend_Validate_File_MimeType($mime);
if ($valid->isValid($_FILES['file']['name']){
// do some stuff
}
But it not working, the documentation is weak, how can I use it??! THanks and best regard´s!
...
Can someone please suggest me from where to download zend framework and the codes for sending mails using gmail smtp and zend in php?? please...
...
Hi,
have such zend query:
$select = $this->_table
->select()
->where('title LIKE ?', '%'.$searchWord.'%')
->where('description LIKE ?', '%'.$searchWord.'%')
->where('verified=1 AND activated=1');
In other words it looks like:
SELECT `some_table`.* FROM `some_table` WHERE ...
I am making a PHP image uploader using the Zend Framework which will upload images to a public directory for people to be able to freely access.
I have so far implemented these measures for security:
- File size validation
- Extension validation
- MimeType validation
- Upon successful validation file is renamed with a image extension in...
Hi
I am using the Zend Framework and have setup a normal Zend Form, what I want to try to achieve is to have a button (with some javascript) that says add more and it adds another drop down menu same as the one setup in the zend form (a clone of it).
basically when the button is clicked it adds another select box like so:
<select na...
I use Zend Framework with ZfDebug (http://code.google.com/p/zfdebug/)
and a plugin Base64 Encode/Decode. (http://plugins.jquery.com/project/base64)
the problem is when i try to make:
$(document).ready(function(){
$('#submit').click(function(e){
e.preventDefault();
data = $.base64Encode("something");
alert(data);
});
});
a...
I am trying to use the Zend Framework and I am having trouble figuring out how to pass information from the controller to the view.
It looks like I should be creating an instance of Zend_View, but when I call the render function I can't seem to get it to load the correct view file (for example, in indexAction, I can't get it to load the...
hi,
couldn't find my solution. hope you can help.
I want to have a url (like twitter) www.domain.com/USERNAME
what happen it goes to the error controller. i want it to go to a different controller in these cases. Some kind of default controller if none found.
Appreciated a small example or any info.
Thanks,
...
I would like to sent request to our clients server, but they require to send XML as application/xml
I was trying to use setEnc() method but I've got error on unsupported content type, so then
I've tried to se setRawData() as they suggested:
self::getHttpClient()->setRawData($XML, 'application/xml');
$this->restPost($this->getPath());...
Hi all,
How do I extend the Zend_Controller_Request_Http, and let the application know of My_Controller_Request_Http ??
Solution
This is how i got it working following Gordons pointers.
Firts save the following file your library: My/Controller/Request/Http.php
<?php
class My_Controller_Request_Http extends Zend_Controller_Request_H...
Hi,
How can i use findManyToManyRowset API while join to another table for info table of $matchTable?
I can't find any way to pass a select object with desire join configuration to findManyToManyRowset API!
Use case Example:
Users Table | Departments Table | Users_Department Table | User_Profiles
I want to use findManyToManyRowset m...
Hi,
On any given Zend Framework project I can be working in 2 or 3 locations - my work PC, home PC or my MacBook. My source code is always in SVN and I usually work on a development server before pushing completed work to the production server. In this kind of environment I've never been too sure where exactly I should work with Zend_To...
Hi
I have an Acl plug-in which extends Zend_Controller_Plugin_Abstract, this plug-in handles all my Acl code.
I want to thrown an Exception in this plug-in, e.g. an Exception_Unauthorised and then handle this in my ErrorController, this way I can use the same Acl plug-in for different applications and use the ErrorController to handle ...
We all agree that using different exception types for different tasks is the way to go.
But then, we end up with creating ghost files like this:
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the w...
I'm having a bit of a collision with the naming of the Zend_Session_Namespace parameter.
What is the convention for the namespace other than "default"? Lets say i want to use it in the frontcontroller, should i name it Zend_Session_Namespace('Zend_Controller'); because the Zend_Auth convention is Zend_Session_Namespace('Zend_Auth');
...
So, running the newest ubuntu server and im having problems getting the view to work correctly in my application.
It seems that every "$this->view->variable" isnt working. My pages are all white with no html (i know it works on other servers as i have the same code running in a lot of places).
...
Hello guys,
How do i get the already loaded options in the controller file in a zend framework installation without creating a new Zend_Config([ ** ]); instance.
...