My application is being built in a subdirectory of my local server, that looks something like this:
http://localhost/application/
The problem is that when I set the form action to "/form/save", the form routes to "localhost/form/save", which doesn't exist.
If I set the form action to "/application/form/save", I get an error, becaus...
The problem is.. that when I try to login the user and then get the user info, I get error from Facebook API. with error code: 1
The same code works for one server, but not another one. THe config and everything are the same, except the non-working one is hosted at RackSpace cloud environment. I don't know if that's the cuase.
Informa...
It is taking .6-.8 seconds for this line of my code to execute in my users table model:
$row = $this->fetchRow("username = '$username'");
I'm caching my table metadata for all tables already.
Any idea what could be causing this slowness?
...
Hi,
I'm fairly new to Zend and am having some difficulties with creating my unit tests. I've stripped it down to a minimal test class that still replicates the problem in the hope that it is something daft that I'm doing:
class UserRegistrationsTest extends PHPUnit_Framework_TestCase
{
protected $db;
public function __construct($na...
Hi friends. We're on the mid-tier DV Rage server on media temple using Zend Framework, and we've been getting QoS warnings in Virtuzzo pretty consistantly. We've spent the last week installing APC (tweaking that to death), mysql and apache tweaks (many recommended by Media Temple), front end gzip, Zend_View caching, and every optimizatio...
From what I understand, the best way to deal with dates in the Zend Framework is to select them as a Unix timestamp from the database.
Quick Creation of Dates from Database Date Values
// SELECT UNIX_TIMESTAMP(my_datetime_column) FROM my_table
$date = new Zend_Date($unixtimestamp, Zend_Date::TIMESTAMP);
I think it's a pain that there...
Hello everyone,
I would like someone to explain me what _forward is exactly doing, I cannot see if _forward is also rendering the attached view to the action or just executing the action.
Also is it possible to pass argument to $this->action in a view script ?
More generally my problem is how to code a confirmation page, let's say t...
I know there are already objects supporting Office 2007 files, but is there any native Office 2003 or earlier support ?
...
I'm having a spot of bother getting anything to log with FirePHP and Zend Framework.
Firebug is installed and the site is in the allowed list. I don't know if there are any other tests I can do to check FirePHP.
Bootstrap :
protected function _initActionHelper()
{
$writer = new Zend_Log_Writer_Firebug();
$logger = new Zend_Log($writ...
I've read a couple of Related questions by the site, but can't find what I'm looking for.
After having done normal PHP without much extra(by which I mean a templating system) for a year now, I feel like trying Zend. Simply because it's the biggest name. I wanna try CakePHP too later.
I've been looking into the examples, but these are a...
Hi Folks,
how do you handle middle sized projects with PHP and Zend Framework. Do you use Zend DB Table / Row for your Models and Database operations ? Or do you have some kind of Abstract Model class with your SQL Statements ?
I would like to hear some opinions, thanks.
...
What I am looking for is something where I can easily change the text on a page. I want to set it to a default value and if something is present for a specific page to change it
So it would say something like:
I like stackoverflow
But if the value of website was "reddit" it would instead say
I like reddit
So stackoverlflow would be ...
I'm trying out the zend framework classes for the first time. I am interested in using some of the individual classes for now.
Reading the documentation and some other q's here and in blogs I've tried three ways to load the classes
//attempt 1 - using zend loader
require_once('library\Zend\Loader.php');
Zend_Loader::loadClass('Zend_...
I am using zend framework with Apache sever on Ubuntu. When I try my site on localhost, I use following url
for example:
http://test.dev/authentication/login
http://test.dev/student/profile
Where 'authentication' refers to AuthenticationController and 'login' refers to loginAction.
'student' refers to StudentController and 'profile'...
Hi,
Is it possible to set the relevance of the fields indexed by Zend Lucene? I have an article search, searching title, author and body, but, although the title is indexed, when I search by title I do not get the article. I would like to say to Lucene to give a higher relevance to the title
...
I am using FirePHP with Zend Framework.
When the user submits a form, I wish to output some data to the Firebug console and FirePHP is perfect for the job.
This all seems to work fine, except that when my server code processes the form, it then redirects to another page - using Zend's _redirect() - causing Firebug to clear the console....
I'm working on a project now that isn't based on Zend Framework, however I would like to use some of Zend's components in it, namely Zend_Form and Zend_Acl.
The question is, what should I do in order to make these components know how to load their classes correctly when they are instantiated.
I suppose spl_register_autoload and set_inc...
I'm having a weird issue using Zend_Db's PDO adapter for managing my database connections. All of a sudden, I'm constantly hitting the connection limit on my MySQL server.
For whatever reason, every three or four hours or so I end up getting this error, and Apache craps out on every HTTP request with this error:
PHP Fatal error: Un...
Hi All,
I am very new to zend frame work , I want to do some updation work in one project that already done by other programmers, now iam trying to setting up this project in my local server (I am using xamp), i have created the database in phpmyadmin, but while running this project i got the following error....
"Fatal error: Uncaught...
Hi All ,
I am very to new to zend frame work , I am trying to set up a project (Done by other programmer) in my local server, i have setted up this project, but all pages are styless in my browser, ie the CSS files are not taken in phtml pages, For solving this issue which file I have ti Edit?
Plss Help me
...