Hello everyone,
I am interested in the PHP framework, especially by symfony and ZendFramework, but I am not sure of one thing: I saw the need to type command lines to create a project with these frameworks. Ok, but once the project is finished, is it possible to move files to another server without installing anything (except for Apache...
When I load the homepage of a ZF site I get a message saying "Invalid controller specified (error)" where "error" seems to be the name of the controller.
In my bootstrap.php I have the snippet below where I added the prints statement in the catch():
// Dispatch the request using the front controller.
try {
$frontController->dis...
Hi Folks,
In a current ZF project i have to use diffrent DB Connections for reading and writing. My approuch was do this by extending Zend_Db_Table_Abstract (and Zend_Db_Table_Row_Abstract)
It looks like this at the moment:
class SomeNamespace_Db_Table extends Zend_Db_Table_Abstract {
/**
* @var Zend_Db
*/
protected $read = NULL;
...
I have been setting my routes in my application.ini file which works for all the ones i have setup. The problem is when there are multiple actions within that controller and i try to use the routes in other actions.
For instance i have created the following in my application.ini for paging and column sorting
resources.router.routes.sea...
I'm developing a zend framework app that's just going to act as a web service. I have no need to ever output HTML at any point in the application and don't even want the overhead of creating empty view files.
I want my app to output XML by default, JSON if requested (via the format parameter would be fine).
Is there any way to do this ...
Maybe the answer to this question is less complicated than I am making it...
I have a Zend Framework PHP web application. I am going to create a simple API that will output a report for the user's account. The content will be as simple as this:
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
I want to offer a code snippet that the...
Hello!
I'm writting an application using Zend_Framework (so the solution can rely on it).
How to get client's timezone?
For example, if someone in Moscow, Russia, I want to get 3*60*60 (because there is UTC+3). If he is in UK, I want zero. If he uses UTC-3:30 (Canada?), I want -3.5*60*60.
(it's not a question about a format - I'm ok ...
I have this code which is working, to load a Google Spreadsheet and load some data from it. If the spreadsheet in question is public, how do i modify the code to not require a username/password?
$key="keytothespreadsheet";
$user="[email protected]";
$pass="*****";
$authService = Zend_Gdata_Spreadsheets::AUTH_SERVICE_NAME;
$httpClient = ...
Hi all,
I am working on a youth group social network site and everything has gone smooth for the most part. Most problems I have been able to solve myself or google came through. This one is above me and google ain't helping! :(
Can I do this during an ajax request from a view script?
<?php if($this->tools):?>
<?=$this->action('postfo...
Hello. I'm trying to work with Zend_Soap using zend framework 1.9.6 and php 5.3.1.
soap.php (wsdl generator)
<?php
require_once('Zend/Soap/Server.php');
require_once('Zend/Soap/AutoDiscover.php');
require_once('Soaping.php');
$_WSDL_URI="http://server/soap/soap.php?wsdl";
if(isset($_GET['wsdl'])) {
hadleWSD...
I have this statement:
set_include_path('/sites/intranet/includes/Zend' . PATH_SEPARATOR . get_include_path());
but when I try to use the Acl library it seems that is not aboel to find;
require_once 'Zend/Acl/Resource/Interface.php';
The path is really included in the path, I have printed it. Any idea?
...
Hi Folks,
i think iam getting crazy, iam trying to implement Zend_Cache to cache my database query. I know how it works and how to configure.
But i cant find a good way to set the Identifier for the cache entrys. I have an method wich search for records in my database (based on an array with search values).
/**
* Find Record(s)
* Re...
I am using Zend Framework 1.9.6. I want to start using cron jobs. I am new to this so I'm not quite sure how to do this.
I'm thinking it would be a good idea to store my crons in /myapp/scripts or /myapp/application/cronjobs. What do you think? (my application only has a default module)
Once I've decided on a place to store them, how w...
I have downloaded a third party action helper that I would like to add to my application. How can I do this?
...
Background:
I have a PHP based (Zend Framework) application. It is secure, and only users who have been invited are able to access its resources. One of the resources that I want to keep secure is a link to a private Google Calendar. This is a public link, but I want to be in control of who can view it. There may be a time when a user a...
I think this might also be referred to as "scraping". Basically, what I want to do, is if someone clicks this link:
<a href="/links/display/id/47">Click here</a>
I want my links controller, display action to:
find the actual url of link #47 from the database (i.e. http://www.google.com),
fetch/scrape the content,
display the content...
I have a radio element with two options. I want to set one as the default value in case the user forgets to check it. How can I do this?
Solution:
$this->addElement('radio', 'choose', array(
'required' => true,
'multiOptions' => array(
'yes' => 'heck yes',
'no' => 'please no'
),
'value' => 'yes' //key ...
An application I'm working with has the page structure setup such so that when you create a new page and view it, the URI is:
http://site.com/page/open/title/Contact Us
A client has requested that we need shortened urls, so for example the prior URI should be something like http://site.com/contact-us/
The reason why there's a generic...
I am implementing my model exactly like the quickstart guide.
In my model I am trying to implement a findByToken() method. The current find() method accepts an $id parameter, but I want to find by the value of a different column.
//excerpt from the quickstart guide
public function find($id, Default_Model_Guestbook $guestbook)
{
$re...
I'm using Ubuntu 9.04 and I applied this tutorial
But I'm still getting this error:
berkerpeksag@berkerpeksag:~$ zf show version
Segmentation fault
What do I miss?
Thanks.
...