Can't seem to find anything on setting default values for form
elements.
Outside of selectTag, that is.
But if I wanted to have a default value for a text input, textarea or
checkbox, is that possible? And would this be the kind of thing that
gets managed in the model, sort of like validation,
I would guess that you may have created a Database table named "Post"
wherease cake is expecting a table called "Posts" which doesn't exist
(as the message says).
If this isn't the problem, I would check your plurals (and I'll eat my
hat)
Cheers,
AD7six
--~--~-~--~~~--
Thanks. I'll be sure to try one out. =)
--~--~-~--~~~---~--~~
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
Beautiful work PhpNut, very happy to see the docs and vids come
together. That's one thing that makes me very excited about this
project. Constant updates.
Every time I come back to the site there's more content to help me on
my way.
Keep up the good work :-)
--~--~-~--~~--
Have you created the table and fields in mysql that are required?
If so, could you post the code that you are having trouble with?
modmans2ndcoming wrote:
> I followed the blog tutorial, everything is in the same case and same
> plurality (singular or plural where specified) but once I set up t
Anytime :)
I find that most of the time, questions like that have always been
answered better than I could ever answer them. The trick is knowing
where to look for them :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gr
Thank you for those links Mika!
--~--~-~--~~~---~--~~
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 P
nice. that makes a lot of sense.
thanks
--~--~-~--~~~---~--~~
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 t
Also the php4 version of the scope operator docs is here
http://www.php.net/manual/en/keyword.paamayim-nekudotayim.php
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send em
Check these two pages:
http://www.php.net/manual/en/language.oop5.paamayim-nekudotayim.php
http://www.php.net/manual/en/keyword.parent.php
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to
The best part of that link was seeing the old topics with new posts
link on the right that said:
Noob : Portabilité applications
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this gr
The best part of that link was seeing the old topics with new posts
link on the right that said:
Noob : Portabilité applications
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this gro
http://groups.google.com.vn/group/Cakephp-fra
--~--~-~--~~~---~--~~
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 ema
What I have done is actually call them 'Misc/field' for the form.
Then, the stuff that would be saved in the record and matches I make
'Model/fieldX'. So, then I just set my $misc variable and the $data
variable in the controller of the result of the form.
--~--~-~--~~~-
Anytime I have this problem I either have tables missing in the
database or the database file is misconfigured (typo). You can do an
if(isset($browser)) before calling the helper. If you do that then you
should see the error that CakePHP is trying to give you. It just can't
because there is cod
I am no expert on OOP, but I think that just says take the parent
beforeFilter method and insert it's code here as well as do this. Kind
of like a tieback.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP"
I followed the blog tutorial, everything is in the same case and same
plurality (singular or plural where specified) but once I set up the
view I got an error:
No Database table for model Post (expected "posts"), create it first.
I have tried playing with the model and the best I can do is to ge
could you explain the parent::beforeFilter() line does?
yes, I know this is one of those things that is probably covered in an
oop guide somewhere, but I can't search punctuation marks (::).
--~--~-~--~~~---~--~~
You received this message because you are subscrib
I don't know French, but it sounds like he's just getting into Cake and
looking for an authentication scheme (sounds familiar).
and more or less confirming that using google translate, I'd say
I'm ready to take a trip to Paris!...
google-translation:
Hello with all, I am initial with cakePH
Some people have reported in previous posts that it seems to be broken.
However, following their advice to use google, i'll confirm good
results can be had by prepending the words 'cake wiki' (no quotes)
before any search string.
--~--~-~--~~~---~--~~
You receive
The 2 screencast on the site have no sound at the moment.I will be create a few with sound over the next few days-- /*** @author Larry E. Masters* @var string $userName* @param string $realName
* @returns string aka PhpNut* @access public*/On 5/11/06, Brenton Simpson <[EMAIL PROTECTED]> wrote:
Am
Am I the only one with this problem?
--~--~-~--~~~---~--~~
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 [EM
Also, urls on the Manual page are changing... they should probably be
static.
--~--~-~--~~~---~--~~
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 unsub
I'm trying it out right now, and so far...
in the last code sample, $this->checkAccess(); should probably be
$this->checkSession();
Also, the login page is throwing an error because the variable 'error'
is not defined, but this might be a PHP mode problem.
--~--~-~--~~~-
*throws confetti*
http://manual.cakephp.org/chapter/19
;o)
I was gonna wait till someone proofed it, but no one has bothered me
about major problems with it.
-- John
On May 11, 2006, at 5:15 PM, calzone wrote:
>
> You beat me to it!
>
> I was very excited to see this chapter in the manual
On May 11, 2006, at 5:11 PM, tom wrote:
>
> But they need to add at least something about hashing...
Yeah I wrote it yesterday because of everyone's comments. I hope it
clears things up a bit.
Its meant to be very simple - It isn't meant as a security article
(I'm not going to mention hash
Thanks for the feedback Calzone and Mika.
The situation I am thinking of is like code control. "Check out" the
object to work on, and while it is checked out you can be certain that
there won't be conflicting edits.
Looks like there is a long climb ahead here.
Regards,
Langdon
calzone wrot
You beat me to it!
I was very excited to see this chapter in the manual magically appear.
I'm very grateful to see this addition and I think it will really help
a lot of us just getting started.
So come on, where's the confetti guys? Jeesh, talk about a low key
announcement.
--~--~-~-
But they need to add at least something about hashing...
--~--~-~--~~~---~--~~
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 grou
It looks like they are at least starting to address this issue:
http://manual.cakephp.org/chapter/19
--~--~-~--~~~---~--~~
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@go
ah... so since the hide and unhide functions flip a bit in the post's
row, they need to be in the model, so when a controller accesses the
data via the model, the model returns the data and the controller has
logic that filters out the posts that have their hide bit flipped.
--~--~-~--~-
I could have sworn I saw this covered at some point, but now I can't
find it here, in the wiki, the api, or the manual.
I have a model with a db table, say cars, and one of my columns is an
enum, say, type('coupe','sedan','wagon','truck').
I'm trying to build a selectTag in my view that is gener
Don't know if this is a bug or if I'm messing something up but when
using Cakeamfphp and a simple model with no relationships it returns
recordSets as expected, however if you have a model that uses belongsTo
and/or hasMany it doesn't return a recordSet. Actually if you use
hasMany it only returns
You might want to read up a bit on MVC patterned programming. It
might give you a better idea of how things work together. The
Wikipedia article is a decent one, I think.
Controllers manipulate logic (often using instantiations of Model
classes) and hand that data to a view.
Since models a
I was looking over the portion of the manual that deals with the model
and the example given shows a model relating to a blog database. My
question is why do they implement the hid and unhide in the model and
not the controller? Shouldn't hide and unhide be a function that you
would want to put in
It does. My model classes are classes that relate to a table in my
database. I automatically get all those cool functions to use in my
controller for fetching and saving data, plus any other functions I
want to create, though most folks doing CRUD probably do not need to
create anything unless the
On May 11, 2006, at 3:33 PM, modmans2ndcoming wrote:
> In the blog tutorial, the model is extremely simple, however, in the
> manual the section on the model is extremely complex and covers a lot
> of built in functions. Are all those functions for the model or are
> they made available to the co
I was looking over the manual while I am also going over the blog
tutorial.
In the blog tutorial, the model is extremely simple, however, in the
manual the section on the model is extremely complex and covers a lot
of built in functions. Are all those functions for the model or are
they made avai
I have been trying to use the search function on wiki.cakephp.orgHas anyone else had trouble with this?It seems that no matter what I search for there are no results.
Thanks,-John
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goog
Ok, it works now, moving instead of copying. Had nothing to do with the
code. But still I would like to know my code represents best practice
with editing these kind of relationships. Please advise, then I will
add this to the Wiki.
--~--~-~--~~~---~--~~
You recei
Ok, first step is solved. The save-procedure must be like this:
$this->Reference->id = $id;
$save['Reference']['id'] = $id; // this line was missing
$save['Folder']['Folder'] = $fIds;
$this->Reference->save($save);
However, now it does a "copy", not a "move" and the source folder is
still includ
Awesome - exactly what I needed. I love this group - so quick and so
right.
--~--~-~--~~~---~--~~
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 unsubs
Larry,
Thanks, you were correct, I was overwriting the new
/app/config/inflector.php with the old
one.
--thanx
--dusty
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send
On May 11, 2006, at 1:48 PM, Garth Braithwaite wrote:
>
> I was working on Graham's bookmark tutorial at
> http://grahambird.co.uk/cake/tutorials/scaffolding.php
> and I keep getting the same error. I think I am missing something.
>
> I downloaded the stable release and unpacked in on my deskto
I was working on Graham's bookmark tutorial at
http://grahambird.co.uk/cake/tutorials/scaffolding.php
and I keep getting the same error. I think I am missing something.
I downloaded the stable release and unpacked in on my desktop and then
uploaded to my hosted server. I set up the database and
Please ask in english.
--~--~-~--~~~---~--~~
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 PROTEC
This is related to
http://groups.google.ch/group/cake-php/browse_frm/thread/7f26efd9e871ddf1
I have two models, References and Folders:
class Reference extends AppModel
{
var $name = "Reference";
/**
* associations
**/
var $hasAndBelongsToMany = "Folder";
/**
*
Nevermind. I thought I had the newest cake, but I was running rc6. It
works now.
--~--~-~--~~~---~--~~
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
I'm using Windows XP Pro SP2 with XAMPP. I've added c:\web\xampp\php
to my path. I went to c:\web\xampp\htdocs\apps\cake\cake\scripts and
typed php bake.php.
Here's what I get:
Fatal error: Call to undefined function env() in
C:\web\xampp\htdocs\apps\cake\cake\config\paths.php on line 185.
Any
To clarify, once using the advanced validation, you can add the
validation needed to the model even if the field is not in the table.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this
Use the advanced validation found at
http://wiki.cakephp.org/tutorials:advanced_validation
--~--~-~--~~~---~--~~
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
Hi.
I'm having some trouble with Controller::redirect() and the use of
plugins. How can i redirect to another plugin? Is it possible?
Say i'm in index action in FooController in plugin foo
(www.example.com/foo). If i want to redirect to bar plugin i'll try
$this->redirect('/bar'). Instead of go
I'm a bit confused as to why my helpers are no longer available to my
layout. I've asked a couple times on the IRC channel, but I've not
been able to stay around long enough to work through the issue, so
here I am. :)
Here's part of my app/app_controller.php:
1 http://www.w3.org/TR/html4/
It seems to me that you did not update the contents of your app/core folder? in particular the inflector.php file in core/On 5/11/06, Dusty <
[EMAIL PROTECTED]> wrote:Larry,I was wrong, there is still a problem. As I said in my first post
everything works with the stable build. Here is my curren
Larry,
I was wrong, there is still a problem. As I said in my first post
everything works with the stable build. Here is my current
error. I have not change any code whatsoever in the app directly from
the stable to the cake_nightly_10_05. 1.xx
Notice: Undefined variable: uninflectedSing
It is for our 2.0 branch when we start working in it.I am removing the build now so others do not get confused.-- /*** @author Larry E. Masters* @var string $userName* @param string $realName
* @returns string aka PhpNut* @access public*/
Larry,Yep, thats it thanks !!So what is the 2.x.x.x. build
Larry,
Yep, thats it thanks !!
So what is the 2.x.x.x. build for ??
--dusty
--~--~-~--~~~---~--~~
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 unsub
It looks like you are trying to use the trunk version of the 2.0 code which does not work.-- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka PhpNut
* @access public*/
--~--~-~--~~~---~--~~
You received this message
THANKS!
Problem solved! ;)
--~--~-~--~~~---~--~~
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 PROTE
Are you looking to lock the record for more than just an instant in
time? Do you mean you need to protect records as if you were checking
out code until the user checks it back in (for instance a person is
editing the contents of an article that someone else would otherwise
also have permission t
My sign-up form can have two errors associated to the Username: leaving
it blank is an error, and choosing an existing name is a different
error. The way I discovered I could deal with this is
tagErrorMsg('User/UserName', 'Username is
required.') ?>
tagErrorMsg('User/UserNameExists', 'A user with
Thanks for the replies. What I learned, though, is that you can have
extra fields in the data and save() won't error out, it just puts in
what matches the DB and ignores what doesn't. It's useful in my case,
but I wonder if it's actually a bug -- you won't get an error if you
misspel a field for e
Bonjour à tous, je suis un débutant à cakePHP et j'aimerais savoir
comment est-ce qu'on peut cacher des éléments (par exemples des liens
vers des pages reservées à l'administrateur du site)?
Lorsque l'utilsateur entre dans le site, il y a une page
d'accès(login/password), et si l'utilisateur est
When I click in debug icon, it automatically calls my root cake url and
appends [EMAIL PROTECTED]:10001
Then I put the real url that I want to debug
If I put the url with DBGSESSID at firefox it works also
--~--~-~--~~~---~--~~
You received this message because yo
>>> [EMAIL PROTECTED] 05/11/06 6:04 AM >>>
Ok, a bit more info.
You need to put the path to your php.exe file in your PATH environment.
Once you do that, open a cmd window and go to the /cake/scripts
directory.
Once there just type "php bake.php".
OH MY GOD!!!
I read your post and glanced at the URL of my application. There
staring me in the face was an underscore...
Yesterday I moved the project to a different development server that
(for some stupid reason) had an underscore in the name: dev_2.
I removed the underscore and now it wo
Hello,
I am getting errors from initial install of the cake_nightly builds.
These same errors do not occur from the current stable version
posted a few days ago. My configuration/file permissions are
exactly the same. Can some please give me some adivce as to what is
wrong ??
Warning: file(cake
I followed the steps outlined on
http://www.plog4u.org/index.php/Using_PHPEclipse_:_Installation_:_Installing_the_DBG_Debugger.
But it didn't work until I wrote "[EMAIL PROTECTED]:10001" on the
Debug configuration, "Arguments" tab, "Program Arguments" edit box.
--~--~-~--~~-
Don´t feel lonely Langdon ;),
I don´t know what info you have already tried out. For myself, a long
time ago, the problem turned out to be having a "_" in the URL -
apparently IE doesn´t work well with none alphanumeric characters in
URLs.
What OS are you running? You´ll probably find that this
Looking back through the archive there seems to be issues with IE and
sessions. I have worked through suggested solutions with no luck.
My problem:
Using Firefox I can log in to my application successfully and session
data is set and retrieved without any problem. However switch to IE and
s
[EMAIL PROTECTED] wrote:
> Ok, that sounds good to me but since I'm using the default CakePHP
> template (for now) how can I specify a favicon path?
Create /view/layouts/default.thtml (or copy the one from inside the
Cake folder) and change this line in your layout to be an absolute
path:
Chee
You could do some manual work using timestamps and such. So in other
words, you read in the record and check whether the timestamp has been
modified since the current user has worked on it, if so return an error
message.
It can get a bit complicated in the implementation but this is how it
used t
Ok, a bit more info.
You need to put the path to your php.exe file in your PATH environment.
Once you do that, open a cmd window and go to the /cake/scripts
directory.
Once there just type "php bake.php".
--~--~-~--~~~---~--~~
You received this message becaus
Right. Silly me, I mixed up the two when in fact they are incompatible.
They do share innodb however. I apologize for that.
Sorry, I can't be very helpful in this regard.
I would, however, have high hopes for a couple custom queries. I
_think_ it would be something like this:
$this->query("LO
Hi.
Can i access other models from within a given model? My idea is to create
a model for a view and then override the save() method to save the data to
the appropriate tables.
Example:
Say we have two tables: a, with fields id and name, and b, with fields id,
name and a_id. We also have a view
Nice. I had no idea about shmem.
Just took a quick look and it seems to be about what I was thinking
about.
Yes, in asp, there was this command called application.lock, or some
such, during which you could update the application variables if you
needed to avoid race conditions.
However, I tend
What are application variables? A persistent variable common to all the
requests?
You can do it in php through shmem, but you can have problems of race
conditions, it needs semaphores,etc.
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Hi Calzone
I don't believe that transactions are what I need here (but thank you
for the suggestion).
A typical issue that I would want this system to handle is:
1. User 1 opens a record to edit it
2. User 2 trys to open the same record before User 1 has completed
his/her edit
3. System ret
I was actually thinking about setting up a virtual host to deal with the problem. But just pointing the document root at it might be easier.On 5/10/06, calzone
<[EMAIL PROTECTED]> wrote:If this is your machine, you may want to consider installing cake under
/Library/WebServer/Documents/ or modifyi
79 matches
Mail list logo