Nobody know solution?
On 13 srp, 13:22, Petr Vytlačil wrote:
> Hi is any way how i can display input validation errors in different
> container input?
> For examle a have model address and user model has deliver and billing
> address sou a need in form for greate user account twice inputs for
> a
Second page... that's why I didn't see anyones messages until I saw
the digest.. I am so lame right now.
On Aug 13, 11:14 am, Anthony wrote:
> bah, sorry... i didn't notice there was a second page...
>
> On Aug 13, 10:53 am, Anthony wrote:
>
>
>
> > Thats why they suggested using UUID. The sun
Create a view in the app database if both databases is on the same host.
Also read about mysql federated tables in case each database is on different
host.
http://dev.mysql.com/doc/refman/5.0/en/federated-use.html
On Thu, Aug 12, 2010 at 11:08 PM, Roland Pish wrote:
> Hi.
>
> I'm developing a pr
jmn2k1, sometimes even the network routing messes with database access
speed... We had a problem in which every request passed by the
firewall, even to our own servers! The firewall couldn't handle the
traffic, therefore everything (internet and intranet access) was so
slow.
On Aug 13, 11:17 am,
http://bakery.cakephp.org/articles/view/use-multiple-databases-in-one-app-based-on-requested-url
This might point you in the right direction?
On Aug 12, 3:08 pm, Roland Pish wrote:
> Hi.
>
> I'm developing a project which needs to access two databases in a
> single sql query (or in a single Find
bah, sorry... i didn't notice there was a second page...
On Aug 13, 10:53 am, Anthony wrote:
> Thats why they suggested using UUID. The sun will burn out before you
> duplicate one of those.
>
> On the flip side you could use a bigint for a possible
> 9,223,372,036,854,775,807 products or a regu
Thats why they suggested using UUID. The sun will burn out before you
duplicate one of those.
On the flip side you could use a bigint for a possible
9,223,372,036,854,775,807 products or a regular int will provide you
with 2,147,483,647 products. (Values apply to MySQL)
On Aug 13, 4:24 am, Tom
Sigh I failed again, I also check for the trailing / in my string, so
the regex is as followed.
'page' => '(?!('.$controllers.'|'.$prefixes.')\W+)[a-zA-Z0-9\s]+\/?$')'
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received t
Erm,
'page' => '(?!('.$controllers.'|'.$prefixes.')\W+)[a-zA-Z0-9\s\/]+/?
$'));
ofcourse. :) One more 'problem' is that typing an url as follow:
website.com/pageTitle/ (notice the last /) will not work and redirects
to website.com. Any suggestions on that matter?
On 13 aug, 16:43, Expor wrote:
Above issue is finally fixed. While thinking of this discussion it
occured I might just aswell make a list of prefixes and add it to the
regex. Solution is as follow.
// Make a list of controllers and cache it
$controllers = Cache::read('controllers_list');
if ($controllers === false)
On Aug 13, 4:19 pm, sanedevil wrote:
> Thanks all guys!
>
> seems i cant achieve what i want. I'll change the class name and make
> the changes elsewhere in the app.
>
> as a sidenote (and a general query), cake stresses on convention over
> configuration, but doesn't it provide configuration fo
On Aug 13, 4:19 pm, sanedevil wrote:
> Thanks all guys!
>
> seems i cant achieve what i want. I'll change the class name and make
> the changes elsewhere in the app.
>
> as a sidenote (and a general query), cake stresses on convention over
> configuration, but doesn't it provide configuration fo
Thanks all guys!
seems i cant achieve what i want. I'll change the class name and make
the changes elsewhere in the app.
as a sidenote (and a general query), cake stresses on convention over
configuration, but doesn't it provide configuration for the desperate
and crazy cases (like me ;-) )?
On
Not necessarily your case but once I had a similar problem, it turns
out I was using a hostname for the database server that need to do a
DNS checkout and hence slow the app down. If you're using the ip then
this is not the case.
On Aug 12, 10:14 am, Thiago Elias wrote:
> Hey Guys..
>
> Thanks ev
I got the following problem. I'm trying to set-up a basic CMS in
CakePHP. I've made one before by myself but I was starting to port
more and more CakePHP alike functions into it so I figured I should
just switch to CakePHP completely. However, I'm running into a problem
with the routing. The idea i
if your webserver DOES'NT support mod_rewrite:
on Apache: (1)(2)
on windows IIS: (1)(2)(3)
if your webserver DOES support mod_rewrite:
on Apache: (4)(5)(6)
on windows IIS: (4)(5)(6)
(1) delete all .htaccess files (in root, app and webroot) cause
they're not needed
(2) uncomment in core.php "Confi
I have followed perfectly this guide (
http://mark-story.com/posts/view/creating-simple-ajax-pagination-with-cakephp-1-3-and-mootools
) but it only works at 50%.
I just have two link for pagination: 1 & 2. If I reach page through:
http://my_web.com/items/admin/page:1 the link to page 2 is active,
lol...thx for the sarcasm...;)
was not aware that i can go till 1,8446,744,073,709,551,615.
that might be enough
i'll go with auto incrementTHX a lot
On 13 Aug., 13:41, Sam wrote:
> Seriously... a while? You're right... the time will eventually come.
> Using bigiint as your primary key wil
Seriously... a while? You're right... the time will eventually come.
Using bigiint as your primary key will give you 2^64 rows... roughly
1.8e19... that's over a billion squared. You'd have to add a billion
rows a day for about 50 million years to reach that limit. If your
application will have tha
Hi is any way how i can display input validation errors in different
container input?
For examle a have model address and user model has deliver and billing
address sou a need in form for greate user account twice inputs for
address.
$form->input(Deliveraddress.street);
$form->input(Deliveraddress
Hi I have a table that stores appointments for a sales man each day.
Each appointment is given a date, a link to the user table that holds
the salesman id and a link to the timeslot table which holds the time
of day the meeting is (EG 9.30-9.45).
On add and edit I need to perform some validation t
On Aug 13, 11:24 am, Tomfox Wiranata
wrote:
> only onewhat if all numbers are used? it might take a while but
> the time will come
If you really are going to be creating more than
18,446,744,073,709,551,615 products - I suggest a couple of things:
1) get help
2) use uuids
in the mean time
Use the right data type. If you are concerned about the numbers running out use
an unsigned bigint; that goes to 1,8446,744,073,709,551,615. Would that be
enough for you? ;-)
http://dev.mysql.com/doc/refman/5.0/en/numeric-types.html
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://
only onewhat if all numbers are used? it might take a while but
the time will come
On 13 Aug., 11:09, Jeremy Burns | Class Outfit
wrote:
> I don't know the rest of your set up, but auto increment would seem like a
> really simple solution. It wouldn't need any programming either, which must
On Aug 13, 9:29 am, ali wrote:
> I have 3 languages in my application with many controllers. I have
> used cakePHP translation but i want to break down default.po file in
> to multiple small .po files each for controller.
>
> How can i do this?
__('foo', 'name_of_po_file');
Check the book/api/
On Aug 12, 11:06 pm, schaefer wrote:
> nobody who can help?
What working sql are you trying to execute in cake.
If you're not sure - your asking the question in the wrong place.
hth,
AD
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related qu
I don't know the rest of your set up, but auto increment would seem like a
really simple solution. It wouldn't need any programming either, which must be
a good thing.
You mention re-using numbers - I would guess that re-using a number that
previously identified a completely different (and pote
so you would suggest auto_increment?
On 13 Aug., 10:48, Jeremy Burns | Class Outfit
wrote:
> The number will rise by 1 on each insert (or attempted insert that fails
> validation at the database level) and once a number has been used it is no
> longer available (although it is possible to do a
With regards to validating the security code, I think if this was
possible it would almost defeat the purpose of the security case. I
think the best that you could do it check the security code length.
>From my limited knowledge on credit cards I believe that the standard
in the digits long with A
Hi Guys,
thanks so much for your feedback it has been greatly helpful.
Kind Regards
Wilhelm
On Aug 13, 10:26 am, Jeremy Burns | Class Outfit
wrote:
> I let the card processing company do that - is there a way to do it locally
> before submitting? I'd be interested if there is a method for that
The number will rise by 1 on each insert (or attempted insert that fails
validation at the database level) and once a number has been used it is no
longer available (although it is possible to do a direct insert using SQL, but
not really recommended). It isn't really possible to reserve numbers
i was under the impression, that it makes trouble, when a product will
be deleted and the number is free again. will this number then be
skipped cause auto increment passed it a long time ago?
also i want specific numbers to be reserved. so these ones should be
left out when auto incrementing...
hi.
i am using jquery to load DIVs. now if I press F5 to refresh/reload
the view, the DIVs are cleared. maybe you can help me find a solution
to react on page reloading. this is what I do:
this jquery function reads content from a textarea and tells cake to
render the text in the DIV "#title_con
I let the card processing company do that - is there a way to do it locally
before submitting? I'd be interested if there is a method for that.
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 13 Aug 2010, at 09:20, Louie Miranda wrote:
> How about validating
How about validating proper security code?
--
Louie Miranda
- Email: lmira...@gmail.com
- Web: http://www.louiemiranda.com
On Fri, Aug 13, 2010 at 4:08 PM, Jeremy Burns | Class Outfit <
jeremybu...@classoutfit.com> wrote:
> Yes, I already do this. Create /app/models/credit_card.php;
>
> clas
Yes, I already do this. Create /app/models/credit_card.php;
array(
'notempty' => array(
'rule' => 'notEmpty',
'message' => 'Please enter a credit card
number.',
'required' => t
that's what i was wondering :)
On 13 Aug., 09:31, AD7six wrote:
> On Aug 13, 12:03 am, sanedevil wrote:
>
> > Table name: cons
> > Class name: Con
> > File name: Con.php
>
> > However, windows doesn't allow you to create a file named "Con". Is
> > there a way that I can change the filename (e.g
as far as i know the validations can be called statically:
Validation::cc() etc
On 13 Aug., 09:55, Wilhelm wrote:
> Hi,
>
> I am implementing a e-commerce website, in my project for security
> reasons I am not storing the users credit card details in the database
> but rather that is being handl
Hi,
I am implementing a e-commerce website, in my project for security
reasons I am not storing the users credit card details in the database
but rather that is being handled by a third party.
My question is that I would like to use the cc validation to validate
the credit card number before send
What's so wrong with using the (auto incrementing unique) id field then?
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 13 Aug 2010, at 08:39, Tomfox Wiranata wrote:
> hey sam, thx. the number is sth like a product code. each product will
> be assigned with
hey sam, thx. the number is sth like a product code. each product will
be assigned with a unique number...
seems like an alternative, since i am too stupid to make it with do
while^^
On 13 Aug., 05:22, Sam wrote:
> Also- I just had an idea... it is kind of janky but I think it will do
> what y
On Aug 13, 12:03 am, sanedevil wrote:
> Table name: cons
> Class name: Con
> File name: Con.php
>
> However, windows doesn't allow you to create a file named "Con". Is
> there a way that I can change the filename (e.g. Contact.php), but
> still keep the Classname as Con?
>
> Thanks!
An odd wind
I have 3 languages in my application with many controllers. I have
used cakePHP translation but i want to break down default.po file in
to multiple small .po files each for controller.
How can i do this?
Regards,
Check out the new CakePHP Questions site http://cakeqs.org and help others with
th
43 matches
Mail list logo