I made session using zend authentication it works good but my problem is I want to change some property of it from another action in other controller my code is:
$auth = Zend_Auth::getInstance();
if($auth->hasIdentity()) {
$blogId = new model_blog request;
$auth->getIdentity()->user_current_blog = $blogId;
print "Current Blo...
Hi guys I'm trying to read through an email inbox for my application - I'm using the zend framework here. The problem is that I'm unable to retrieve the message body for certain emails. The following is my code as to how I'm doing this:
$mail = new Zend_Mail_Storage_Imap($mail_options);
$all_messages = array();
$page = isset($_GET['pa...
Hello,
I searched through Google and there was little to no information about how to integrate Smarty 2.x into Zend Framework 1.10. Can anyone teach me how to do so?
...
Hello !
I am working right now with Zend Framework and I've created a Model_User_Row in app\models\User\Row.php.
When I try to create an instance of that class in IndexController I get an error:
Fatal error: Cannot redeclare class Model_User_Row in
F:\Projekty\www\inz\app\models\User\Row.php on line 14
14th line is a close brace.
<...
I have
1.Table:user(userId,userName,userGroup)
2.Model:userModel
3.usercontroller
there i a simple code:
Controller:
class UserController extends Zend_Controller_Action
{
public function getuser()
{
$userModel = new userModel();
$this->view->usergroup = $userModel;
}
}
Model:
class Model_UserGroup...
Hi guys I'm working with Zend framework and just hate the fact that I seem to encounter hundreds of exception errors like if I try to reference a non existant property of an object my application just dies and crashes. However I have no idea where to see these errors or how to be able to display them on screen. I've set display errors to...
I am trying to use Zend Tool on my media temple Grid Server account. The problem is that the installed CLI version of PHP is 4.4.8 and Zend Framework needs PHP5. On an account basis its possible to choose PHP 4 or 5 but not so for CLI. Its possible to globally select to use PHP5 by using the extension .php5 but in the case of Zend Tool w...
Hey Guys,
I'm confused about the problem and not sure if I can provide enough details.
I have a php app built on Zend framework which I've successfully deployed on other hosting companies. I am now trying to move to Amazon EC2
I moved all my code and set my domain to point to the IP address. So far so good.
Now when I access my home p...
In PHP curl there are two functions used to ignore all SSL errors (invalid cert, self signed, expired, so on):
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
I am switching over to use Zend_Http_Client, but I can't seem to find a way to force it to ignore errors. (I don't have a way t...
Hi guys I'm working on a google apps application. Basically I've set it up so users can add multiple gmail addresses and check on their inboxes in the application. It works fine with a google apps email address however when I add a gmail address it just dies out.
I'm using this code here:
$mail = new Zend_Mail_Storage_Imap($mail_option...
Hey,
I am writing a webapp in ZF and am having serious issues with UTF8. It's using multi lingual content through Zend Form and it seems that ZF heavily escapes all of these characters and basically just won't show a field if there's diacritical elements 'é' and if I use the HTML entity equivalent e.g. it gets escaped so that the user...
Hi guys, I'm working on a google apps based application - its a project management system and I'm setting it such that it requires a single google apps account to be used for all users of a particular installed instance. I.E someone installs it using a google apps account he/she can create users who can log in from a separate login scree...
When creating a new project using zf create project myproject it will create a default project layout with an application.ini in the configs folder. Where can I change these default settings so that it generates (and uses) an XML file (application.xml)? I've looked at the documentation for Zend_Tool (http://framework.zend.com/manual/en/z...
Hello,
I wanted to localizate some texts in my Zend Framework applicaiton.
There are some texts like:
Hello, I'm <a href="test.php" title="Title-Attribute" rel="test">a sample text</a>, greetings to all of you! :)
If there's no html in it, it's simple to localizate, but with HTML in it, how should I do it best?
...
Hello !
I was looking for some nice tool to generating charts and I think Google Charts will be the best. But I am wondering if there are some ready to use libraries to connect Google Charts with Zend Framework.
Did you use them both common ?
...
I am using the fluent interface to create a Zend DB Select object/query. As part of the query, I would like to select an arbitrary string, like "SELECT 'foo' AS 'type' FROM ...". foo is not a column, it's just a string literal.
When I select an arbitrary number, the query works as expected. When I change it to a string, Zend tries to tr...
Hi guys, is it possible to retain upon authorization a single session token for a user who signs into my gogle application. CUrrently my application seems to every now and then require the user to authenticate into google apps. I think it has to do with session dying out or so. I have the following code:
function getCurrentUrl()
{
g...
How can I pass a result to a particular controller's action in zend?
...
hello
how to implement a previous button on form, when users click on it , they can back to previous page?
thanks
...
I have Zend Server for i5/OS and want to connect (in PHP) to local DB2 Instance. Do I need DB2 Connect product to call any program on i5/OS? If I can use ODBC Driver, can somebody - please - give me an url to some place where I can download it (OpenSource?) ?
Another question: Is there any PDO_ODBC or ODBC adapter for Zend Framework's Z...