Hi,
can anybody help me how to nice integrate doctrine 2.0 into ZF 1.10? I found some application resources, but there was no complete solution. Many thanks
Hi,
I'm trying to update the session table used by Zend_Session_SaveHandler_DbTable directly after authenticating the user and writing the session to the DB. But I can neither update nor fetch the newly inserted row, even though the session id I use to check (Zend_Session::getId()) is valid and the row is indeed inserted into the table. Upon…
Hi overflowers,
After reading a message's state in Zend_Mail_Storage_Imap with $message-getHeaders(). How do I then set that mail as read?
setHeaders(Zend_Mail_Storage::FLAG_SEEN);
Thanks,
Dan
Can I access my action helpers from my models?
What am avoiding is creating new models and calling the functions everytime I need some functionality.
Any tips?
Am trying to add options in my Zend_Form_Element_Select element
$monthvalues = new Zend_Form_Element_Select('month_values');
$table = new Model_DbTable_Options();
$monthvalues->addMultiOptions($table->Months())
In my Model_DbTable_Options model I have
public function Months()
{
$array = array(
'01' => 'Jan',
…
Hi!
Is there any way how to view all sent parameters if I do not know their name?
For example, I sent these parameters:
id = 1 (GET)
name = 'John' (GET)
surname = 'Smith' (GET)
Example
$request = $this->getRequest();
echo $request->getParam[0]; // Will output 1
echo $request->getParam[1]; // Will output 'John'
echo…
Hi
Ok dealing with Partial Loops I want to do several things
Perhaps pass in extra variables - seen it done like this
echo $this-partialLoop('Loop.phtml', array('data' = $data, 'var1' = foo));
But this does not seem to work - I can not extra the data using $this-var $this-data-var or $data-var not sure how to access the data…
Yall:
I have a simple question, it might be a simple configuration issue, but
I have a Model defined, and when I try to access it from a controller it
fails.
The Model is in the model directory, and when I look at the quickstart app,
it seems like this should work.
Here is my model:
<?php
class Application_Model_User {
…
Hello,
I'm trying to load a existing pdf file, and fill this with database information. Loading the file and everything is working, except for writing data to the loaded page. It doesn't write text to the loaded page. If I add a new page en use a foreach to apply drawing to all pages, all added pages are written, except for the…
I'm trying to get latest inserted id from a table using this code:
$id = $tbl->fetchAll (array('public=1'), 'id desc');
but it's always returning "1"
any ideas?
update: I've just discovered toArray();, which retrieves all the data from fetchAll. The problem is, I only need the ID. My current code looks like this:
…
Hi,
Currently on my application I have a form where I ask the user to upload an image file to be used as a logo. I want to allow the user to reset that to nothing by supplying no file (by just pressing the upload button from the browser).
In this scenario the only thing left is to suspend file validation when no file is…
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…
How to create route that accept all requests for unexsting controllers, but leave requests for existing.
This code catch all routes
$route = new Zend_Controller_Router_Route_Regex('(\w+)', array('controller' = 'index', 'action' = 'index'));
$router-addRoute('index', $route);
how should I specify route requests…
Let me start with the things that I did and how am I using some things to get results
I have set up modular structure as:
application/
/configs
/layouts
/models
/modules
/users
/profile
/frontend
/backend
/controllers
…
I've been googling around and I can't seem to find anything which explains the use of ZF router well. I've read the documentation on the site, which seems to only talk about re-routing.
I am trying to make the format:
/module/value/controller/action give /module/controller/action passing on value as a parameter…
How can I make something like this with Zend_PDF:
I have a few columns A, B, C, D, E and after them I will have some information, something like excel.
A | B | C | D
ss|das|dad|ds
ss|das|dad|ds
ss|das|dad|ds
How can I create something like this with ZF_pdf? I will pull the data from DB, can you please give…
I have a table with over 4 million rows, I want to split this table in more tables, i.e one table with 50k rows.
I also need to perform a search on these tables, whats the best way to do it? with JOIN, or? do you have some better ideas?
Best Regards,
Not so much a programming problem, but more a productivity problem.
We've got quite a few custom view and action helpers in our project. Working with around 7 programmers.
Now when someone, creates a helper or if one would want to use a helper, it all goes through the brokers. This means we do not get…
I want to get the week number of a particular date , using Zend_Date
My local is setted as English(IN) [en_IN], in Opera browser
I am using the following code
$date = new Zend_Date('22 Mar, 2010', null, Zend_Registry::get('Zend_Locale'));
echo $date->get(Zend_Date::WEEK); //output 12, correct
But…
Hi guys I'm integrating basic email capabilities in my application and I would like to be able to incorporate a decent reply / forward email facility. I have it covered with sending my own uploaded attachments but what about in situations where I recieve a message in my inbox with attachments and wish to…