[fw-general] Zend_Log - XML not really usable?

2007-10-31 Thread ViShap
Hi all!

 

I have a Problem using Zend_Log with XML. Is there a way to build a VALID
XML-Document using the XML-Writer?

By now, the writer produces only (useless) XML-Trees. No XML-Declaration, NO
Root-Element containing all the Logs..

How should I read this out?

 

(Or am I simply too stupid?)

 

Regards

ViShap



RE: [fw-general] Zend_Db_Table_Ralationships and select()

2007-10-24 Thread ViShap
Thank you for this respond!

Err, is there a way to stop the automatic describe ?
If it is, I will change the structure tonight to Zend_Db_Table \o/
(otherwise the overhead is no good  :( )

Regards
ViShap

-Original Message-

(...)
Okay, only *now* have you indicated what you were trying to accomplish.
And yes, you can do this:

$adapter = $Info-getAdapter();
$where   = $adapter-quoteInto('users.nick = ?', 'fooBar')
 . ' AND users.nick = users_ID';
$Info-update($fields, $where);




RE: [fw-general] Zend_Db_Table_Ralationships and select()

2007-10-23 Thread ViShap
And where is my advantage doing this?

I fire another totally useless query (to get the structure of the table) and 
have to use a subquery inside my code.

 

Doing this makes Hardcoded solutions better and faster?!

 

Is there no way simply doing this by  $info-update($fields, ‘users.nick = 
‘fooBar’ AND users.nick = users_ID’) or similar (leaving the users. ?)

 

Otherwise a joined update would be useful oO

Update()

-join(‘users’, …)

 

regards

 

From: Bryce Lohr [mailto:[EMAIL PROTECTED] 
Sent: Dienstag, 23. Oktober 2007 19:39
To: ViShap
Cc: fw-general@lists.zend.com
Subject: Re: [fw-general] Zend_Db_Table_Ralationships and select()

 

It appears you're trying to do this:

$info-update($fields, user_id = (SELECT id FROM users WHERE nick = ?) = 
$userNick);

As long as your nicks are unique, this will work. Note that this will produce 
an error on MS SQL due to a PHP bug.

Regards,
Bryce Lohr

ViShap wrote: 

I can't see how to update  (sorry, my mistake, not select *doh* ;) ) this?
In the Manual I can't find a part, where it is described, how to do this?
 
How should I do this:
 
Table User:|   Table Info
ID |   user_ID
Nick   |   information
 
Now let´s say classes are named like the tables, all Relationships have been 
entered.
 
How can I now do an Update like this:
 
$Info-update()   doing the following:
 
Update Info.information where Info.user_ID is the to user.Nick 
corresponding user.ID ?
 
For example:User dummy has ID 23.
Now I want to update Info.information only knowing the dummy!
 
Sorry, I don´t understand how it should work.
 
Best regards  and thanks for the help
ViShap
 
-Original Message-
From: Matthew Weier O'Phinney [mailto:[EMAIL PROTECTED] 
Sent: Montag, 22. Oktober 2007 21:50
To: fw-general@lists.zend.com
Subject: Re: [fw-general] Zend_Db_Table_Ralationships and select()
 
-- ViShap  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] wrote
(on Monday, 22 October 2007, 08:34 PM +0200):
  

I have the following Problem:
 
How can I write this statement using $db-select() ?
 
 
 
UPDATE `register`,`users`


 
You can't. Zend_Db_Select only does SELECT statements, not UPDATE or
DELETE.
 
Now, that said, there are ways to make this easier. Take a look at the
Zend_Db_Adapter_Abstract::insert() and update() methods, as well as the
related methods in Zend_Db_Table_Abstract.
 
snip
 
  

Another thing:  Today I looked at Zend_Db_Table and Zend_Db_Table_Relationships
 
But there I had the same question. Can I achieve this Query using the
Zend_Db_able_Relationships – without using multiple querys?


 
You *can* do it with Zend_Db_Table. Again, look at the update() method;
the 'where' clause can refer to another table.
 
  


RE: [fw-general] Zend_Db_Table_Ralationships and select()

2007-10-23 Thread ViShap
OK, thanks a lot.

Hopefully there will be a good ORM-solution for Zend Framework soon J

 

Regards

ViShap



Re: [fw-general] Zebd_Session bugs me :(

2007-10-14 Thread ViShap
I found the Bug:

When inside the template a img wioth an EMPTY src occurrs, it it rendered 2
times?!

img src= makes ZF behave like repeating the render?
(in the session using number++:

page1 - page2 (last - current)
page3 - page4 (last - current)

dunno why.

regards
vishap

2007/10/12, ViShap [EMAIL PROTECTED]:

 I will look through my code once again - there must be an error when it
 works a Terre´s system.

 perhaps only my fault  :(
 but its strange.. :/

 regards

 2007/10/12, Ralph Schindler  [EMAIL PROTECTED]:
 
  Hey, I was at zendcon all this week, as soon as I get back in town (on
  sunday) ill look into your problem and have an answer.
 
  -ralph
 
  ViShap wrote:
   Today I installed a fresh XAMPP with PHP 5.2.4
  
   SAME PROBLEM!
  
   The Session-values do whatever the like - be random as hell  :(
   It realls looks like the session saves the command and executes it
   before output :(
  
   that suxx  :( :(
  
   What can I do?
   I dunno wht I do wrong?
  
   regards
  
   2007/10/11, Kevin McArthur [EMAIL PROTECTED]
   mailto:[EMAIL PROTECTED]:
  
   Check your php version. Zend_Session is incompatible with php v =
  5.2.0
  
   - Original Message -
   *From:* ViShap mailto:[EMAIL PROTECTED]
   *To:* Zend Framework General mailto:
  fw-general@lists.zend.com
   *Sent:* Thursday, October 11, 2007 10:13 AM
   *Subject:* [fw-general] Zebd_Session bugs me :(
  
   Hi all readers!
  
   Following code:
  
   ||$sez  = new  Zend_Session_Namespace('rex');
   $x  = $sez- ass ;
   $aff = (int) rand( 1,20);
   echo 'new: ' . $aff .'  -  old: '.  $x;
   $sez-unlock ();
   $sez-ass =  $aff;
   $sez-lock ();
  
   Now i expect to happen that when reloading the page:
  
   ||new 1 old 4
   new 5 old 1
   new 7 old 5
   new ... old 7 
  
   But the value in the Session changes RANDOMLY - It makes what
  IT
   wants :(
   for example:
  
   new 3 old 6
   new 5 old 1
   new 9 old 2
   ||...
  
   :(
  
   Is it my great stupidity or is it a bug?
   Dunno - But if you could help me...
  
   reagrds
   ViShap
  
  
   ||
  
  
 
 



Re: [fw-general] Zebd_Session bugs me :(

2007-10-12 Thread ViShap
Today I installed a fresh XAMPP with PHP 5.2.4

SAME PROBLEM!

The Session-values do whatever the like - be random as hell  :(
It realls looks like the session saves the command and executes it before
output :(

that suxx  :( :(

What can I do?
I dunno wht I do wrong?

regards

2007/10/11, Kevin McArthur [EMAIL PROTECTED]:

  Check your php version. Zend_Session is incompatible with php v = 5.2.0

 - Original Message -
 *From:* ViShap [EMAIL PROTECTED]
 *To:* Zend Framework General fw-general@lists.zend.com
 *Sent:* Thursday, October 11, 2007 10:13 AM
 *Subject:* [fw-general] Zebd_Session bugs me :(

 Hi all readers!

 Following code:

 $sez = new  Zend_Session_Namespace('rex');
 $x  = $sez-ass ;
 $aff = (int) rand( 1,20);
 echo 'new: ' . $aff .'  -  old: '.  $x;
 $sez-unlock ();
 $sez-ass =  $aff;
 $sez-lock ();

 Now i expect to happen that when reloading the page:

 new 1 old 4
 new 5 old 1
 new 7 old 5
 new ... old 7 

 But the value in the Session changes RANDOMLY - It makes what IT wants :(
 for example:

 new 3 old 6
 new 5 old 1
 new 9 old 2
 ...

 :(

 Is it my great stupidity or is it a bug?
 Dunno - But if you could help me...

 reagrds
 ViShap





[fw-general] Zebd_Session bugs me :(

2007-10-11 Thread ViShap
Hi all readers!

Following code:

$sez = new Zend_Session_Namespace('rex');
$x = $sez-ass;
$aff = (int) rand(1,20);
echo 'new: '. $aff .'  -  old: '. $x;
$sez-unlock();
$sez-ass = $aff;
$sez-lock();

Now i expect to happen that when reloading the page:

new 1 old 4
new 5 old 1
new 7 old 5
new ... old 7 

But the value in the Session changes RANDOMLY - It makes what IT wants :(
for example:

new 3 old 6
new 5 old 1
new 9 old 2
...

:(

Is it my great stupidity or is it a bug?
Dunno - But if you could help me...

reagrds
ViShap


Re: [fw-general] Important! AJAX serverside?

2007-07-16 Thread ViShap

Well, ok.

Lets buy SOAP-stuff  :(

regards

2007/7/15, Juri Kühn [EMAIL PROTECTED]:


 I dont think so. There are some projects like J4P5 which aim to parse and
execute JavaScipt within PHP, but not the way you need it.


There are tons of sites which takes website snapshots, like websnapr.com.
They use the gecko engine from firefox for example to render the site. I
know there is a SDK for gecko, maybe there is already a wrapper script,
which can be simply called from PHP???

Does anybody has experience in this?


greetings,

Juri


ViShap wrote:



Hi all.


I have a question to Zend_Http:  Is it possible to load a site containing
JS and especially AJAX-elements?


Or is there ANY possibility to load a site in php and execute the
javascript and then gather the information changed by the JS-Script?


regards



[fw-general] Mercury Mail with Zend_Mail to non-local addresses?

2007-07-14 Thread ViShap

Hi ZF-cracks  ;)

I have a problem with Mercury sending non-local emails.

When I send this to [EMAIL PROTECTED] everything works (afaik), but as soon as I
enter a non-local email-addy... here come the bugs  :(

all the errors and code is to be seen here:

http://zfforum.de/showthread.php?t=581  (only the code and quote-things
matter .. and they are self-explaining -  forum is ger .. but doesn´t
matter)

The smtp-server 'don´t send non-local' is deactivated.

I don´t know where to ask else, so if you have any ideas, PLEASE post theme
here or in the forum ...  NO need to post german, I understand english, too
;)

regards


Re: [fw-general] Wiki / Jira down again

2007-07-14 Thread ViShap

Whats your insert?   :D

2007/7/14, Thomas Weidner [EMAIL PROTECTED]:


Wiki  Jira are one again down...

Maybe we should start a lottery ?
The chances are 50/50... who want's to play ? ;-)

Greetings
Thomas
I18N Team Leader



[fw-general] Re: Mercury Mail with Zend_Mail to non-local addresses?

2007-07-14 Thread ViShap

ALSO, if I make a direct send email from the mercury-server the response
of gmail or my ISP?) is:

Yout IP is not allowed to sedn emails ...

So is there any complication with send()  or where can the error be
localized?

regards

2007/7/14, ViShap [EMAIL PROTECTED]:


Hi ZF-cracks  ;)

I have a problem with Mercury sending non-local emails.

When I send this to [EMAIL PROTECTED] everything works (afaik), but as soon as
I enter a non-local email-addy... here come the bugs  :(

all the errors and code is to be seen here:

http://zfforum.de/showthread.php?t=581  (only the code and quote-things
matter .. and they are self-explaining -  forum is ger .. but doesn´t
matter)

The smtp-server 'don´t send non-local' is deactivated.

I don´t know where to ask else, so if you have any ideas, PLEASE post
theme here or in the forum ...  NO need to post german, I understand
english, too  ;)

regards



Re: [fw-general] Wiki / Jira down again

2007-07-14 Thread ViShap

Also make a tutorial to that and eVry1 is happy  :P

When is it approx finished?  What License?  BSD?  ^^

regards

2007/7/14, Ralph Schindler [EMAIL PROTECTED]:


Better yet, we should create a system, based on the ZF of course, where
CLA members have a chance to be part of the Wiki is down again pool.
Each member can select a date and time slot, if the wiki goes down in
their time slot.. Free T-Shirt.  Pool is then reset for the next Wiki
crash.  You up for that Zend ;)

-ralph

Thomas Weidner wrote:
 Wiki  Jira are one again down...

 Maybe we should start a lottery ?
 The chances are 50/50... who want's to play ? ;-)

 Greetings
 Thomas
 I18N Team Leader





Re: [fw-general] Wiki / Jira down again

2007-07-14 Thread ViShap

ack  :D

2007/7/14, Thomas Weidner [EMAIL PROTECTED]:


Generally it should be very easy to handle this...
Write a program to check if wiki is online, and if the check fails kill
the
server and restart it.
Should be a one hour job to do this.

PS: 10 eur that it will crash once more until monday. ;-)))

Greetings
Thomas

- Original Message -
From: ViShap [EMAIL PROTECTED]
To: Ralph Schindler [EMAIL PROTECTED]
Cc: Thomas Weidner [EMAIL PROTECTED]; fw-general@lists.zend.com
Sent: Saturday, July 14, 2007 8:04 PM
Subject: Re: [fw-general] Wiki / Jira down again


 Also make a tutorial to that and eVry1 is happy  :P

 When is it approx finished?  What License?  BSD?  ^^

 regards

 2007/7/14, Ralph Schindler [EMAIL PROTECTED]:

 Better yet, we should create a system, based on the ZF of course, where
 CLA members have a chance to be part of the Wiki is down again pool.
 Each member can select a date and time slot, if the wiki goes down in
 their time slot.. Free T-Shirt.  Pool is then reset for the next Wiki
 crash.  You up for that Zend ;)

 -ralph

 Thomas Weidner wrote:
  Wiki  Jira are one again down...
 
  Maybe we should start a lottery ?
  The chances are 50/50... who want's to play ? ;-)
 
  Greetings
  Thomas
  I18N Team Leader
 







[fw-general] Important! AJAX serverside?

2007-07-14 Thread ViShap

Hi all.

I have a question to Zend_Http:  Is it possible to load a site containing JS
and especially AJAX-elements?

Or is there ANY possibility to load a site in php and execute the javascript
and then gather the information changed by the JS-Script?

regards


Re: [fw-general] Re: Mercury Mail with Zend_Mail to non-local addresses?

2007-07-14 Thread ViShap

mh, think problem solved 

had nothing 2 do with ZF ..

srrry

regards

2007/7/15, till [EMAIL PROTECTED]:


On 7/14/07, ViShap [EMAIL PROTECTED] wrote:
 ALSO, if I make a direct send email from the mercury-server the
response
 of gmail or my ISP?) is:

 Yout IP is not allowed to sedn emails ...

 So is there any complication with send()  or where can the error be
 localized?

 regards

 2007/7/14, ViShap [EMAIL PROTECTED]:
  Hi ZF-cracks  ;)
 
  I have a problem with Mercury sending non-local emails.
 
  When I send this to [EMAIL PROTECTED] everything works (afaik), but as soon
as
 I enter a non-local email-addy... here come the bugs  :(
 
  all the errors and code is to be seen here:
 
  http://zfforum.de/showthread.php?t=581  (only the code
 and quote-things matter .. and they are self-explaining -  forum is ger
..
 but doesn´t matter)
 
  The smtp-server 'don´t send non-local' is deactivated.
 
  I don´t know where to ask else, so if you have any ideas, PLEASE post
 theme here or in the forum ...  NO need to post german, I understand
 english, too  ;)

How is this a ZF issue? It screams configuration.

Till



Re: [fw-general] Tutorial on session/auth/acl

2007-07-13 Thread ViShap

akrabat.com handles auth afaik.

for the rest study manual and look @ nabble for proposals  (best (plugin)
was afaik also posted at Zend (articles!!!)
search and find  ;)

regards

2007/7/12, Matt Needles [EMAIL PROTECTED]:


I could not find a tutorial that integrates session/auth/acl. The manual
in alphabetic is not that useful. Somebody please send me a link to any
tutorials.


Re: [fw-general] Searching database

2007-07-11 Thread ViShap

Hi josé!

What kind of search should this be?  Full-Text or matching  (LIKE %$string%
) ?

For Like execute a simple Query  select . from . LIKE %$string%  limit ...

for full text i strongly recommend google-searching - many good articles
about it  =)
(i think also zend has sth in their tutorials-section ...

It was when I viewed it in  Beginner Tutorials - Using MySQL Full-text-
...  (26.01.06 ^^)

I hope i helped ya out!

regards

2007/7/11, José de Menezes Soares Neto [EMAIL PROTECTED]:


Hi friends,

I would like to make a search for search user details in my database, how
do I start with it?

Best regards,

José de Menezes



Re: [fw-general] Searching database

2007-07-11 Thread ViShap

oh ...  ;)

do a if(isset($_GET['query']) { .. make you search and display the results
} else {
show the question-form
}

regards

2007/7/11, José de Menezes Soares Neto [EMAIL PROTECTED]:


if a type http://localhost/search?query=123, its ok

but if I type http://localhost/search it shows a notice undefined index



2007/7/11, José de Menezes Soares Neto [EMAIL PROTECTED]:

 i want matching...

 but i try to get $query = $_GET[query]

 and there appears a message:

 *Notice*: Undefined index: query in 
*C:\www\was\application\controllers\FuncionariosController.php
 * on line *81



 *
 2007/7/11, ViShap [EMAIL PROTECTED] :
 
  Hi josé!
 
  What kind of search should this be?  Full-Text or matching  (LIKE
  %$string% ) ?
 
  For Like execute a simple Query  select . from . LIKE %$string%  limit
  ...
 
  for full text i strongly recommend google-searching - many good
  articles about it  =)
  (i think also zend has sth in their tutorials-section ...
 
  It was when I viewed it in  Beginner Tutorials - Using MySQL
  Full-text- ...  (26.01.06 ^^)
 
  I hope i helped ya out!
 
  regards
 
  2007/7/11, José de Menezes Soares Neto [EMAIL PROTECTED]:
  
   Hi friends,
  
   I would like to make a search for search user details in my
   database, how do I start with it?
  
   Best regards,
  
   José de Menezes
  
 
 




Re: [fw-general] consultants?

2007-07-11 Thread ViShap

a quick tip:
1.
use google and inform about MVC  -  there is a big amout of articles about
it - and they are really good.

2.
read the manuals of Zend Framework  -  they are (in most cases ;) ) very
infomrative!

3.
look at tutorials like the one from akrabat.com or the other ones listed and
linked in the Debelopment-area of the zf-webpage!

4.
read a little bit into the code and the start is very very easy  =)

regards

2007/7/11, Hoopes [EMAIL PROTECTED]:


Hi guys,

Apologies in advance if this is not the place for this type of message,
feel free to delete it if so.

My company is making a move from old code to a more framework oriented,
standardized solution. (We'd like to bring in outside help, and our
non-standard way of doing things takes more time to spin them up than
get the work done). So, we're attempting to move to the ZF so hopefully
the MVC-ness of it will allow people to come in and contribute more
easily.

So, we're actually looking for someone to come to the office, and teach
us a bit to get us started on this.
Specifically the Model part of the MVC, but overall education is the
goal. :)

We're a Pittsburgh based company, and if anyone reading this has some
time (and patience), and wants to try to make some money, please email
[EMAIL PROTECTED] with any inquiries for further information.

Thanks
- hoopes



Re: [fw-general] consultants?

2007-07-11 Thread ViShap

I think, if your system is running and you won´t change the database (Mysql
to oracle for ex) the Database-Models are not needed (thats what I think  ;)
)

As Bill said, if you need someone doing things for you or supporting your
start, the jobs-offers @ zend-page will be a good start!
Otherwise:  study the manual, read some code, look at the forums and
maillists to read into the framework.
AND:  ASK!  We are helping new interested people - for sure  =)
But say what concrete problem you have and we can solve it  =)

also its a good idea to search the nabble-pages for already asked
questeions!

me and myself - can´t even think about doing this job for you ... I have
work for 2 months 24/7 here at my list ...  sry  ;)

regards


Re: [fw-general] something about zend_acl

2007-04-23 Thread ViShap

yes, thats the job of acl

givin acces or restricting access to specific roles of users, i.e. guest,
registered, mod, admin have all different levels of access

regards

2007/4/22, José de Menezes Soares Neto [EMAIL PROTECTED]:


hi,

zend framework uses controllers, each controller has a lot of actions,
each action is acessible by groups...
so, with zend_acl, what i do is allow / deny access to these actions??

best regards,

José



Re: [fw-general] Acl and Auth

2007-03-16 Thread ViShap

Look @ developer-zone of zend.com and read the article concerning exactly
this topic ...
page 2 or 3 by now


2007/3/15, [EMAIL PROTECTED] [EMAIL PROTECTED]:


Hi again,

I tried Zend_Auth and Zend_Acl as well. I managed to use Auth
successfully and also managed to implement my own Zend_Acl descendent.

I'm asking myself now how I can combine these two classes. I.e. if I
have a user 'stephan', how and where should I assign roles to this user
('guest', 'member' etc.) and how should I then query access rights to
objects for these roles?

Did you already try this out?

Best regards,

Stephan