Hi,
To begin: i'm not an expert in Zend Framework and doing something terrible wrong. I'm sure of that. I think there's something wrong with my design patterns.
As an example:
I'm building access management with Zend_ACL (Access Control List)
There are three tables in the database:
roles
resources
permissions
the permissions table ha...
Hi there,
I've got an issue with inserting/reading utf8 content from a db. All verifications I'm doing seem to point to the fact that the content in my DB should be utf8 encoded, however it seems to be latin encoded. The data are initially imported from a PHP script from the CLI.
Configuration:
Zend Framework Version: 1.10.5
mysql-ser...
So suppose I have the url:
http://url?x=1&y=2
Then I can just get all the get parameters via PHP using the $_GET variable
so print_r($_GET) will echo all the get variables
Now suppose I'm using zend framework and i'm trying to take advantage of the /var/value/var/value feature:
so now my url is
http://url/controller/action/x/1...
The Zend standard for action names is camelCase, yet if I create an action with camel casing, the request fails because it tries to call the method (action) without the camel casing!
Example:
I have an action named "changeEmail" in module "abc". The method is "changeEmailAction" (created by Zend Tool). If I try to access /abc/changeE...
Hi guys,
I downloaded the zend framework 1.10 full. Unzipped, rename this folder to zf.
I am going to use zend framework as independent, will only call loader and include libraries when needed.
I put the unzipped zend framework into http://localhost/r/zf
Then from r/test2.php I put these code to do test call, but it fail.
Anything I ...
i have next folder structure zf version 1.10
/application
/config
application.ini
/Forms
/Layouts
/modules
/default
/controllers
/models
manufactur.php
/view
bootstrap.php
bootrstrap.php
apllication.ini have next content
includePaths.library = APPLICATION_PATH "/../library"
bootstrap.path = APPLI...
I am learning AJAX in zend framework step by step. I use this question as first step and accepted answer in this question is working for me. Now I want to load more than one DIVs using JSON. Here is my plan.
IndexController.php:
class IndexController extends Zend_Controller_Action {
public function indexAction() { }
public fu...
Hello,
I want to make a kind of alias for my modules:
Is there a way to make
http://www.example.com/news point to
/modules/news/controller/news/->action
index.
And if i go to
http://www.example.com/news/show it
automaticly points to
/modules/news/controller/news/ ->
action show
Or do I have to make a route for every single action...
I have weird problem with zend framework basics. I have simple action in IndexController:
public function updateusersAction() {
$this->_helper->viewRenderer->setNoRender(true);
$this->_helper->layout->disableLayout();
new Application_Model_Users();
}
And a model I want to create is defined in application/models/Users.php ...
Hello everyone,
Lately I had to reinstall my development site on my ubuntu machine since my system crashed after an os update. 4 days later my site is still not running as it should.
Whenever i do an action which has in it an action on a database, it stops working.
For example when Registring a new user, i get the following error:
[...
I am trying to strip all html tags except <p>,<br>,<strong>,<b> from input data from the following:
public function init()
{
parent::init();
$this->fields = array(
'name' => 'Name',
'age' => 'Age',
'profile' => 'Profile',
);
$this->mdata = array();
$this->verify = true;
}
Anyone knows h...
Hello,
I have an application based on Zend Framework.
I would like to display a SWF document which has multiple dependent sub-files below two subfolders. These files are images and XML data to make search in te SWF document possible.
A requirement is that I need to limit access to the SWF document.
Now I dont know of any way that I ca...
Hello,
I have a sidebar as a helper.
It outputs the helper as a partial.
However, I don't want to add a load to my server so I'd like that partial to use the helper paths. Is that possible? Heres my helper.
class Zend_View_Helper_Sidebar extends Zend_View_Helper_Partial {
public function sidebar() {
$module = Z...
Hello,
I'm trying to find a way in Zend_Search_Lucene to pull off the following scenario:
Let's say we have a user and her name is Aïcha (note the special character). If I'm searching the index for Aicha (without the special derivative of i), I'd like for Aïcha to be returned in the results.
Is there something special I need to do wh...
i am using Zend_Acl, PHP and is wondering how shld ACLs be implemented.
shld every page be a resource and i always query the acl to see if a user is authorized? i guess i must use this if i want to use a controller plugin (can be setup to run on every request) to check if a user is allowed?
or do i just put the query code where i nee...
Hi,
I am using reCAPTCHA on this page but when I submit I get following error in my apache log:
This started happening after I set ssl to true (i have to use it, becouse website is SSL)
[Wed Jul 28 18:47:54 2010] [error] [client X.X.31.80] PHP Fatal error: Uncaught exception 'Zend_Http_Client_Adapter_Exception' with message 'Unable to...
I have been using Dojo hosted on Google's CDN. I just downloaded the development version so I can do some debugging. When using dojo stored locally, Firebug reports several syntax errors. They all look like this:
SyntaxError: syntax error
(no script)(""en-us"")bootstrap.js (line 601)
(no script)(""dojo.cldr"", ""number"")bootstrap.js...
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,
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...
hi,
i am planning to start develop a website that uses webservices , i am thinking using zend framework.
as i am pretty much new for zend , i don't know much about its tools and configuration
i have eclipse installed in my computer , now is there something like zend plug in that i can download and install in eclipse.
As i have down...