Hi,
I was trying to setup a relationship between User and Group through
cake console. But I need help since there are strange things going on.
In my users table, I have these fields:
- id
- username
- password
- group_id
And, in my groups table, I have these fi
Hi All,
I've been following lately, and I must say I'm very pleased with the
framework. Currently, I'm having a different project where there
should be many to many relationships between 3 tables.
This particular situation is for user management purposes. The User
role /group will depend
Alternatively, you can also do it:
$this->data['User']['[password'] = $this->Auth->password($this-
>data['User']['password']);
On Jun 20, 2008, at 11:18 PM, leo wrote:
>
> Well I got it working with sellotape, by forcing the hashing of the
> password:
>
> $this->data['User']['password'] =
> Se
do you have var $components = array('Auth'); in your app_controller.php?
On Jun 19, 2008, at 12:49 PM, raynor21 wrote:
>
> Hello all, I'm new here and to CakePHP! I keep running into the
> error: Warning (512): Method SessionHelper::check does not exist
> [CORE/
> cake/libs/view/helper.php, l
trying to do next is I want to make the URL to look APP/parts/
index/keyword:/. Is this possible? Because I have another
controller where there is more than 1 input box, and the address
becomes APP/controllers?
keyword=&anotherkeyword=, and with the current
solution I have, it no longer wor
e'
)
));
Thanks for the help :)
On Jun 11, 2008, at 11:44 PM, 703designs wrote:
>
> What did you change it to?
> I think it's always a good idea to follow up with your solution so
> that others can learn from your experiences.
>
>
Hi,
I'm having a problem with pagination after I searched for a particular
field. In my index, I have a Spare parts lists, and users can search
for a particular parts they are looking for. The thing is, if the
result returns more than 20 items (which I use pagination), I can't go
to the
validation? If you have the
> "alphaNumeric" validation rule, it'll fail on a period, as it
> explicitly only allows alphabetic and numeric chars. What is the SQL
> being generated?
>
> Please post your relevant model and controller action if you require
> furthe
Hi all,
I just noticed that by default Cake wouldn't save data where a . (dot)
is present. For example, I tried to add a new username that is
"firstname.lastname", and Cake said that the user was added
successfully, but it wasn't added at all.
What do I need to add so that Cake can accept
you telnet to the device? http://www.dali.net.nz/Telnet.class.php.txt
>
> If you can communicate with the device you could create a RESTFul type
> webservice and let cakephp interact with that...
>
> CT
>
>
> On Thu, Jun 5, 2008 at 1:43 PM, Gonzalo Servat <[EMAIL PROTECTED]>
tware), then collect the data from that server's database?
Does anyone have some experience on this problem? Do you mind to share
your thoughts on this? Is there such software to do #2?
Your thoughts and comments are much appreciated.
Thank you,
Rez
On May 24, 2008, at 8:52 PM, troyp wrote:
>
> I'm just learning and I don't get it. I am trying to follow the
> concept of convention over configuration and finding issues.
>
> I want a multi-record form so I perform a findAll(...) to get the
> data.
>
> Then I make the form calls
>
> echo $fo
Hi.
On May 24, 2008, at 1:32 AM, adroit wrote:
>
> Hello All,
>
> I am new to CakePHP framework and I am having a tough time with the
> correct installtion.
> So far I get to see the default page after installation
> -
> CakePHP release information is on CakeForge
> Read the release notes an
On May 24, 2008, at 12:54 PM, vishal wrote:
> ... snip..
>
> I have two models(database table):User,Message
>
> I want place a drop down in my Message view file as :
>
> select('messageto', $options=array(), null, array(),
> '--
> select member--'); ?>
> I want to fills this drop down from my anot
t; time.
>>> So, instead of pushing an ID onto the array I'd first grab all of
>>> the
>>> products from session, add a new array with both ID & name of latest
>>> product, then both save the products array back to the session as
>>> well
&
hen I submit the form again, the
session only holds the newest data.
Can't I just do this with $this->Session->write('products', $this-
>data['Products']['id']); ?
Is there any way I could make the products to be an array, so that I
can append
echo ''.$value.'';
continue;
}
}
echo ''.
$value.'';
}
Hmmm, funny...
I could not use $this->Model-> ModelsPart->find() from
models_controller.php, yet, I could use $this->ModelsPart->find().
Oh well, I guess as long as it works :P
Thanks guys..
On May 21, 2008, at 5:02 PM, Reza Muhammad wrote:
> You know,
>
> I di
You know,
I did whatever you said, but things still didn't work the way I
hoped. Or maybe theres something I didn't get from you.
1. I have to have models/model.php and models/part.php and models/
parts_model.php right?
2. I also need to setup a database called 'models', 'parts', and the
HA
ontroller.
Any more ideas?
On May 20, 2008, at 3:27 PM, Matt Huggins wrote:
>
> You need to modelize your HABTM table. Hopefully this link will help
> you out.
>
> http://cricava.com/blogs/index.php?blog=6&title=modelizing_habtm_join_tables_in_cakephp_&more=1&c=
Hi guys.
I just tried to setup a HABTM relationship between "Model" and
"Parts". In my "Model" model. I already created tables called
'models', 'parts', and 'models_parts'.
Here's what I have in my models:
- model.php
class Model extends AppModel {
var $name = 'Model';
s = array('Html', 'Form');
Btw, i preaumed youre using cake 1.2 because 'Form' helper is only
available in cake 1.2. To use form in cake 1.1, you would normally use:
$html->input();
Hope that helps.
-Reza Muhammad
On May 19, 2008, at 7:33 PM, vishal <[EMAIL P
ng:
>
> latest 1.2: $this->Part->Model->find('list');
>
> earlier: $this->Part->Model->generateList();
>
> does that help?
>
> On Apr 30, 7:20 am, Reza Muhammad <[EMAIL PROTECTED]> wrote:
>> Forget my ignorance, I forgot to use var $belo
Forget my ignorance, I forgot to use var $belongsTo.
:)
On Apr 30, 2008, at 3:22 PM, Reza Muhammad wrote:
>
> Hi Guys,
>
> I just started using CakePHP 1.2, and I have a question concerning a
> One to Many relationships.
>
> I have two models, 'Model' and &
Hi Guys,
I just started using CakePHP 1.2, and I have a question concerning a
One to Many relationships.
I have two models, 'Model' and 'Part'. One model can have many
parts. I don't have a problem creating Model controller, but when I
want to add new parts, I want to have a list of the
MAIL PROTECTED]> wrote:
> > is there anybody can review the advantages 1.2 than 1.1?
>
> > thanks,
>
> > On Wed, Mar 5, 2008 at 6:09 AM, jonknee <[EMAIL PROTECTED]> wrote:
>
> > > I'd definitely go for 1.2 using PHP 5.
>
> > > On Mar 4, 3:32 am, Re
Hi guys,
I was just reading about CakePHP, and I was thinking to use CakePHP
for my web applications, as it looks fun and easy to code. What I
would like to know is, which version should I use? I know the latest
stable version is still 1.1, yet alot of articles / tutorials I found
on bakery are
27 matches
Mail list logo