Thank you for your excellent job.
I've seen the guestbook page.
But I can't see any guest I inserted into the database on the webpage.
Neither mysql nor sqlite.
Did I miss anything?
2009/6/23 Martin Martinov
> 2009/6/23 kun niu :
> >
> >
> >
> > Sudheer Satyanarayana wrote:
> >>
> >> Niu Kun wro
'Twas brillig, and Brenton Alker at 23/06/09 04:22 did gyre and gimble:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
awesome wrote:
I am new in Zend and relational database design.
I have two tables that I would like to join in one so that certain values
from 1st table are replaced with assoc
This is true of all HTML forms (AFAIK). I would approach this by having both
forms submit to the same action (as you must), and using the redirector to
conditionally redirect to the desired ultimate action, something like:
MyController.php:
public function myFormAction()
{
if($this->getRequest(
Also, if you have different actions depending on the button that submits
the request, you could
use Javascript to alter the "action" of the form prior to submit.
The form tag looks like:
The inputs look something like:
value="Local" />
value="LIVE!" />
And the setAction function som
Thank you Brenton, thank you Colin :-D
I used left join with the same logic and it does the trick.
Again thanks
Colin Guthrie-6 wrote:
>
> 'Twas brillig, and Brenton Alker at 23/06/09 04:22 did gyre and gimble:
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>> awesome wrote:
>>> I
Watch out with javascript solutions, since it might give you trouble
with submits by pressing the Return key to submit a form.
Gerard
Ramon de la Fuente wrote:
Also, if you have different actions depending on the button that
submits the request, you could
use Javascript to alter the "action"
Actually.. submitting by Return key or Space fires the onClick event on
the submit buttons. (go figure)
[Google Chrome 2.0.172.31, IE 8, FF 3.0.11]
Ramon
drm wrote:
Watch out with javascript solutions, since it might give you trouble
with submits by pressing the Return key to submit a form.
Well, even if it works on some (or most) browsers, it's not the most wonderful
option.
The best is imho to provide your local url as action. By pressing the submit
button for your remote site you can change the action with javascript. If
javascript is not enabled, you can always check serversi
hi,
i'm making an application in which the user have to logon in order to get
access to the real 'goodies'.
in my authentication action in my index controller i'm doing this when the
user is verified:
$sesuser = new Zend_Session_Namespace('user');
Zend_registry::set('user', $user);
At another page, you don't set the session namespace object into the registry.
The registry has to be setup every time there is a page request. If you don't
set the session namespace into the registry, then you can't access it. So
create a plugin, resource or whatever where you do the same thing
Hi Jurian,
thanks for your swift answer. i'll try to do as you describe.
Yes, i'm aware of the zend_auth stuff, but i dislike the zend_db* - and
hence the zend_auth - methods since they work in a non-object oriented way.
all my db access is done using outlet-orm. It a much nicer DB interface in
Anyone?
Why this validator use cache at all?
Regards,
Sasa Stamenkovic.
umpirsky wrote:
>
> It works without int validator, you point at Zend_Locale which I don't use
> on this site, right?
> So, what would be the fix if I want to keep this validator?
>
> Regards,
> Sasa Stamenkovic.
>
>
>
-- umpirsky wrote
(on Tuesday, 23 June 2009, 07:07 AM -0700):
> Anyone?
>
> Why this validator use cache at all?
Zend_Translate has optional cache integration, and is being consumed by
Zend_Locale, which is in turn being used internally in the validator.
I'm looking into why, and will get back t
That kite only flies if the submit button is actually focused. If a text
field is focused, otoh. go figure.
Ramon de la Fuente wrote:
Actually.. submitting by Return key or Space fires the onClick event
on the submit buttons. (go figure)
Hehum,
thats ok, but since I'm not using Cache nor Translate, this shouldn't
happen.
Thanks for your help.
Regards,
Sasa Stamenkovic.
umpirsky wrote:
>
> Anyone?
>
> Why this validator use cache at all?
>
> Regards,
> Sasa Stamenkovic.
>
>
> umpirsky wrote:
>>
>> It works without int v
-- umpirsky wrote
(on Tuesday, 23 June 2009, 08:17 AM -0700):
> thats ok, but since I'm not using Cache nor Translate, this shouldn't
> happen.
Again, the Int validator is using Zend_Locale, which is using
Zend_Translate, which is using Zend_Cache -- and apparently
Zend_Translate is instantiating
Yes, i know that, but integer is integer, why use locale at all. Integer is
integer in USA and in Serbia :) For instance Zend_Validate_Alnum is not
using it, then I don't see why Zend_Validate_Int use it, but it looks that
for some locale value 5,25 is valid integer, which is also wired.
I'm usin
Thank you for all your suggestions guys.
I can see why javascript would be a useful choice for this problem but I
have opted to figure out the action to perform server-side, using php to
determine which submit variable is present in the POST variables and its
seems to be working for me (so cheer
Well in GB one thousand is 1,000 and the floating point is a dot (0.20ct). In
The Netherlands it's exactly the opposite: €10.000,00 is correct. So where
1.000 in GB is *not* an integer, in The Netherlands it is.
R, Jurian
--
Jurian Sluiman
Soflomo.com
Op Tuesday 23 June 2009 17:42:57 schreef u
@Jurian Ah, right, right, forgot about that :)
Regards,
Saša Stamenković.
--
View this message in context:
http://www.nabble.com/Strange-Zend_Form-cache-problem%2C-please-URGENT-tp24148767p24167352.html
Sent from the Zend Framework mailing list archive at Nabble.com.
What about using _forward() instead?
Regards,
Saša Stamenković.
sagittariidae wrote:
>
> Thank you for all your suggestions guys.
>
> I can see why javascript would be a useful choice for this problem but I
> have opted to figure out the action to perform server-side, using php to
> determin
Well, I don't think that should apply, though.
Validate_Int implies that you are validating to the native int datatype, not a currency. Perhaps
some of this functionallity should be split into a Zend_Validate_Currency.
On 23/06/2009 8:55 AM, Jurian Sluiman wrote:
Well in GB one thousand is 1,
The only thing that comes to mind is to have your action render a form
with the necessary inputs (probably hidden) whose action is set to the
remote site and that uses Javascript to automatically cause the form
to submit itself. Alas, you're back to Javascript again. You could
leave a submit button
Well, if you validate form inputs, you're *always* validating against strings.
So it's not possible to validate against other types because they are always
strings (correct me if I'm wrong).
Next, I think a validation for an integer data type isn't necessary to
facilitate for ZF, because the bu
Hi,
I list YouTube videos with Zend_Gdata_Youtube.
>From youtube I get duration in seconds.
I made conversion with Zend_Measure with following code:
// example: duration 188s
$input = new Zend_Measure_Time($videoEntry->getVideoDuration(),
Zend_Measure_Time::SECOND);
// example outputs 3.13min
On 23 Jun 2009, at 17:23, Jurian Sluiman wrote:
Next, I think a validation for an integer data type isn't necessary
to facilitate for ZF, because the built in php function is_int()
would do enough. Therefore, if you need to validate an integer with
a validator, I think the only requirement
Marko,
I list YouTube videos with Zend_Gdata_Youtube.
From youtube I get duration in seconds.
I made conversion with Zend_Measure with following code:
// example: duration 188s
$input = new Zend_Measure_Time($videoEntry->getVideoDuration(),
Zend_Measure_Time::SECOND);
// example outputs 3.
Jason,
But when you have a german user then he will enter "1.000,50"
Your server is configured to english and accepts only "1,000.50"
So whatever your user enters, it does not validate because you expect always
english regardless of what the user really does and where he lives.
Your expectati
I am perfectly aware of that; I wasn't attempting to debate localization at all. I was simply
recommending that maybe, just maybe, there should be different validators for what I'd call a
"locale aware non-floating point number" and what PHP considers and integer.
On 23/06/2009 10:47 AM, Thom
-- Thomas Weidner wrote
(on Tuesday, 23 June 2009, 07:47 PM +0200):
> But when you have a german user then he will enter "1.000,50"
> Your server is configured to english and accepts only "1,000.50"
>
> So whatever your user enters, it does not validate because you expect
> always english regardl
Ok thanks, I will try that. But wouldn't that be a pretty heavy weight solution
to this problem, since an entire dynamic object needs to be created and garbage
collected just to pass a string literal in? Surely there must be a more
efficient solution :(
Regards,
Kendall Bennett, CEO
A Main Hob
On Tue, Jun 23, 2009 at 1:47 PM, Thomas Weidner wrote:
> Jason,
>
> But when you have a german user then he will enter "1.000,50"
> Your server is configured to english and accepts only "1,000.50"
>
> So whatever your user enters, it does not validate because you expect always
> english regardless
Thanks for inspiration Andrew,
here is my patch - added to bootstrap:
protected function _initLocale() {
Zend_Locale::setCache(
Zend_Cache::factory(
'Core',
'File',
array(),
On Tue, Jun 23, 2009 at 1:47 PM, Thomas Weidner
wrote:
Jason,
But when you have a german user then he will enter "1.000,50"
Your server is configured to english and accepts only "1,000.50"
So whatever your user enters, it does not validate because you expect
always
english regardless of what
I believe Matthew suggested throwing a digits filter on up front.
Perhaps I misunderstood and he was talking about the internal workings
of the validator itself such that
if ($value = Zend_Filter::get($value, 'Digits')) {
On Tue, Jun 23, 2009 at 2:51 PM, Thomas Weidner wrote:
>> On Tue, Jun 23,
But when you have a german user then he will enter "1.000,50"
Your server is configured to english and accepts only "1,000.50"
So whatever your user enters, it does not validate because you expect
always english regardless of what the user really does and where he
lives.
Your expectation of "nat
Argh. Hit the wrong key and the message gets sent before it's ready.
At any rate, the discussion got me to look at the filters and
validators again and to try some things out.
$x = '1,500';
Zend_Debug::dump(Zend_Validate::is($x, 'Int'), 'Is Int in ' .
Zend_Version::VERSION);
// Is Int in 1.7.0
Hi, i am creating a feed using a lot of examples over the web, but it gives
me an exception...
Fatal error: Uncaught exception 'Zend_Feed_Builder_Exception' with message
'link key is missing' in C:\AppServ\www\NoPe\Zend\Feed\Builder.php:353 Stack
trace: #0
C:\AppServ\www\NoPe\Zend\Feed\Builder.p
--- Begin Message ---
And how to make id dynamical? So it can be rendered differently dependent on
where i am?
On Mon, Jun 22, 2009 at 6:36 PM, Josh Team wrote:
>
> xxx
>
> after and before
>
> On Mon, Jun 22, 2009 at 11:34 AM, Joakim Gerth wrote:
> > Hi all,
> > I would like to render a
Hi all, just a quick note that I'll be doing a webinar tomorrow at 8AM
PST about Zend's new EC2 and S3 services:
http://www.zend.com/en/company/news/event/webinar-taming-amazon-web-serv
ices-with-zend-framework
I'll be demonstrating these services in an application + I'll leave 20
minutes
There is a misplaced whitespace on line 11.
It must be $entry['link'] instead of $entry['link'].
-- Jan
> Hi, i am creating a feed using a lot of examples over the web, but it gives
> me an exception...
>
> Fatal error: Uncaught exception 'Zend_Feed_Builder_Exception' with message
> 'link key i
[...] instead of $entry['link '].
> There is a misplaced whitespace on line 11.
>
> It must be $entry['link'] instead of $entry['link'].
>
> -- Jan
>
>> Hi, i am creating a feed using a lot of examples over the web, but it gives
>> me an exception...
>>
>> Fatal error: Uncaught exception 'Zend_
I'm looking for a sanity check for my ZF connection to a mysql master/slave
architecture. My Db configuration is MySQL Master and three slaves. The
three slaves are behind a load balancer with linux hearbeat so to php the
slaves are a single connection. To date I have been using two Zend_Db
connec
in models you can do something extending Zend_Db_Table
On Wed, Jun 24, 2009 at 8:46 AM, wadearnold wrote:
>
> I'm looking for a sanity check for my ZF connection to a mysql master/slave
> architecture. My Db configuration is MySQL Master and three slaves. The
> three slaves are behind a load bala
44 matches
Mail list logo