Zend Studio 7.0 + Zend Framework
I have used Zend Studio 7.0 on a project, and i don't know why is showing me something like this on my project http://screencast.com/t/fjBwsIUP ...
I have used Zend Studio 7.0 on a project, and i don't know why is showing me something like this on my project http://screencast.com/t/fjBwsIUP ...
I have recently started using Zend Framework. I started developing on my local XAMPP server which went fine but when I uploaded to my 1and1 account, I keep getting the following error: Message: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) I have tried changing the...
I need to insert html code like this in my zend form: <div class="myClass1" id="myId1" style="display: none;"><img src="images/myImage.jpg" /></div> What will be the code in zend framework for above html code. I tried with Create_Element but it always create a button inside a div tag. Please give an example code. Thanks ...
I have the following private method in my form : function _verifywebsite ($id) { $row = $this->websites->fetchRow("id=$id"); $row->verified_date = $this->_get_date(); // this is the line in question $row->save(); } I assume that $row requires me to enter date as string value in correct date format. But what if I want to includ...
I am building a large website where members will be allowed to upload content (images, videos) up to 20MB of size (maybe a little less like 15MB, we haven't settled on a final upload limit yet but it will be somewhere between 10-25MB). My question is, should I go with HTTP or FTP upload in this case. Bear in mind that 80-90% of uploads ...
I am building a ZendFramework application which as a login form asking for an email address and password - it seemed to make sense to validate the email address before hitting the database with the login attempt, as an invalid email would never lead to a valid hit. Zend_Validate_EmailAddress seemed like the right way to go, but I am havi...
Can anyone please provide some reading material ( Except Zend Framework Certification Guide ) or Sample Questions and Guidelines for Zend Framework Certification Exam ? Pleas share your experiance regarding the Zend Framework Certification if you have taken the Zend Framework Certification test ? Thanks in advance. ...
I'm working with Zend 1.8. I've set the default timezone to Europe/Helsinki, and I'm parsing a string that looks like this: 2009-08-06 with a statement like this: new Zend_Date($dateStr, 'YYYY-MM-dd'); It produces a date like this: object(Zend_Date)#53 (8) { ["_locale:private"]=> string(5) "en_US" ["_fractional:private"]=> ...
Hi, I have created some separate modules - beaches / villages / activities What I would like to do is use google maps in each of these modules. I was thinking of adding a maps module and call it into each of these modules?? What do you think... Any ideas, tips or suggestions welcome Thanks Andrew ...
What is the best practice when serving files from the Zend Framework MVC? These files have to be served from the MVC as they are protected. I know you can read in the file and place it into the Response object but this seems like a bad practice as you would be reading the entire file into memory then serving it. Right now I usually do: ...
I'm using Zend_Navigation (sweet addition to the framework, btw) to build my menu, after which it should be rendered in the page (self-evidently). I first set the container somewhere in the controller: // $pages is the array containing all page information $nav = new Zend_Navigation($pages); $this->view->navigation($nav); Then, in the...
I am making a customer portal application using ZF. And the portal needs to work for different company brands. So I need to use all of the same backend code/controllers/etc, but dynamically change the view directory based off of the hostname. Right now my view directory structure looks something like this: /application/views/scripts/b...
Follow up to this: http://stackoverflow.com/questions/795414/why-cant-i-pass-user-sessions-between-subdomains I followed the advice there and used : ini_set('session.cookie_domain','mydomain'); (with and without a dot before mydomain) as the first line of index.php in the public folder as advised there and in other links around the we...
I have a problem with ZF, my code looks OK, but I can't take the parameter ID, it return true, and i'm accesing the url right http://site.com/admin/news/newsedit/1 So my code looks like this: Route $ad = self::$frontController->getRouter(); $ad->addRoute('newsedit', new Zend_Controller_Router_Route( 'news/newsedit/:id'...
EDIT: I have managed to solve the problem by using: +"lorem ipsum" +type:photo +"lorem ipsum" +type:video Another problem though is that the index is returning correct results but with wrong id (id is a primary key). More specifically, id fields returned are 1 less than real ids (id - 1) in the database which I use to build the index...
I am using Zend Framework. I want to create a class that handle log messages, for that purpose i used Zend_Form. But i m facing difficulties in creating the class. I want to use it to enter log messages as well as to view log messages. ...
EDIT: Solved with a hack for now. Added at line 473: if (isset($this->_termsFreqs[$termId][$docId])) { } This happens only when I'm searching for multiple words, e.g.: +word1 +word2 + word3 I get this massive error: Notice: Undefined offset: 2 in C:\wamp\www\project\library\Zend\Search\Lucene\Search\Query\MultiTerm.php on line...
Hi there, I want to add a redirection URL to my login forms action (as a query) in login page, so after loging-in, one can visit the previous page he or she was surfing. First I thought about using Zend Session and save the url of each page in a variable. but I read in the documentation that it has overhead. So, is there a better way t...
I am trying to use Zend's Gbase library, but I cannot figure out how to do so without actually installing it in the PHP path. The complication comes from wanting to make a module for Drupal that is not constrained by the server it is installed on, but can access the library by having it installed in a subfolder of the module. Does anyo...
I'd like to use Zend_Tool (ZF 1.9) with my project, but I would like to be able to customize the default output of new files. For example, all Controllers should have a specific header pre-pended to the output with phpdoc markup and licensing information to avoid me having to add this as an extra step. Also, for this particular project ...