Mikee Freedom írta:
it's just gone 9am down here in NZ :)
you can deinfe the functions in /app/app_model.php if you think they
will be used by multiple models e.g. unique. or you can place them in
the particular model that requires that validation method
/app/models/example_model.php.
i'm pretty sure it would be. i am starting with the basics and getting
my core cake development down before i start down the ajax track.
something to look forward to.
i'm sure there might be a tutorial in the wiki. or you could use the
cake search to see if anyone has posted something about it.
evening all,
just something i was pondering...
you might have pondered previously...
i had a quick search through the groups and found this post (and
paste) which was of interest.
Hi Darren,
I don´t think Xampp enables mod_rewrite in apache by default.
If
http://localhost/cake/index.php works
and
http://localhost/cake/Doesnt/Exist gives you a server 404 page
See http://manual.cakephp.org/chapter/installing section 5, on how to
enable mod_rewrite.
HTH,
AD7six
Well, it's not been working properly for me either, but I just assumed
it was something I was doing wrong rather than a problem with Cake. Can
anyone else confirm this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Now, I know it would be best practice to do this on a case by case
basis... but i was just curious if it would be possible and if anyone
currently employs it. and obviously if they did, what trouble they ran
in to along the way.
don't see any reason why it wouldn't be possible
///
hi
as described in the subject, I've went through a small problem with scaffolding:
it looks like the order of the foreign key fields in the database
table and the order of the assocation definition in a model's
$belongsTo *must* be the same to make scaffolding work
exemple:
I have a table
Hello Friends Just click on this link and download new games, movies, new software and much much more. Visit this site and enjoy. http://vip.netsurf.ru/browse/?r=215390
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
I am writing a Users Controller and need to generate a password if
somebody has forgotten theirs, what is the cleanest way to generate a
short password with numbers and letters?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
There are indeed a couple of issues regarding the postgres driver.
Some of them i've reported in trac. With patches. Then again, i've no
in-depth knowledge of the cake db layer and it's interactions so yes
i might have fubarred something else in the process :)
But it's great to hear that you,
Hello,
Could you show me some tutorial and/or documentation about more table
rows in one form?
--
Ámon Tamás
http://amon.hu
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this
Hi all,
which AJAX engines (other then prototype.js) are You successfully using
with CakePHP, guys? Should You please share with us some limits of Your
solutions?
I can't help myself, but in cases I need just one little ajax-driven
functionality I don't think I need prototype's obesity.
Thx,
Hi There,
Newbie problem :)
I have a table that have values that needs to be looked up in another
table. Is it possible to do this with scaffolding?
Table: notes
Fields:
id
Title
Body
state_id
Table: states
Fields:
id
value
When I view the entries in table notes I
I think you want in the State model
var $displayField = 'value';
if state_id is setup as a foreign key to State.id.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send
I am trying to use AJAX to validate a form, I have a tick box next to
my register form inputs. So when a user enters a username, I want the
javascript to call the script and get a response wether the username is
taken.
I have looked at the AJAX helper manual and can't find much to help me,
I've
I've tried to set the displayField - but this does not seem to change
anything.
To make it a bit clearer: If I create a new Note I would like a
dropdown box for the state_id where it shows the values in the states
table.
I do not want to relate states back to notes because it does not belong
to
I tried using the latest rdBaker with the latest Cake release and it's
asking me to create files and a database table and all sorts of things
that just don't seem right. I gave up on this error:
Fatal: Unable to load view file
homevscreenpublichtmlappviewsrdbakerindex.thtml for action
I tried to include the 'Ajax' helper but it could not find it.
var $components = array('Cookies', 'Logins', 'Geoip',
'RequestHandler');
var $helpers = array('AJAX');
It says
You are seeing this error because the view helper file
app\views\helpers\ajax.php can't be found or
Simplerules wrote:
I am writing a Users Controller and need to generate a password if
somebody has forgotten theirs, what is the cleanest way to generate a
short password with numbers and letters?
I did this today, using:
$chars =
bump
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options,
no one ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more
Tahnks AD7six for your answer!
firstly I changed my table cars_specs to cars_cfields and than I
changed as you suggested..
now the scaffold works, but in my edit form I cannot find nothing about
cars_cfiels...
my ultimate goal is to make a form where I woulkd select the make, the
model name...
Can anyone explain me how to get it working!
The COMPRESS_CSS comment are too few
/**
* Compress output CSS (removing comments, whitespace, repeating tags
etc.)
* This requires a/var/cache directory to be writable by the web server
(caching).
* To use, prefix the CSS link URL with '/ccss/'
Hi,
In my site I want all things should be done through ajax. So I have
created ajax.thtml and kept that file in layouts folder. And in
app_controller I have changed the layout to ajax.
Now the problem is after clicking on any link , will load the
respective page without refreshing the
Hi wluigi,
I think the reason for the sparse documentation is that if everything
is in place it quite simply just works. However not sure it's not the
top of the development list ;).
Try accessing the url /ccss/display.css (or whatever your css file is
named) and action the error messages.
The
Suggestions of how to see what's wrong with generated HTML: Look at it
through Firefox, with the Web Developer extension loaded in. It
includes a toolbar option to 'View Generated Source'.
Don't know if it'll help, but I use it often.
Regards,
- Toby (bigClown) Parent
Download the firebug extension to firefox, so you can see the trasfers.Your ajax layout should not contain any doctype definitio, nor html, head, body tags, because what you're sending isn't a new document but a fragment of html (in general you're sending some data to process)
You can't load any
Hi Bakers,
I'm trying to put together simple Signup page.
I have member model with userinfo fields like
Firstname, lastname, username, password, email etc.
I folowed blog tutrial and implemented logic for
inserting members into table. BUT BUT BUT
Now I want to allow my users to choose one
Can the time helper apply a mask in the view (for example MM/DD/)?
If not, is the best way to do it to modify the time helper itself in
the helpers directory?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
make a new helper for yourself that uses the above (in hindsight I
should of called mine dateWithMask )
in the definition of the helper use $helper = array('Time); then you
can use the existing time helper
I would strongly recommend against changing the existing time helper!
On 8/23/06,
Search cake world for HABTM
(it is the name of the relation you are willing to build : Has And
Belong To Many)
milicic.marko wrote:
Hi Bakers,
I'm trying to put together simple Signup page.
I have member model with userinfo fields like
Firstname, lastname, username, password, email etc.
i can't confirm, but from looking at the html helper in the api i
think there were a lot of methods like inputTag, linkTag, etc that had
been deprecated in favour of shorter method names i.e. input, link,
etc.
most of the methods were still in there but just acted as wrappers.
maybe errorTag has
thanks Jon.
i reckon you might be right there.
it would be well worth a go. and then possibly attack it from the
other angle. include an attribute (array) within my controller that
could list those actions where it is not cool to do an auto-sanitize.
would be very nice to know that i am secure
unconfirmed answer: i think i read somewhere in the manual or the wiki
that this was the case i.e. the foreign keys had to be in order.
can lead to trouble if you don't know about it ;)
On 23/08/06, clemos [EMAIL PROTECTED] wrote:
hi
as described in the subject, I've went through a small
could you expand a little?
do you mean updating multiple models on a single page?
i.e. a User and a UserDetail?
On 24/08/06, Ámon Tamás [EMAIL PROTECTED] wrote:
Hello,
Could you show me some tutorial and/or documentation about more table
rows in one form?
--
Ámon Tamás
http://amon.hu
Hello,
I want to use an url as a parameter in a cake function through the
url. Something like this:
in index.thtml I have:
?php
echo $html-link(mylinktitle, /orders/show/ .
urlencode(http://www.domain.com/text?abc=12;);
?
Trying to use the parameter like this in the controller:
Right, that's what I was sort of thinking. I think getting more into
helpers is going to interesting. Thanks, again.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email
morning mate,
it is difficult to outline (in any kind of short format) exactly what
you should do. personally, before i got anything to display the way i
wanted it to i ran through the blog example and played around a little
bit with the model, controller, and view examples provided therein.
here is my general rule of thumb, if I do something more then twice in views, rather then do it a third time I add it to one of my common helpers, if there is something close already in an existing helper, I try to leverage that work. Every once in a while I revisit and try to refactor my helpers.
Mikee Freedom írta:
could you expand a little?
do you mean updating multiple models on a single page?
i.e. a User and a UserDetail?
I like to edit more record in one view. Every record is ano row with
edit fields and bottom on the page a submit button.
On 24/08/06, Ámon Tamás [EMAIL
so you would like to edit multiple Models at once?
i.e. Listing many Users on a single page and updating all of their
details with a single click of the save button?
http://groups.google.com/group/cake-php/browse_thread/thread/dd3611eb91836bee
On 24/08/06, Ámon Tamás [EMAIL PROTECTED] wrote:
Mikee Freedom írta:
so you would like to edit multiple Models at once?
i.e. Listing many Users on a single page and updating all of their
details with a single click of the save button?
http://groups.google.com/group/cake-php/browse_thread/thread/dd3611eb91836bee
Yes! This is. I searched
sounds like a plan. if i get the time i might see if i can put it in.
i haven't posted in the wiki before.
good night / morning to you,
freedom
On 24/08/06, Ámon Tamás [EMAIL PROTECTED] wrote:
Mikee Freedom írta:
so you would like to edit multiple Models at once?
i.e. Listing many Users
Flash Platform :D (Flash/Flex 2) through CakeAMFPHPOn 8/23/06, Olivier Percebois-Garve [EMAIL PROTECTED]
wrote:I love moo.fx. (uses a lite version of prototype)But the most promising theses days is probably jquery. (encapsulates
also a part of moo.fx)mouth wrote: Hi all, which AJAX engines (other
it would be well worth a go. and then possibly attack it from the
other angle. include an attribute (array) within my controller that
could list those actions where it is not cool to do an auto-sanitize.
for an idea where to go with that, check out Gwoo's rdAuth, I think
you could quite
Hello, trying to get my first Cake app live and it runs fine locally.
Uploading to the production server requred me to add a RewriteBase
statement to my htaccess to add the home dir to the URL, etc. It works
for all index pages, but any link with a corresponding view other than
index
also, your modelling is inconsistent with 'real-life'. in your case,
ingredient is just a combination of raw_materials w/ a quantity,
joined to a certain recipe id.
Surely you want another table that joins many raw materials, in their
different quantities, to ingredients. Then you want many
I'm trying to integrate CakePhp into an existing PHP application. Due
to the not a file RewriteCond statement in the .htaccess file in
/webroot, if I have a php file /webroot/noncake.php, then going to
www.example.com/noncake.php will get me that file without running any
cake code.
What I'd like
I moved all of my legacy files to the view directory of my controller.
I then added this to the top of my .htaccess
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} ^(.*)php$
RewriteRule ^(.*)\.php$
This worked well but I wonder if there is an easier way to use the
helper in just the tr tag itself. Ruby, for instance, uses a little
'cycle' scriptlet within the tag. Ex: %=cycle(white, gray) I am
just curious if it is possible without making the table info into an
array. I found it pretty
Thanks for the added advice. That worked really well. I made a new
slightly modified function in the time helper and used:
echo $html-link($time-niceMonth($a['Post']['created']), /posts/)?
So simple once you get the basic idea.
--~--~-~--~~~---~--~~
You
51 matches
Mail list logo