Hi
I wast to perform some action like freeze application if session expires. if user clicked on any thing after session expiry it should ask for logout and relogin. Currently Am using setExpirationSeconds( ) function. but it always takes me on index (login) page. How can i change default behaviour of setExpirationSeconds( ) and perfo...
Our vendor-supported server's O/S only supports PHP 5.1.6, which limits us to ZF 1.6. The current version of Zend Framework requires a higher version of PHP.
We're struggling to decide whether to adopt ZF because of this incompatibility. Is it feasible to develop (indefinitely) in these older versions of ZF or should we hold off?
Fea...
i am trying to send something like news letter Via Zend_Mail but after 12 mail i got this message
Fatal error: Maximum execution time of 30 seconds exceeded in C:\Program Files\Zend\Apache2\htdocs\forga\library\Zend\Mail\Protocol\Abstract.php on line 321
my Code is like:
$smtpHost = 'smtp.gmail.com';
$smtpConf = array(
'aut...
I set a view variable in someAction function like this:
$this->view->type = "some type";
When I access this variable inside layout script like this:
<?php echo $this->type ?>
it prints nothing. What's wrong?
My application.ini settings related to layout
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/"
resource...
Hi,
I'm trying to create a custom form element which extends Zend_Form_Element_Text with a validator (so I don't have to keep setting up the validator when I use certain elements). Anyway, I'm having trouble passing $maxChars variable to it when I instantiate it in my Main form. I've provided my shortened code below
This is my custom e...
Hey I'm wondering when accessing Zend_Registry in an application if you need to include getInstance() and if so, why?
for example
Zend_Registry::getInstance()->get('db');
vs.
Zend_Registry::get('db');
they both seem to work with the later being less verbose.
I vaguely understand that Zend_Registry is a singleton, which I t...
I'm using Zend_Mail to send emails. Few articles (like first example on this page) have suggested to wrap long lines in message body.
Questions:
Is it necessary to use wordwrap(), in case any of line is larger than 70 characters?
Where does this '70' figure come from?
...
So I have this cron script that is deployed and ran using Cron on a host and indexes all the records in a database table - the index is later used both for the front end of the site and the backed operations as well.
After the operation, the index is about 3-4 MB.
The problem is it takes a lot of resources (CPU: 30+ and a good chunk of...
I've 2 databases, which are set up as mentioned here. How can I write a SQL query which involves database_1.table_1 and database_2.table_1 ?
E.g. consider this query
$sql = "SELECT distinct database_1.users.id, database_1.users.name
FROM database_1.users, database_2.sales
WHERE database_2.sales.user_id = database_1.use...
Hey! I just want to know your guys opinion on using join tables within the zend framework.
Of course you can use relations by defining a referenceMap and dependentTables and stuff, or using
setIntegrityCheck(false)
within a db select(). The setIntegrityCheck version seems a little bit dirty to me, but the other version is not very s...
How do I upgrade Zend Framework 1.9 to 1.10 in Ubuntu 9.10(k)?
...
Hey I have this kinda structure in my ini file I want to be able parse a variable inside a variable value
site.url = "www.example.com"
site.url.images = site.url "/images"
However, site.url is not parsed inside the site.url.images.
I am using zend config ini to parse my ini files. Is there a solution beside adding this feature mysel...
I'm sending files in action helper for downloads (in parts if needed) like this:
...
$response->sendHeaders();
$chunksize = 1 * (1024 * 1024);
$bytesSent = 0;
if ($httpRange) {
fseek($file, $range);
}
while(!feof($file) &&
(!connection_aborted() &&
($bytesSent < $newLength))
) {
$buffer = fread($file, $chunksize);
// ...
I get the following error when i am logged into the backend in magento
Fatal error: Interface 'Zend_Http_Client_Adapter_Interface' not found in /homepages/45/d210005774/htdocs/websitename/lib/Varien/Http/Adapter/Curl.php on line 176
Also i got this error previously in my index management section in magento
Fatal error: Call to undefin...
I am rendering a Zend Form Checkbox and I would like to render some custom html at its setlabel property.
My form construct model
$terms = new Zend_Form_Element_Checkbox('confirm_terms');
In my View Script
$this->form->confirm_terms->setLabel('<a href="'.'/index/terms'.'">Terms of Service</a>');
However since setLabel escapes the ...
i'm trying to build a SOAP service with Zend_Soap. Everything is working great but the client needs the ability to send attachments to the service (not base64 encoded strings, as this service will be called multiple times a day with various file sizes so processing all that in memory is not possible.
So I'd like to handle a normal SOAP ...
Hi Stackers,
What is the best way to access my models and forms from a controller of a module?
Let's explain with "pictures":
/application/module/storage/controllers/IndexController.php
needs to call readAction in the class called storage_Model_Files in
/application/module/storage/models/Files.php
I've made this app's dir structu...
Context: I'm trying to include Adminhtml blocks in the frontend of the site to replace some of the user account blocks. The first thing I'm trying to do is simply display the block on the correct page. I can replace the entire page by setting the Body of the response inside the controller, but I'm having a hard time including the block i...
I have the following problem with Zend Framework.
My project has several controllers like Video,Category and Post.
The VideoController has an Action called categorylist, so the default URL/Route becomes /video/categorylist
Since the action requires 3 parameters I whant to add one simple route:
$router->addRoute(
'categorylist...
Below is a function defined in my Bootstrap class. I must be missing something fundamental in the way Zend does routing and dispatching. What I am trying to accomplish is simple: For any request /foo/bar/* that is not dispatchable for any reason try /index/foo/bar/. The problem I'm having is when the FooController exists I get Action...