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
On Aug 13, 12:03 am, sanedevil sanede...@gmail.com 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
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 s...@masterscommission360.com wrote:
Also- I just had an idea... it is kind of janky
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 a
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
as far as i know the validations can be called statically:
Validation::cc() etc
On 13 Aug., 09:55, Wilhelm wilhelm.ellm...@gmail.com 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
that's what i was wondering :)
On 13 Aug., 09:31, AD7six andydawso...@gmail.com wrote:
On Aug 13, 12:03 am, sanedevil sanede...@gmail.com 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
Yes, I already do this. Create /app/models/credit_card.php;
?php
class CreditCard extends AppModel {
var $name = 'CreditCard';
var $useTable = false;
var $validate = array(
'card_number' = array(
'notempty' =
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;
?php
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
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
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...
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
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
jeremybu...@classoutfit.com wrote:
I let the card processing company do that - is there a way to do it locally
before submitting? I'd be interested if
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
so you would suggest auto_increment?
On 13 Aug., 10:48, Jeremy Burns | Class Outfit
jeremybu...@classoutfit.com 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
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
On Aug 12, 11:06 pm, schaefer marksch...@web.de 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
On Aug 13, 9:29 am, ali ali.awan.e...@gmail.com 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');
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
jeremybu...@classoutfit.com 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
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
On Aug 13, 11:24 am, Tomfox Wiranata tomfox.wiran...@gmail.com
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
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
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);
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
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 s...@masterscommission360.com wrote:
Seriously... a while? You're right... the time will eventually come.
Using
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,
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
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
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 thiagopt...@gmail.com wrote:
Hey
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 Aug 13, 4:19 pm, sanedevil sanede...@gmail.com 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
On Aug 13, 4:19 pm, sanedevil sanede...@gmail.com 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
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)
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
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
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,
bah, sorry... i didn't notice there was a second page...
On Aug 13, 10:53 am, Anthony anthony.c.fra...@gmail.com 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
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 rolandp...@gmail.com wrote:
Hi.
I'm developing a project which needs to access two databases in a
single sql query (or
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,
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 rolandp...@gmail.com wrote:
Hi.
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 anthony.c.fra...@gmail.com wrote:
bah, sorry... i didn't notice there was a second page...
On Aug 13, 10:53 am, Anthony anthony.c.fra...@gmail.com wrote:
42 matches
Mail list logo