Hello,
The traditional approach to manage access to controller actions is to create resource (string identifier) for each /module/controller/action, then check the ACL in controller plugin.
Lately I discovered very handy Zend_Acl_Resource_Interface, which can be used to control access to any class implementing it. This way, any Model, ...
Hi,
I develop a lot of Zend Framework based applications with reusable modules (e.g. mailing module, cms module etc.)
Each project has it's own centralized repository and uses some of the common modules. Each time I update the module in one of the projects, it is very likely that I need to update the module in the other projects too.
...
Some other frameworks have a link helper like output_link('anchor', 'destination'); to replace the need to type <a href=""></a> into the template. Does Zend have something similar? and do I have to declare the link in the action first before I can use it in the viewer?
...
Im making a Zend Framework MVC application using the standard Zend MVC structure and I wanted to know where I should be putting my client-side ExtJS javascript, not the library but my js files.
...
I am trying to create an exact mirror of a Magento production server on my local server for further development, but I have run into a few issues.
On the production server, our Magento is configured to run without displaying the index.php, but after attempting a migration to my local server, the index.php is required to access any links...
I'm creating a partial manually by creating a partials folder in layouts/scripts/partials and then creating the mypartial.phtml. Is there a command to do this quicker, like maybe?
zf create partial
I don't think this exists but is there something similar or anything quicker than this manual way
...
I'm currently using Zend Framework in conjunction with PHPUnit to conduct unit testing on an application. When Hudson executes the PHPUnit shell command, the maximum PHP memory limit is reached sometime during code coverage generation. I currently have a total of 41 tests with 334 assertions.
I have successfully eliminated this error ...
Hi all
I'm using Zf 1.10 on a project, and have been using Zend_Paginator together with Zend_DbTable queries quite successfully until this bit.
The query requires a DISTINCT keyword to remove duplicate rows created by a join, but when I add it, the paginator incorrectly displays navigation for two pages of results when there is only in...
I have a server which consists of several Zend Framework application.
I want to know if it is a good idea to upload Zend Library on the server and share it among all the applications instead of uploading it per application.
Does it influence speed if for example multiple applications request a library simultaneously or not.
What is it...
Hi,
I'm looking to implement a cache within Zend_Db, there isn't any native method to provide a cache to Zend_Db, so I'm wondering where should I do it.
I took a look to the Zend_Db_Table_Abstract (I'm extending it in a custom App_Model_DbTable_Abstract) and I found a protected method _fetch() which directly take a Zend_Db_Table_Select...
I usually instantiate my forms in an action and that's where I process them when they're submitted. I then pass them on to the view and output them there as usual.
This form (a search box) is different because it's not part of a single page. It has to be visible everywhere. I've made it part of the template layout.phtml and instantiated...
Hey guys need some help.
With your help I figured out how to upload files, but now I need to learn how to export them from my google docs directory to my web site.
All I know is the name of file I want to download. Can you help me with the class?...
...
This method is published as offical example
->where("price < $minimumPrice OR price > $maximumPrice")
is such method safe?
want to write it as
->where("price < ? OR price > ?", $minimumPrice, $maximumPrice)
are there any poissibility?
and I can't split it into 2 where statements because plan to write query
->where("1 OR 2")
->where(...
Hi,
Does Zend_Registry live until next user request?
I put this code in the end of index.php file in zend project:(The code inside existing zend website)
Trial code:
//end of index.php file
Bootstrap::run();
//trial for find out the life of Zend_Registry.
$registry = Zend_Registry::getInstance();
if (!isset($regi...
Hi there,
I would like to use ZendX_Jquery autocomplete in a partial, which is in my layout.
How can I do that :
My layout :
<div class="prefix_11 grid_5" id="header_search_engine">
<?php echo $this->partial("/common/_search_engine.phtml"); ?>
</div>
An action :
public function autocompleteAction($search='') {
$this->view->...
I am trying to develop websites using Zend Framework. But I came to a strange problem, the public folder is not showing up. I was suppose to change the apache's configuration to redirect http://localhost/ to http://localhost/public, but there are many projects inside the WWW folder, which has to be accesed.
I can enable the mod_rewrite ...
I know that default mail transport could be set in bootstrap file but how to do it in app.ini file? Basically I want to use smtp transport on local windows system and regular mail transport on production server.
Edit: I'm already using these settings in app.ini .
Thanks.
...
I have recently found the power of setting variables to a block in the _toHtml() method, using the assign method. My question is, when is it good to do this and when is it not? I am creating a new module and it seems to me it is much nice to just assign all the variables to the block and just reference those variables in the view file ra...
Say I have a random zend_db_select object.
How can I perform a count on that object, so I know the amount of items that meet the query.
I tried the following:
$data->TotalRecords = $select->columns(new Zend_Db_Expr('COUNT(*)'))->query()->fetch();
But this gives me the following error:
Message: No table has been specifiedfor the ...
I have the VPS server and i need to install the Zend Framework for Google Client library.
Now i am confused that whether i can install zend for particular site or i need to install on VPS as root user and it will be available for all websites on that Linux server.
Please help
...