Yes it's possible...
Depends on Outlook 2003 or 2007?
in 2007 it's rather easy. Under 'Account Settings' you have a tab that's
called 'Internet Calendars'. You can set your url there to your application
export.
How the export should look like:
http://en.wikipedia.org/wiki/ICalendar
Hello, I have build this router:
$router-addRoute(
'network',
new
Zend_Controller_Router_Route_Regex('(nl|en)/(netwerk|network)(/([a-zA-Z0-9-_.]*))?(/(\d+))?',
array(
'module'= 'default',
'controller'= 'network',
'action'= 'index'
),
array(
1 =
Why is the date format in Zend different from the one in PHP?
eg.
Zend: HH for 24-hour format of an hour with leading zeros
PHP: H for 24-hour format of an hour with leading zeros
but even more strange:
Zend: mm for Minutes with leading zeros
PHP: i for Minutes with leading zeros
I think the
Hello there,
I worked for different companies and saw different ways of programming
websites.
Now everybody is talking about OO programming. But my question is: why?
Let me give you an example one of the ways I saw it done:
a class member
Class Member {
protected $_id;
Hello,
a time ago I made a script with zend amazon. It worked fine. It tried the
same script today. And it's not working anymore. Something changed on
Amazon?
$amazon = new Zend_Service_Amazon_Query('MYKEY','US');
$amazon-category('Books')
-Keywords(php)
-ResponseGroup('Large')
this
and your Amazon WS account has the private key somewhere in the admin
console.
greetings,
Benjamin
On Friday 28 August 2009 09:35:27 pm PHPScriptor wrote:
Hello,
a time ago I made a script with zend amazon. It worked fine. It tried the
same script today. And it's not working anymore. Something
Hello,
Maybe a simple question, but I never did this before. How can I remove the
old image-captcha's from my directory? How can this be done efficiently?
Can this be done with Zend Framework? Or do I need to run a cronjob every
night? ...
-
visit my website at http://www.phpscriptor.com/
Hello,
Maybe a simple question, but I never did this before. How can I remove the
old image-captcha's from my directory? How can this be done efficiently?
Can this be done with Zend Framework? Or do I need to run a cronjob every
night? ...
-
visit my website at http://www.phpscriptor.com/
Hello,
I've a xml-file with data in it. Is it possible to read this file and parse
it through paginator?
An example would be nice :-).
Greetings
-
visit my website at http://www.phpscriptor.com/ http://www.phpscriptor.com/
--
View this message in context:
this may help you. Just extends the Zend_Form once somewhere in your library
directory. Extend your forms with My_Form.
something like this
class My_Form extends Zend_Form
{
public $elementDecorators = array(
'ViewHelper',
'Errors',
array(array('data' = 'HtmlTag'),
Can you be more specific? 'Cause what do you mean with 'best method'?
I'm writing a site with zend framework and Ext Js. But I'm only using grids,
ajax, Not really forms.
Razorblade wrote:
Hi,
which is the best method to implement the Ext Js framework inside the ZF?
Thanks
http://framework.zend.com/manual/en/zend.db.table.relationships.html
http://framework.zend.com/manual/en/zend.db.table.relationships.html
Try something like this in your model:
public function consultaCadastro() {
$select = parent::select();
$select-setIntegrityCheck(false);
thomasW wrote:
Your code seems a little bit complicated, isn't it ? :-)
I don't even know how that works, and I programmed it :confused:
-
visit my website at http://www.phpscriptor.com/ http://www.phpscriptor.com/
--
View this message in context:
超哥 wrote:
anybody, please visit my phpcoding site
phpcoding: http://www.phpcoding.cn
thanks
very interesting site... if you can read Chinees. What we don't.
-
visit my website at http://www.phpscriptor.com/ http://www.phpscriptor.com/
--
View this message in context:
Ok, never understood how this worked, so a good explanation would be nice :-)
in my form, my date is: dd-mm-
$date[] = self::createElement('text', 'mydate')
-addValidator('Date', '-MM-DD', array('DD-MM-'))
but for inputting it in my mysql the format needs to be -mm-dd.
my second question about dates. I have a given week and year. Now I want the
dates of all days in that week. Let say week 15, year 2009 (starts on
monday). So
monday = 06-april-2009
...
sunday = 12-april-2009
this is the code I have to calculate that. Is it possible to do with Zend
Date?
$week
Hello,
Is it possible to make a login with zend auth and cookies. Problem now: when
the user close the browser, he needs to re-login.
Anyone knows a good tutorial / example?
-
visit my website at http://www.phpscriptor.com/ http://www.phpscriptor.com/
--
View this message in context:
Hey,
I'm using the Zend_Config_Ini for loading my config file.
$config = new Zend_Config_Ini('etc/config.ini', $environment);
When I add a somewhere in my config.ini file, I get this error:
fatal error: Uncaught exception 'Zend_Config_Exception' with message 'Error
parsing
Well, I don't think that's going to work. 'Cause I want to use it for a unix
command.
in my config.ini:
application.job = /usr/local/bin/php /home/admin/domains/app/jobs/job.php
/dev/null 2 /dev/null
With this command I execute a php job in the background with passthru, so
that I don't have
quotes are working fine... thanks
Bart McLeod wrote:
the quotes are indeed required by the ini format AND php 5.3 on *.nix
(we found out lately), the manual has some examples without quotes...
-Bart
-
visit my website at http://www.phpscriptor.com/ http://www.phpscriptor.com/
I'm not sure what you want to do. But if you define public $helper =
'formNote' you should make something like:
class Zend_View_Helper_FormNote extends Zend_View_Helper_FormElement {
public function formNote($name, $value = null, $attribs = null)
{
... bla bla bla
return ...
}
}
try to call the delete function in your model something else, like
deletebyid($id)...
Vibhor Singh-2 wrote:
Hi all,
I have implemented a one-to-many relationship between 2 tables (contests,
contest_winners)
One contest can have many contest_winners
The problem is that when I
Yes you can do this:
$element = $this-addElement('select', 'parent_structure', array(
'label' = 'Parent: ',
'id' = 'parent_structure,
'isArray' = false,
'multiOptions' = $this-_getTreeStrut(), // this get the values and such
for options.
));
Hello there,
I think it's not possible to do with Zend Forms, but can anyone give me some
advice how I could do it the best way. Something like: making the Zend Form
and output it step by step in the view?
I want to set every option in my select a different background-color...
select ...
william0275 wrote:
If you call delete() or update() on a Zend_Db_Table, it *won't* use the
dependencies/trigger system.
Yes, and that's why I think it's useless to use dependencies in Zend. It
will only delete one level.
e.g
category
- subcategory
- subsubcategory
Delete
Well there are some sollutions:
1. put the form values in a session.
2. put your form values in the url
Deepak Shrestha wrote:
Hi,
I need some hint on using paginator with search form.
If I have following code in my controller
=
Would be nice if you told us what your (stupid :-D) blunder was... In case
someone has the same problem, he would not have to ask again...
Deepak Shrestha wrote:
its solved now
Thanks anyway
--
===
Registered Linux User #460714
Currently Using Fedora 8, 10
Ok, maybe I'm totally wrong but can I do something like this and how:
class MyController extends Zend_Controller_Action
{
public $value
public function __construct() {
if($this-_request-getParam('value'))
$this-value = $this-_request-getParam('value');
else
$this-value =
Oooh dammid, init() offcourse. I knew that one :confused:.
I know I can set a default in the getParam(), but I was just giving a simple
example.
-
visit my website at http://www.phpscriptor.com/ http://www.phpscriptor.com/
--
View this message in context:
my structure:
/app
/cache =caching stuff
/etc =config.ini etc...
/forms
/jobs = cronjobs
/languages = languages files
/models
/modules
/module1
/controllers
/views
/helpers
/scripts
/module2
/controllers
/views
/helpers
Deepak Shrestha wrote:
You are PHPScriptor. Arn't you? I like your answering style :-)
Yes i'm. Logged in with the wrong account. Lol, I didn't know I had an
answering style :-)
Deepak Shrestha wrote:
public function setupRoutes(Zend_Controller_Front $frontController)
{
$router
RhythmicDevils wrote:
function indexAction()
{
$this-view-title = Ingredient;
$ingredients = new Ingredients();
$this-view-ingredients = $ingredients-fetchAll();
}
That I would get all the ingredients and all their related data. Something
similar to running the SQL:
try something like this:
self::addElement('submit', 'Save',array('disabled'=true))
self::addElement('submit', 'Save',array('disabled'=false))
Aniketto wrote:
Thanks vahe.
I tried setAttrib('disabled', 'false'), but it didnt worked. Amazingly my
html source code shows button disable
I don't know if this will answer your question, but this is how I do it:
The paginator is set in the controller. I think you could do it in the
model, but that would make things a lot complicater.
Where to define your select, where,... 99% I do in the controller. 'Cause if
not, you need to pass
I'm just recently using the paginator and I also ran into this problem.
I had to do multiple selects on e.g. all my users
$userModel = new UsersModel();
$users = $userModel-fetchAll()-toArray();
foreach($users as $user) {
//... do other selects and add data to users;
}
// put everything in
Deepak Shrestha wrote:
Thanks for the example too. But small question (unclear to me).
do I need to fetch all before feeding to paginator? or I will feed the
select itself?
Maybe through the Zend_Paginator_Adapter_DbSelect? Didn't use it, so don't
know.
Deepak Shrestha wrote:
1. If
your viewscript:
? $this-searchstr ?
does that work?
try something like this:
?php echo $this-searchstr; ?
or
?= $this-searchstr; ?
-
visit my website at http://www.phpscriptor.com/ http://www.phpscriptor.com/
--
View this message in context:
:-) hahaha, you posted it at your first post, but I think we all looked over
it.
:handshake: gladd we could help.
Greetings
-
visit my website at http://www.phpscriptor.com/ http://www.phpscriptor.com/
--
View this message in context:
Try this:
$this-getPost('qsearch');
Deepak Shrestha wrote:
Hi,
I am trying to implement a simple search function. For the test
purpose I am trying to display the search string in my view. This is
how it looks like:
my form
--
class Form_Search extends
I'm assuming that if your method getPost does not exist that your
$request-isPost() and isValid($request-getPost()) will also not work. Try
to do a var_dump of $request-getPost(); and your $request.
Deepak Shrestha wrote:
On Fri, Feb 6, 2009 at 7:01 PM, PHPScriptor cont...@phpscriptor.com
It's not the best way but you can do it like this maybe:
$data = $request-getPost();
echo $data['qsearch];
Just to help you further for this moment... I'll have a closer look later
on...
Deepak Shrestha wrote:
On Fri, Feb 6, 2009 at 10:43 PM, PHPScriptor cont...@phpscriptor.com
wrote
Are you using the default decorators? When I use my own decorators it's
showing the description. When I use de default it never shows the
description. So I don't know 'description' is default 'on'... But strange
thing in your case is that the description is shown with regular
text-fields.
Paul
is, that elements like file, image or submit do not
provide
description out of the box.
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com
- Original Message -
From: PHPScriptor cont...@phpscriptor.com
To: fw-general@lists.zend.com
Sent
Add the description decorator. Something like this... seems te be working...
$this-addElement('file', 'der', array('label' = 'Image File',
'description' = 'Your resulting image. PNG please',
'required' = true,
'validators' = array(
array('validator' = 'Count', 'options' = 1),
=^D
Deepak Shrestha wrote:
Just now I figured out my blunder mistake. The mistake was in this part
=
//add the created form elements in this form
$this-addElements(array($title, $location, $mycaptcha, $submit));
=
I was trying to change the order of
Hmm, I tried it, and seems to be working fine... You didn't use decorators?
Did you look at your html source output? Did you try cleaning up your
browser history?
-
visit my website at http://www.phpscriptor.com/ http://www.phpscriptor.com/
--
View this message in context:
What I know is that there is no caching of the views in Zend (and certaintly
not default)...
If there is caching you should have a directory cache or something in your
directory structure. Try also to make you apache/php cache empty...
Seems something very string 'cause I tested it and it was
Not that I know. But if you post your code, we can have a closer look...
Deepak Shrestha wrote:
Hi,
I changed the order of few elements inside the Form but whenever I
access the form it is showing me the same Form from previous layout.
My update didn't get reflected.
I tried clearing
Hello,
searching on this for hours but can't find the problem.
code
$test[0] = 1;
$test[1] = 2;
$test[2] = 3;
$formElements[] = self::createElement('select', 'test')
-setRequired(true)
-setLabel('Label')
-setMultiOptions($test);
output:
select name=test id=test
Well I would go for one application with a little more complex authorization.
We have also different users who are linked to different companies. And
offcourse only the data from their company can be viewed. So, at the login I
just keep there company-id in a session. (company-id is set in the
I don't know if this is 100% correct... I made this once so...
1. in your view setup you give the path to find the helpers:
class My_Controller_Plugin_ViewSetup extends Zend_Controller_Plugin_Abstract
{
$viewRenderer =
I'll give you my code so you have an idea:
so in the form make the field and fill it with all the data:
$GroupsModel = new GroupsModel();
$groups = $GroupsModel-fetchAll();
$selectGroups = array();
foreach($groups as $group) {
$selectGroups[$group-id] = $group-naam;
}
$group =
Hey there,
I have a little problem with the translation of the form errors. It's
working fine when I do form-validate(), but it's only returning one Error.
Even when there are more Errors.
Strange thing is, if I don't set a translation of e.g. the alpha-validator,
and I fill in a value that is
Hey,
Is it possible to get the action (and controller) name in the view?
I have a menu at the left of my site where I show some tips depending on the
page where the visitors are.
e.g. If the url is http://localhost/php/zend I want to show the visitor a
tip like 'you can download zend free
Hello,
I'm using a feed on my site for news. Now, when the feed site is down my
site crashes. Is there a way for not showing this 'fatal error'? And my
second question: it only crashes after e.g. 15 seconds, but I want to move
on faster. If the rss site is down it has to go further after e.g. 2
.
-- Simone
On Sat, Jan 17, 2009 at 2:39 PM, Chris Weldon ch...@chrisweldon.net
wrote:
On Sat, Jan 17, 2009 at 5:06 AM, PHPScriptor cont...@phpscriptor.com
wrote:
Fatal error: Uncaught exception 'Zend_Http_Client_Exception' with
message
Try catching Zend_Http_Client_Exception in addition
maybe if you post some code we can see where you go wrong... unless you got
nothing up till now :-D
-
visit my website at http://www.phpscriptor.com/ http://www.phpscriptor.com/
--
View this message in context:
To add a div around it you can by just adding another decorator after the
label decorator...
-addDecorator(array('last'='HtmlTag', array('tag'='div', 'class' =
'pippo'))
To remove the dt/dt, I think you need to set a custom decorator on the
form itself.
Michel Morelli wrote:
Hi all.
I
this is not 100%. And it's maybe not ment to be used like this but what you
could do is create an hidden field, set a description and make de
description decorator escape = false.
Why can't u use setlabel? 'Cause you can't set the escape to false in the
decorator. It's always escaping.
true, you can't use required for that one. When checked the value is default
'1', not checked default '0'. So there's always a value passed and required
is always true. So I would use a validator e.g. Identical and check for
value '1'. Or you can use the validator GreaterThan and check if it's
Don't think you can. Unles you write your own Zend View Submit. And remove
the name attrib.
class Zend_View_Helper_FormSubmit extends Zend_View_Helper_FormElement
{
public function formSubmit($name, $value = null, $attribs = null)
{
$info = $this-_getInfo($name, $value,
I did some quick research and tests. It's not 100% but it gives you the
structure you want.
1. Problem is that you can't use openOnly on the Label. It 'll always close
the tag after the label. And that the label must have a tag. Why? Don't
know. But that's why I setted it between 'div'.
2. I
I don't know if this is the correct way but you can do it by making an action
public function downloadAction()
{
/* get here all the data you need from the database
* $size = size of the file you can get by readfile()
* $filename = 12f3f1aa1b11ec11dd1dd1.zip (with the path)
*
$session= new Zend_Session_Namespace('postfields');
$fields = $session-results; // get the previous postfields
array_push($fields,$this-_request-getPost()); // add the new postfields
$session-results = $fields; // assign the new postfields
session_write_close();
so you get a 2 dimension
did you try to set your include path in your php code. Something like thos:
set_include_path(
dirname(__FILE__) . '/library'
. PATH_SEPARATOR
. dirname(__FILE__) . '/library/tcpdf'
. PATH_SEPARATOR
. dirname(__FILE__) . '/app/models'
. PATH_SEPARATOR
. dirname(__FILE__) .
check a few things:
- make an empty php file surf to it http://localhost/test.php. Does that
work?
- did you enable mod-rewrite?
- try the suggestion with set_include_path we gave. After the include do a
var_dump(get_include_path()); die();. Give us the output.
- when is this error given? after
try to add seconds then it works:
$expireTime = 01:30:00 AM;
$date-setTime($expireTime, 'hh:mm:ss');
Tim Rupp wrote:
Hi list,
I may be going about this the wrong way, so if that's the extent of
the problem, then I'd appreciate some pointers. Btw, I'm using ZF
1.7.2.
I create a
I checked the zend code. The problem sits here:
Data.php
(line 2776 function private function _time)
$parsed = Zend_Locale_Format::getTime($time, array('date_format' = $format,
'locale' = $locale, 'format_type' = 'iso'));
you get back an array with $parsed['hour']=01 and $parsed['minute']=30
I never used the identical validator before but my first thought was that it
should be something like this:
$password = self::createElement('text', 'newpassword');
-setRequired(true)
-setLabel('Password');
$password1 = self::createElement('text',
What you could do is just test that one element and if succes (or not succes
depends on what you want) continue. Something like this:
$form = new MyForm();
if ($this-_request-isPost()) {
$test =
$form-getElement('Elementname')-isValid($this-_request-getPost('Elementname'));
if($test ==
If you post your code of your form I can have a deeper look at this. If this
nested list is the only thing in your form you can use something like this
(didn't test it... but maybe it helps you):
Let me know your opinion...
this is the code you want:
ul
liMusic/li (level 1)
ul
Great, I found the problem and the solution. So if anyone is interested in
it... here it is:
class MyForm extends Zend_Form
{
// the decorators
public $formDecorators = array(
'FormElements',
'Form'
);
public $elementDecorators = array(
'ViewHelper',
'Errors',
I'm totally lost in the zend forms decorators. Hopefully someone can help
me...
I want to create a form view like this
form
fieldset
legendmain/legend
table
trtdlabel 1/tdtdfield 1/td
trtdlabel 2/tdtdfield 2/td
...
/table
/fieldset
fieldset
legendbla
Hmmm these are very basic questions and should take a lot of time to explain.
All depends on what you have and what you want.
If I were you, I would start with building the database. So you know what
tabels you have, and the fields you need. Then you can start thinking about
your website
enable extension=php_pdo_mysql.dll in your php.ini. That did the trick for me
:clap:
Greetings,
PHPScriptor
--
View this message in context:
http://www.nabble.com/%27The-mysql-driver-is-not-currently-installed%27-tp16043858s16154p16233416.html
Sent from the Zend Framework mailing list archive
75 matches
Mail list logo