Hello,
I there a way to make zend_cache treat front end view similar to smarty? I would like to reduce load times and page caching seems the best way todo this.
Also it would need something similar to {nocache}.
Okay so I now have: Bootstrap.php
protected function _initCache() {
$this->bootstrap('locale');
$locale = $thi...
I want to link to a plain html page from a zend_controller controlled page. I have no idea how to do this.I have tried with 'redirect(site/somedir/some.html)' but, of course, that doesn't work.
thank you
the html file is located in the public directory of the site = zf-site/public
...
I am using reccomended app. structure ( http://framework.zend.com/manual/1.10/en/project-structure.filesystem.html ) in Zend Framework but I cant get each module config working.
It just doesn't load modules/mymodule/configs/application.ini file into configuration.
...
There is a out of box resources in Zend Framework,
when configures in the ini file
resource.db.user ="xxxx"...
the bootstrap sets up db adapter, just curious does bootstrap sets db adapter into registry too, or not?
...
I am trying to use the Gcal API in PHP.
I am using the ZEND framework
function getAuthSubUrl($company)
{
$next = "http://$company.mysite.com";
$scope = 'http://www.google.com/calendar/feeds/';
$secure = false;
$session = true;
return (Zend_Gdata_AuthSub::getAuthSubTokenUri($next, $scope, $secure, $session));
}
$authSubUrl =...
Hi guys, I am new in this area of writing extension for PHP, however I need to create a wrapper class for C++ to PHP. I am currently using PHP 5.2.13. I read this article http://devzone.zend.com/article/4486-Wrapping-C-Classes-in-a-PHP-Extension, a tutorial on how I could proceed to wrap C++ class to communicate with PHP Zend however it ...
Hi guys I'm trying to integrate the tinymce plugin however I'm running into problems such that almost every feature which requires a plugin to be rendered i.e the add url popup or add image pop up - it opens an empty pop up window. Even if I try to open it inline I get the same blank popup window.. I noticed that whenever I click on lets...
Any idea on how best to add a message to flash messenger from the model?
As FlashMessenger is an action helper, this seems not to be possible, so the obvious solution is to create an internal message object in the model, and return that to the controller from where you can use addMessage(). But if you want to return something else as we...
I'm using Zend_Navigation and am trying to integrate it with Zend_Acl. Each page in the navigation has a privilege attribute. What I can't determine is how to define multiple privileges for a single page.
Use case: A page that is for managing users. I want to display that page (in navigation) if the current signed in user's role has ...
Hi,
I'm trying to make a dump of a MySQL table on the server and I'm trying to do this in Zend. I have a model/mapper/dbtable structure for all my connections to my tables and I'm adding the following code to the mappers:
public function dumpTable()
{
$db = $this->getDbTable()->getAdapter();
$name = $this->getDbTable()->info('na...
I have tried to embed a flash movie in a zend view using the htmlFlash helper.
In theory you only have to pass the movie path to the htmlFlash helper in a phtml view:
echo $this->htmlFlash('/path/to/myMovie.swf');
And the framework will generate the html code in the html page:
<object data="/path/to/flash.swf"
type=...
Normally it would be in such a structure:
../application/modules/somemodule/views/scripts/index/index.phtml
How I move it to:
../application/templates/somemodule/template1/views/......
../application/templates/somemodule/templateTWOOMG/.......
??
...
We built an app in Zend Framework and have not worked a lot in setting up error reporting and logging. Is there any way we could get some level or error reporting without too much change in the code? Is there a ErrorHandler plugin available?
The basic requirement is to log errors that happens within the controller, missing controllers, ...
Anyone know what this error means? after googling I found a bunch of sites that appear to have the same error? thanks
exception 'Zend_Controller_Action_Exception' with message 'Action "index" does not exist and was not trapped in __call()' in /usr/local/zend/apache2/htdocs/pintsy/lib/Zend/Controller/Action.php:485
Stack trace:
#...
hello all
i saw a example for login form same blow code
class Form_Login extends Zend_Form {
//put your code here
public function init($timeout=360){
$this->addElement('hash', 'token', array(
'timeout' => $timeout
));
$this->setName('Login');
$username = $this->createElement ( 'text'...
Is there some kind a engine for Json in the Zend framework, What I mean is some abstraction that all the Json (ajax) responces go through ?
in other words some class to controll all the Ajax calls?
...
Am am successfully parsing and sending json values from my client for my server side controller to receive and decode
$("#test2").click(function() {
$.ajax({
type: "POST",
url: "<?php echo $this->baseUrl() ?>/expensetypes/add",
data: JSON.stringify(wrapFormValues($('#expen...
Hi
I am using Zend_Framework's Zend_Controller_Action to build a facebook application. I followed the step by step of this blog for guide :
http://blog.madarco.net/91/build-a-facebook-application-with-zend-framework/
public function indexAction() {
require_once('facebook.php');
$fb = new Facebook('1234567', '7654321');
$user_i...
I am working on zend framework, PHP and jQuery. I am working on popups sometimes. When any popup is open on the screen, we can still clicks links on webpage behind popup which causes some unexpected behaviour. How can I disable a webpage behind popup. I have seen some web application in which when popup appears then webpage behind popup ...
I am integrating Zend Framework into an existing application. I want to switch the application over to Zend's autoloading mechanism to replace dozens of include() statements.
I have a specific requirement for the autoloading mechanism, though. Allow me to elaborate.
The existing application uses a core library (independent from ZF), fo...