Hello everyone!
I want to translate measurements that Zend_Measure returns.
Something like:
10 hours (en_US)
in my language
10 часа (bg - Bulgarian)
I found out that there is an archive with translations that i need - Zend/Locale/Data
There are a bunch of .xml files, many of them have translations for measurements.
My idea is to us...
i wonder if i shld use an ACL rule (PHP/Zend_Acl in my case) for something as small as a edit post page? i guess the criteria to allow users to edit a post will be
owner of post
editors/moderators/admin
the question will be if yes (to use acl), how can i define it (i am using Zend_Acl but if u give me some code example, i might be a...
Does anyone know how to ensure that files and directories that exist do NOT get routed to .NET MVC if they exist in the root directory?
With Zend Framework, this is done in the .htaccess like so:
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
How is this accomplished...
I am using the Zend_OpenId_Consumer to provide OpenID access, the login is working fine, but when I call verify() I am recieving the error
`Wrong openid.return_to 'http://[host]/user/openid' != 'http://[host]/user/openid?[OpenIdResponse]
The issue as far as I can see is that the verify method is comparing the URL without the query pa...
Avoiding Fat Controller
So I'm using Zend Framework and I have a question involving preventing fat controllers with one of my actions. Basically I am normalizing a CSV file into my database.
This means that I have to get the feed and then use my model.
The feed grabbing is just there to show how it works, but that is now an Action Hel...
Hi
Am trying to update my record via the PUT method
$client = new Zend_Http_Client();
$client->setMethod(Zend_Http_Client::PUT);
$client->setUri('http://example.com/api/type/');
$client->setParameterPost(array(
'useremail' => '*****@****.***',
'apikey' => 'secretkey',
'expenseid' => '4',
'description...
Hi,
Is there a way to determe what version of zend framework is installed on a server/included in the app? The reason I'm asking is that I'm on a shared host and I would like to use a different version than that supplied by the host and I would like to be certain that the version I'm supplying is the one being utilized by my website.
...
Hi folks
I've built a ZF app using 1.10 for deployment on RHEL server in a corporate client, which has PHP 5.1.6. It won't run.
I googled and now realise it's the version of PHP. I didn't realise ZF had a minimum requirement for PHP 5.2.4, and calls to HeadLink seem to be causing fatal error "Call to undefined method Zend_View_Helper_P...
i am wondering how can i have simple versioning, say i want to be able to undo past edits (just up to 3 will do) to a post. maybe because the app allows other user to edit a post. but i may want the owner to restore the post for example.
do i just store the full post in another field?
...
I want a basic:
<input type="text" />
And I would like the default value to clear when the user puts in a value (kinda like this). It would be ideal if the default value returned onBlur.
I don't want the default value to be submitted if they leave it and click submit.
I'm generating the form using Zend, and imagine my solution can f...
Ive got some kind of a problem here. When I try this function, it return this error:
Catchable fatal error: Argument 1 passed to Zend_Form::populate() must be an array, object given, called in [..]
When I used print_r() to find the values of the 1st argument, the output was this:
Zend_Db_Table_Row Object ( [_data:protected] => Array ...
Hi guys!
Im trying to detect wich controller Im am using or what controller Im on and then change my menu accordingly to the page Im on.
( Make a selection in the menu so the user can see were he is on the page! )
I really dont know what to write to check what its using...
<? if($this->url(array("controller" => "index", "action" => ...
i am thinking i may want users to be able to upload static GIFs but not animated ones. say for avatar's as they may look ... unprofessional and distracting. is there a way in PHP or Zend Framework that i can validate a file upload that way?
...
i am developing a test/learning app. i wonder how can i test if an image from another site/domain ... i broke up my validation logic to the following
exists
is an image
is of valid type
is of a specific dimensions
is below a max size - say i want the image to load quickly. tho the hosting resource is not mine.
...
i wrote a small plugin, so i will be able to get the name of the controller in each view.
but idk how to "pass" a parameter to the view (do sumth like $this->view->foo =...;).
class Zend_Extension_Controller_Plugin_GetControllerName extends Zend_Controller_Plugin_Abstract
{
public function __construct()
{
}
public f...
I'm working on a web application using Zend that we'd like to ship with some default forms and views. We'd like the client to be able to create custom forms and/or views that could be placed in another directory that could override the default forms. IE, Zend would check to see if any custom forms (or views) existed, and if so, load thos...
Hello,
I am using Zend Debugger to debug my php application built based on the Zend Framework.
Currently I am running the 1.10.6 version.
When debugging my application i Get this error:
Compile Error: /var/www/Zend/ZendFramework-1.10.6/library/Zend/Loader/Autoloader.php line 36 - Cannot redeclare class Zend_Loader_Autoloader
Is this...
Hello,
Without sticking /1 onto a url is there away to change Zend_Paginator to approach a URL? Currently the user goes to /aaron/studio. Then the user should click through the paging and start accessing URLS such as : /aaron/studio/2
I have this rule:
$router->addRoute('studios/page', new Zend_Controller_Router_Route(':id/studio/:p...
I am migrating an old project to Zend Framework. I have a drop down list that changes filter context. In the old project the onClick event of the <select> list ran a function that made a jQuery ajax call to a php script that essentially updated the $_SESSION variable and then the JavaScript reloaded the page when the response came back. ...
I have a Controller that I want to use for ajax scripts to call and set session variables, get information, etc. How do I set it so that that particular controller doesn't use the default layout (specifically NO layout) so that it can send XML/JSON messages back and forth? I have an inkling I should use a custom route but I do not know m...