Hi,
I'm trying to replicate the functionality i've seen on a couple of sites:
http://todaslistas.heroku.com
http://endor.se
The idea is you sign up and log in with Twitter using Oauth. Once you have authed the app at twitter you then return to their site and they keep you logged in. In the case of each one they obviously base this o...
I have sucessfully connected to twitter using Zend_Oauth_Consumer and got an access token, however when i try to use this access token i am getting an error.
This is the code:
$token = unserialize($twsession->access_token); # would be in DB
$twitter = new Zend_Service_Twitter(array(
'username' => $token->screen_name,
'accessTok...
Is there a best practice in getting data from multiple database tables using Zend? I would like to know rather than end up wanting to refactor the code I write in the near future. I was reading the Zend documentation and it said that:
"You can not specify columns from a
JOINed tabled to be returned in a
row/rowset. Doing so will...
Hi,
I was browsing stackoverflow in a search for an answer to my question. Basically i want to use Zend_Form to place a div inside a div right beneath an input box. I have found the code below to add a div but now i want another one inside. I need to achieve the html equivalent of
<div id = "parentDiv">
<div id = "innerDiv"></div>...
Ok so i tried using zend form but what i'm trying to accomplish is way too much for me to handle zend form. I'll try to describe it in a few lines maybe you have a solution for me if not you will understand why i chose to use a form in a view file.
I have a form for searching products in a database. THe search is done using autocomplete...
Hi All,
How I'm stuck with writing a test for the following code. I want to mock the $userModel but how can I add this to the test?
class PC_Validate_UserEmailDoesNotExist extends Zend_Validate_Abstract
{
public function isValid($email, $context = NULL)
{
$userModel = new Application_Model_User();
$user = $userM...
I have the Zend Form with some elements. And I need to placing some elements in first div, some in other div.
Part of my form:
private function _createForm($action) {
$form = new Zend_Form();
$form->setName($action . '_form');
$form->setMethod('post');
$title = $form->createElement('text', 'title');
$title->setLabel('Title')
...
Hi,
My Zend based website works perfectly on my localhost (using Mac). But When I deploy it on a linux web hosting company, I get the following errors:
On the index page which try to list my ads by calling a resource where the select is:
Fatal error: Class 'Lintottar_Model_Resources_Ad' not found in /www/webvol8/4v/7e33wem4920cqpg/l...
Hello.
I am creating a form, using Zend Form. I have 8 input elements. And I want to placing first 6 elements in one div, and others in second. How I can do this?
I am tried to use addDisplayGroup(), but it was unsuccessful.
Or may be you know how to create a link in form?
...
This question extends problem which was mentioned here:
http://stackoverflow.com/questions/2577965/zend-framework-rest-service-http-status-code-problem
I am creating REST service and I am using both XML and JSON formats. In case of error I am returning proper HTTP code with content that describes error.
When I set HTTP code Apache send...
I am not suggesting that all models are tables.
What I am asking is whether every single table must also have its own class defined specifically for it when using Zend? Is there any way of getting away from this awkward boiler-plate coding. We're just starting to look into Zend (hoping to leave procedural PHP land!) and my colleague thi...
Possible Duplicate:
What PHP framework would you choose for a new application and why?
Hi guys..
I am trying to learn some php framwork..I know Zend is pretty good but its hard for the beginner. Are there any recommended framework that you guys like? I am thinking about starting from cakephp. Thanks for any advises.
...
I have my config file like this
[production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
includePaths.library = APPLICATION_PATH "/../library"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.module...
Hi all,
I was trying to understand the working of Zend with the help of this excellent article. Its when I found out that Zend Engine was a Virtual Machine.
Now my question is whats the advantage of creating an intermediate code for scripting languages like php?
I can understand that having Intermediate Code in the case of prog...
Hello Experts
<a href="<?php echo "editpromotion/".$this->result[$i]['id'].""; ?>">"Edit this Promotion" </a>
Here "editpromotion" is the action to which I wish to pass the parameter:"$this->result[$i]['id']".
And in the controller action('editpromotionAction') :
I am using :
$pass = $thi...
Hi,
on my project website users are able to login and move from page to page on my site by being logged in. so they do not have to log in again for moving to another section on my page. to achieve that I use the storage of Zend_Auth.
Following code shows how I write storage:
$authAdapter->setIdentity($email)
->setCredential($p...
How to call model or controller functions in view.
Can we use functions operating database queries in helper ? How ? example ?
...
Hi,
I am working on a ZF project wich use a postgre database, on my local server (ubuntu 10.04 LTS Lucid Lynx).
I'm trying to run a very simple test with phpunit:
public function testIndexAction() {
$this->dispatch('/');
$this->assertController('index');
$this->assertAction('index');
$this->asse...
Zend Form is not my friend today!
This works :-
Controller:-
public function indexAction()
{
$loginForm = new Application_Form_Login();
//is there a submitted form?
if($this->getRequest()->isPost()){
//yes there is so process it.
$formdata = $this->getRequest()->getPost();
if($l...
I app is a PHP app using Zend Framework to send emails. I am trying to connect to a postfix on my local system and getting this exception in 10-12% of times when I try to send an email.
Not able to obtain the cause of not being able to connect to local host.
Can someone please give me some pointers or a headstart in getting to the prob...