y, January 15, 2009 4:52 PM
To: CakePHP
Subject: Re: Label information for Multiple Checkboxes
The complicating factor here is that Aliquot belongs to Specimen in my
model and I want to display some information from both tables:
Specimen.type, Specimen.draw_date, Aliquot.additive & etc. It lo
The complicating factor here is that Aliquot belongs to Specimen in my
model and I want to display some information from both tables:
Specimen.type, Specimen.draw_date, Aliquot.additive & etc. It looks
more and more like I'm going to have to put that information in an
array and loop t
luck friend.
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
Of Tony Thomas
Sent: Thursday, January 15, 2009 4:43 PM
To: CakePHP
Subject: Re: Label information for Multiple Checkboxes
I tried that very thing, but it didn't produc
Outsourcing
Specialist <http://www.creative-outsourcing.com/>
www.creative-outsourcing.com
First page position Google.com:
<http://www.google.com/search?hl=en&q=creative+outsourcing&btnG=Google+Searc
h> Creative Outsourcing
-Original Message-----
From: cak
You need to set the $displayField property inside your `Aliquot` model
to whatever field you want for the label.
On Jan 15, 4:47 pm, Tony Thomas wrote:
> I'm building a list of checkboxes like so:
>
> echo $form->input('Aliquot.id', array( 'label' => FALSE,
>
I'm building a list of checkboxes like so:
echo $form->input('Aliquot.id', array( 'label' => FALSE,
'type' => 'select',
'multiple' => '
This might come in handy when it comes to manipulating the extra data on
the join table:
http://www.cricava.com/blogs/index.php?blog=6&title=modelizing_habtm_join_tables_in_cakephp_&more=1&c=1&tb=1&pb=1
Adriano Varoli Piazza wrote:
> Thanks for both the answers. I'm now dealing with the right wa
Thanks for both the answers. I'm now dealing with the right way to
name the model and controller for that join table. It looks like I'm
doing something wrong somewhere...
On 4 nov, 11:41, hydra12 <[EMAIL PROTECTED]> wrote:
> Take a look here:http://book.cakephp.org/view/83/hasAndBelongsToMany-HA
Take a look here: http://book.cakephp.org/view/83/hasAndBelongsToMany-HABTM.
Look especially at the 'with' key when you define your HABTM
relationship. It says in the docs:
with: Defines the name of the model for the join table. By
default CakePHP will auto-create a model for you. Using the
I think having a separate model for your join table is okay in this case.
And perhaps it's a must as you have a third foreign key involved in that
join table.
On Tue, Nov 4, 2008 at 6:00 PM, Adriano Varoli Piazza <[EMAIL PROTECTED]>wrote:
>
> I'm developing an app where I have two tables, let's c
I'm developing an app where I have two tables, let's call them items
and people, where the relationship between them is HABTM. Plus, the
individual relationships have extra info: this person is related to
this item with a 'description' field.
E.g.:
people:
id
other fields
---
--
>
> > create('Message',array( 'url' => 'add/'.
> > $topic_id ));?>
> >
> > New topic
> >> echo $form->input('message_text');
> > echo $form->input('user_id'
;?>
>
> New topic
> echo $form->input('message_text');
> echo $form->input('user_id');
> echo $form->hidden('topic_id',array( 'value' => $topic_id));
> ?>
>
> end(
t;
link('Go back', array('action'=>'index'));
?>
---------
When I fill up the add form and submit.
The data gets inserted into the messages table without
On Thu, Oct 2, 2008 at 5:13 PM, ORCC <[EMAIL PROTECTED]> wrote:
> [..snip..]
>
> Id City_Id Property Value
> 11 "greeting" "HELLO"
> 22 "greeting" "HOLA"
> 33 "greeting" "CIAO"
> 41 "contact""[EMAIL PROTECTED]"
> 52
I suggest you to:
- Create a single table Cities (id,name). For example
IdName
1 New York
2 Madrid
3 Roma
- Create a single table called Properties (id,city_id, property,
value) and place in that table All the properties for each city. For
instance:
Id City_Id Property Value
) Have 1 common database for tables storing GENERAL INFORMATION and
user specific information AND have 1 database PER CITY (city specific
databases having the same design). i.e. :-
common-database
city1-database
city2-database
city3-database..and so on
In this case, the number of JOINS being
> // allow them to do stuff
>
> } else {
>
> // kick them out
>
> }
>
> I want to get user information after they've gone through the login
> process in Auth, look at the Acl and determine whether or not they
> have permission to do what they want to
r1') {
// allow them to do stuff
} else {
// kick them out
}
I want to get user information after they've gone through the login
process in Auth, look at the Acl and determine whether or not they
have permission to do what they want to do. In other words, I don't
want static rules
I do not understand the "on the fly" there .. You are wanted to check
a permission on an action regarding a user, but is this User "logged-
in" ? I mean a member of a User model or something similar ??
On Jul 3, 5:07 pm, Tony Thomas <[EMAIL PROTECTED]> wrote:
> I've been trying to get Acl working
I've been trying to get Acl working for a long time now. I think I'm
very close, but I'm tired of doing endless Google searches for an
answer, so I'm just going to ask.
My Acl is all set up in the database, and Auth is working. It's the
Acl check that I'm not getting. This article got me close:
x27;]['Bar'][0])) {
>foreach ($this->data['Bar']['Bar'] as $key =>
> $bar_id) {
> $this->BarredFoo->updateOrdering($bar_id,$this-
> >id,$key);
>}
> }
&g
,$this-
>id,$key);
}
}
return true;
}
}
?>
That's how I order my HABTM relationships, but obviously you could
extend this ad absurdum.
A good article to to read about basic With relationships is here:
http://www.littlehart.net/atthekeyboard
to store some specific information
> about that association -- say, a user HABTM groups, but each user also
> has a role within that group and a date of joining that group which I
> need to store in the foos_bars table. How do I get CakePHP to clue
> into this and pull out that informatio
ore complicated -
the normal form helper / model __saveMulti() combo don't play nicely
with extra fields, afaik.
On Apr 30, 1:23 pm, tgies <[EMAIL PROTECTED]> wrote:
> foo HABTM bar, but I also need to store some specific information
> about that association -- say, a user HABTM gr
foo HABTM bar, but I also need to store some specific information
about that association -- say, a user HABTM groups, but each user also
has a role within that group and a date of joining that group which I
need to store in the foos_bars table. How do I get CakePHP to clue
into this and pull out
plays
> the form for adding questions but also the survey information above it
> and the other questions already entered. can someone guide me on how
> to make this? thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goog
ect to the add function for questions, but not only displays
the form for adding questions but also the survey information above it
and the other questions already entered. can someone guide me on how
to make this? thanks
--~--~-~--~~~---~--~~
You received this messa
TECTED] <
>
>
>
> [EMAIL PROTECTED]> wrote:
>
> > [snip]
>
> > 2) The execution of this code on Unix server with "PHP version 5.2.5,
> > System HP-UX frl4 B.11.11 U 9000/800 " generate the following error:
>
> > Warning (2): Cannot
On Tue, Apr 15, 2008 at 12:59 PM, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:
>
> [snip]
>
> 2) The execution of this code on Unix server with "PHP version 5.2.5,
> System HP-UX frl4 B.11.11 U 9000/800 " generate the following error:
>
> Warning
he execution of this code on my PC with EasyPhp 2.0 works
correctly
2) The execution of this code on Unix server with "PHP version 5.2.5,
System HP-UX frl4 B.11.11 U 9000/800 " generate the following error:
Warning (2): Cannot modify header information - headers already sent
by (
> Slightly off-topic, but when I add behaviour to app_controller, such
> as authorisation, should I really be doing it in the library version?
Actually, no. You create a new app_controller.php in your /app root.
--~--~-~--~~~---~--~~
You received this message becau
> Also, bear in mind that all your controllers should be subclassing
> app_controller, and that the before filter (and component startup
Slightly off-topic, but when I add behaviour to app_controller, such
as authorisation, should I really be doing it in the library version?
To me that file shoul
Also, bear in mind that all your controllers should be subclassing
app_controller, and that the before filter (and component startup
actions) have a reference to the current controller, meaning that you
can call set() if you just need to pass the data to your views. You
only need to use the local
t; {
> > var $_myPassedVar;
>
> > function beforeFilter()
> > {
> > $this->_myPassedVar = 'somevalue';
>
> > }
> > }
>
> > On Mar 6, 4:43 pm, CrazyDave <[EMAIL PROTECTED]> wrote:
> > >
ar;
>
> function beforeFilter()
> {
> $this->_myPassedVar = 'somevalue';
>
>
> }
> }
>
> On Mar 6, 4:43 pm, CrazyDave <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > Does anyone know the recomme
es anyone know the recommend or best way of passing information from
> the app_controller to the other controllers. I'm probably missing
> something or overlooked something in the manual but I didn't see any
> clear defined root.
>
> I have an app_controller that proces
Hi,
Does anyone know the recommend or best way of passing information from
the app_controller to the other controllers. I'm probably missing
something or overlooked something in the manual but I didn't see any
clear defined root.
I have an app_controller that processes certain param
; wrote:
>
> > How would one go about gathering information from an external
> > database? My application contains all the relevant information
> > required except for one 'object'students.
>
> > My student information is stored in an oracle databa
On Dec 3, 2007 1:02 AM, Grant Cox <[EMAIL PROTECTED]> wrote:
>
> Connecting to multiple databases is easy. Just add the extra
> connection to your /app/config/database.php, and have the appropriate
> var $useDbConfig in your Student model class.
If I understand Greg Baker's problem correctly, I'
Connecting to multiple databases is easy. Just add the extra
connection to your /app/config/database.php, and have the appropriate
var $useDbConfig in your Student model class.
On Dec 3, 4:54 am, Greg Baker <[EMAIL PROTECTED]> wrote:
> How would one go about gathering informatio
How would one go about gathering information from an external
database? My application contains all the relevant information
required except for one 'object'students.
My student information is stored in an oracle database which I can
read from. So would I be correct to create a
On 10/20/07, DonGato <[EMAIL PROTECTED]> wrote:
>
>
> WT.. !!
>
> amazing that something as simple as this was not found anywhere else
>
> thanks dude, you saved my life today.
- Thanks, I have found this from at
http://www.htmlhelp.com/reference/html40/forms/form.html
--
Regards,
Amit
http://
WT.. !!
amazing that something as simple as this was not found anywhere else
thanks dude, you saved my life today.
On Oct 19, 10:44 pm, "Amit Badkas" <[EMAIL PROTECTED]> wrote:
> On 10/20/07, DonGato <[EMAIL PROTECTED]> wrote:
>
> > Hi there!
>
> > I've been working a few weeks with cakephp, I'
On 10/20/07, DonGato <[EMAIL PROTECTED]> wrote:
>
>
> Hi there!
>
> I've been working a few weeks with cakephp, I'm really happy with the
> framework and the results, I've been developing a personal project and
> I'm stuck at the point where I have an iframe inside one of my pages,
> so I need to c
Hi there!
I've been working a few weeks with cakephp, I'm really happy with the
framework and the results, I've been developing a personal project and
I'm stuck at the point where I have an iframe inside one of my pages,
so I need to click in a button inside the iframe and make the iframe
info di
Oh I found the answer with Mike's help.
Should be rewritten to:
Please log in.
formTag('/users/login') ?>
Username:
inputTag('User/username', array()) ?>
Password:
passwordTag('User/password', array()) ?>
submitTag('login') ?>
link('register', '/users/register') ?>
Helpful to those who try t
Thank you! Solved the problem!
Another question from the code above-
http://localhost/users/login
gives this:
Parse error: syntax error, unexpected ')', expecting '(' in /var/www/
cake/app/views/users/login.thtml on line 11.
The login.thtml was copied from IBM tutorial.
I guessed that $html-
You have a whitespace at the end of the file. Erase it.
On Oct 4, 11:01 am, val <[EMAIL PROTECTED]> wrote:
> Instead redirecting, i get this.. Any Ideas?
>
> login.thml:
> if ($error)
> {
> e('Invalid Login.');}
>
> ?>
>
> Please log in.
>
>
> form('/users/login') ?>
> Username:
> input('Us
You have a whitespace at the en of the file. Erase it...
On Oct 4, 11:01 am, val <[EMAIL PROTECTED]> wrote:
> Instead redirecting, i get this.. Any Ideas?
>
> login.thml:
> if ($error)
> {
> e('Invalid Login.');}
>
> ?>
>
> Please log in.
>
>
> form('/users/login') ?>
> Username:
> input('U
Instead redirecting, i get this.. Any Ideas?
login.thml:
Please log in.
form('/users/login') ?>
Username:
input('User/username', array) ?>
Password:
password('User/password', array) ?>
submit('login') ?>
link('register', '/users/register') ?>
users_controller.php:
set('username_error', '
Hello,
For one of web applications I'm working on, I need to implement clustering
on application level. Basically, there is a table of users, which contains
information about server where data of specific user is located.
I have models, eg. UserPost, which represent tables of a specific
Make sure you have your associations set correctly.
Just guessing here but I think it is Lead hasMany Activities so in the
Lead model you need
var $hasMany = array('Activity');
Then when you call find*() your results shoudl look similar to
Array
(
[Lead] => Array
(
Hi,
I have a lead table and an activity table. The lead is the parent
association, while the activity table is the child (related)
association. I would like to add an activity on the view screen as the
lead. I don't want to have to go to another url to add the activity.
How would I do that?
Tha
Hi,
I would but the Bakery is not letting me login - I think this has
already been flagged elsewhere in the group. Ianh
On Jun 8, 8:34 pm, "Samuel DeVore" <[EMAIL PROTECTED]> wrote:
> Can you add that as a comment on the article and when I have a few minutes
> and make some more updates to the a
Can you add that as a comment on the article and when I have a few minutes
and make some more updates to the article I'll add it.
Thanks
Sam D
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To p
Hi all,
So I was following the FPDF article on the bakery (http://
bakery.cakephp.org/articles/view/pdf-helper-using-fpdf) and the hello
world thing worked just fine (thanks Sam).
I then turned debug up to 2 and did some work on pulling data from the
DB. Thereafter my PDFs all stopped working gi
Can you help me?
I want to using AJAX to populate the data based on the selected value.
but the following codes work well at FireFox, but not display the
populated data IE7.0 . Some can help me to find the solutions?
For member register Action
Country -> State -> City.
At register.ctp file: I
I'd also be interested in an answer to this.
At the moment I'm using the equivalent of this
$user = $this->Session->read('User');
$user_id = $User['id'];
And then setting the conditions in the findById as "User.id = ".
$user_id in every controller function I have.
I'm sure theres a better way.
Hello everyone, I'm trying to get the hang of Cake, but it's rather
difficult due to the sparse documentation out there.
I have this code in my model:
var $belongsTo = array('User' =>
array('className'=> 'User',
'conditions' => 'Use
As a cakePHP newbie, I know it would be very helpful to be able to have
a "troubleshooting guide" or something along those lines in the manual.
I am still working on wrapping my head around associations and even
though I saw mentions of debugging I was unable to find the answer to
how to turn it
On 9/8/06, John David Anderson (_psychic_) <[EMAIL PROTECTED]> wrote:
>
>
> On Sep 8, 2006, at 6:23 PM, Chris Hartjes wrote:
>
> > Nate, is there someplace on the CakePHP web site that info could go or
> > should I simple add a blog posting and drive traffic there instead? :)
>
> How about I base
How about a FAQ? Since that is exactly what these are. Like the 20
most common problems \ questions.
--~--~-~--~~~---~--~~
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@
On Sep 8, 2006, at 6:23 PM, Chris Hartjes wrote:
> Nate, is there someplace on the CakePHP web site that info could go or
> should I simple add a blog posting and drive traffic there instead? :)
How about I base a chapter in the manual off of your blog post? :)
-- John
--~--~-~--~
On 9/8/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> That's okay Rnady, Chris doesn't like me either. Although I have to
> agree, debugging is pretty basic to CakePHP and setting it usually
> shows what is going on to generate the SQL and reveals pretty quickly
> where problems lie.
It's
side of the cakePHP group - I didn't figure out why until
this afternoon. I also searched from the cakePHP.org site and looked
all over the manual based on those searches. Obviously the information
is there, but my point earlier was that I did look for it and didn't
find it and had I foun
That's okay Rnady, Chris doesn't like me either. Although I have to
agree, debugging is pretty basic to CakePHP and setting it usually
shows what is going on to generate the SQL and reveals pretty quickly
where problems lie.
http://manual.cakephp.org/chapter/configuration
The explanation of the
I teach my kids that there is no such thing as a stupid question, only
stupid answers. Did I give a stupid answer? You thought I did, so
you're probably right. I'm a big boy and can handle being told that I
was rude to somebody, regardless of what I may think. I thought I was
providing answers
That was it. Thank you jonlb!
Rnady
--~--~-~--~~~---~--~~
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 [EMA
Chris Hartjes wrote:
> Step #1: make sure you have your app in SQL debugging mode by making
> sure DEBUG is set to 2 in your core.php config file.
> Step #2: Look at the SQL output it generates and make sure the queries
> are actually pulling the information you are expecting
>
rnady wrote:
> [EMAIL PROTECTED] wrote:
> > Use the associations. Then you can return it with
> > $data['Importance']['importance'].
> >
> > I would imagine this could be quickly accomplished with a belongsTo
> > association.
> >
> > http://manual.cakephp.org/chapter/models
>
> Thanks for your r
tml on line 5
> What am I doing wrong?
>
(I think I'm getting as old and cranky as Sam DeVore)
Step #1: make sure you have your app in SQL debugging mode by making
sure DEBUG is set to 2 in your core.php config file.
Step #2: Look at the SQL output it generates and make sure t
[EMAIL PROTECTED] wrote:
> Use the associations. Then you can return it with
> $data['Importance']['importance'].
>
> I would imagine this could be quickly accomplished with a belongsTo
> association.
>
> http://manual.cakephp.org/chapter/models
Thanks for your response.I know this should be sim
Use the associations. Then you can return it with
$data['Importance']['importance'].
I would imagine this could be quickly accomplished with a belongsTo
association.
http://manual.cakephp.org/chapter/models
--~--~-~--~~~---~--~~
You received this message becaus
I am very new to CakePHP and I'm pretty sure there is a simple answer
to this problem but i have failed to find it.
I am creating a todo list application in which the user can enter the
name of the item for the list and then select the importance of the
item. So I have two models: Item and Import
Having thought about this more, I have a better solution. Going down
this path would have broken the MVC pattern anyway, so best not to
pursue it.
Regards,
Langdon
Langdon Stevenson wrote:
> Hi
>
> I need to be able to tell what Action and URL have been called from
> app_model.php
>
> Is t
Hi
I need to be able to tell what Action and URL have been called from
app_model.php
Is this possible? If so could someone show me how.
Any assistance is greatly appreciated.
Regards,
Langdon
--~--~-~--~~~---~--~~
You received this message because you are sub
Wow... seems like there would be something more simple than that!!
Thank you, none-the-less. That will get the job done.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send
If you mean getting the views as rendered by the controllers, or
accessing the models from outside, it's a toughie. Some of us have had
luck including models and some of the cake core files manually, but
it's a dirty stinking hack at best.
The only clean methods are to download the view as a rend
include ("/path/to/app/views/controller/view.thtml") is one way that
comes to mind.
--~--~-~--~~~---~--~~
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
How could I include a certain view from a cake application into a page
that does not fall under the cake file structure?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send
Scaffold doesn't work with multiple levels of recursion. If you want
the functionality, build it 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@
I've scaffolded this exact same structure but the "add" form only
shows the labels for "person" and "skill" field. The only input field
is for the skill level. Wouldn't it be expected one select for persons
and another for skills?
On 3/29/06, nate <[EMAIL PROTECTED]> wrote:
>
> Oh, that hasOne
201 - 283 of 283 matches
Mail list logo