RE: Label information for Multiple Checkboxes

2009-01-15 Thread David Coleman
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

Re: Label information for Multiple Checkboxes

2009-01-15 Thread Tony Thomas
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

RE: Label information for Multiple Checkboxes

2009-01-15 Thread David Coleman
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

RE: Label information for Multiple Checkboxes

2009-01-15 Thread David Coleman
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

Re: Label information for Multiple Checkboxes

2009-01-15 Thread grigri
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, >                                    

Label information for Multiple Checkboxes

2009-01-15 Thread Tony Thomas
I'm building a list of checkboxes like so: echo $form->input('Aliquot.id', array( 'label' => FALSE, 'type' => 'select', 'multiple' => '

Re: How do I represent a habtm where the join table has extra information?

2008-11-04 Thread Bernardo Vieira
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

Re: How do I represent a habtm where the join table has extra information?

2008-11-04 Thread Adriano Varoli Piazza
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

Re: How do I represent a habtm where the join table has extra information?

2008-11-04 Thread hydra12
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

Re: How do I represent a habtm where the join table has extra information?

2008-11-04 Thread Anupom
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

How do I represent a habtm where the join table has extra information?

2008-11-04 Thread Adriano Varoli Piazza
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 ---

Re: CakePHP - Warning - Cannot modify header information - headers already sent by

2008-10-16 Thread imu
-- > > > create('Message',array( 'url' => 'add/'. > > $topic_id ));?> > > > > New topic > >> echo $form->input('message_text'); > > echo $form->input('user_id'

Re: CakePHP - Warning - Cannot modify header information - headers already sent by

2008-10-16 Thread Marcus Silva
;?> > > New topic > echo $form->input('message_text'); > echo $form->input('user_id'); > echo $form->hidden('topic_id',array( 'value' => $topic_id)); > ?> > > end(

CakePHP - Warning - Cannot modify header information - headers already sent by

2008-10-16 Thread imu
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

Re: Database design for local information specific site

2008-10-02 Thread Gonzalo Servat
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

Re: Database design for local information specific site

2008-10-02 Thread ORCC
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

Database design for local information specific site

2008-10-02 Thread bookme
) 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

Re: Retrieving User Information with Auth/Acl

2008-07-03 Thread francky06l
> // 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

Re: Retrieving User Information with Auth/Acl

2008-07-03 Thread Tony Thomas
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

Re: Retrieving User Information with Auth/Acl

2008-07-03 Thread francky06l
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

Retrieving User Information with Auth/Acl

2008-07-03 Thread Tony Thomas
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:

Re: Additional information about association in the HABTM table

2008-04-30 Thread Marcin Domanski
x27;]['Bar'][0])) { >foreach ($this->data['Bar']['Bar'] as $key => > $bar_id) { > $this->BarredFoo->updateOrdering($bar_id,$this- > >id,$key); >} > } &g

Re: Additional information about association in the HABTM table

2008-04-30 Thread daphonz
,$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

Re: Additional information about association in the HABTM table

2008-04-30 Thread schneimi
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

Re: Additional information about association in the HABTM table

2008-04-30 Thread grigri
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

Additional information about association in the HABTM table

2008-04-30 Thread tgies
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

Re: Trying to display survey information in add question page

2008-04-28 Thread [EMAIL PROTECTED]
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

Trying to display survey information in add question page

2008-04-28 Thread rtanz
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

Re: "redirect" and "Cannot modify header information"

2008-04-18 Thread [EMAIL PROTECTED]
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

Re: "redirect" and "Cannot modify header information"

2008-04-15 Thread Gonzalo Servat
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

"redirect" and "Cannot modify header information"

2008-04-15 Thread [EMAIL PROTECTED]
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 (

Re: Best way to pass information from the app controller to the controllers

2008-03-07 Thread dr. Hannibal Lecter
> 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

Re: Best way to pass information from the app controller to the controllers

2008-03-07 Thread leo
> 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

Re: Best way to pass information from the app controller to the controllers

2008-03-07 Thread [EMAIL PROTECTED]
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

Re: Best way to pass information from the app controller to the controllers

2008-03-07 Thread CrazyDave
t; { > > var $_myPassedVar; > > > function beforeFilter() > > { > > $this->_myPassedVar = 'somevalue'; > > > } > > } > > > On Mar 6, 4:43 pm, CrazyDave <[EMAIL PROTECTED]> wrote: > > >

Re: Best way to pass information from the app controller to the controllers

2008-03-06 Thread Dardo Sordi Bogado
ar; > > function beforeFilter() > { > $this->_myPassedVar = 'somevalue'; > > > } > } > > On Mar 6, 4:43 pm, CrazyDave <[EMAIL PROTECTED]> wrote: > > Hi, > > > > Does anyone know the recomme

Re: Best way to pass information from the app controller to the controllers

2008-03-06 Thread dr. Hannibal Lecter
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

Best way to pass information from the app controller to the controllers

2008-03-06 Thread CrazyDave
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

Re: Getting information from an external database

2007-12-03 Thread Greg Baker
; 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

Re: Getting information from an external database

2007-12-03 Thread Chris Hartjes
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'

Re: Getting information from an external database

2007-12-02 Thread Grant Cox
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

Getting information from an external database

2007-12-02 Thread Greg Baker
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

Re: Passing information from an iframe to the parent node using php

2007-10-22 Thread Amit Badkas
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://

Re: Passing information from an iframe to the parent node using php

2007-10-20 Thread DonGato
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'

Re: Passing information from an iframe to the parent node using php

2007-10-19 Thread Amit Badkas
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

Passing information from an iframe to the parent node using php

2007-10-19 Thread DonGato
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

Re: Why I get this: Warning: Cannot modify header information - headers already sent by (output started at /var/www/cake/app/models/user.php:13) in /var/www/cake/cake/libs/controller/controller.php on

2007-10-04 Thread val
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

Re: Why I get this: Warning: Cannot modify header information - headers already sent by (output started at /var/www/cake/app/models/user.php:13) in /var/www/cake/cake/libs/controller/controller.php on

2007-10-04 Thread val
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-

Re: Why I get this: Warning: Cannot modify header information - headers already sent by (output started at /var/www/cake/app/models/user.php:13) in /var/www/cake/cake/libs/controller/controller.php on

2007-10-04 Thread José Lorenzo
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

Re: Why I get this: Warning: Cannot modify header information - headers already sent by (output started at /var/www/cake/app/models/user.php:13) in /var/www/cake/cake/libs/controller/controller.php on

2007-10-04 Thread José Lorenzo
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

Why I get this: Warning: Cannot modify header information - headers already sent by (output started at /var/www/cake/app/models/user.php:13) in /var/www/cake/cake/libs/controller/controller.php on lin

2007-10-04 Thread val
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', '

Dynamically determining connection information

2007-09-28 Thread Olexandr Melnyk
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

Re: add an associated models information on the same screen as the parent model

2007-06-13 Thread Geoff Ford
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 (

add an associated models information on the same screen as the parent model

2007-06-13 Thread Amy1234
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

Re: Generating PDFs - piece of useful information for the group

2007-06-11 Thread ianh
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

Re: Generating PDFs - piece of useful information for the group

2007-06-08 Thread Samuel DeVore
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

Generating PDFs - piece of useful information for the group

2007-06-08 Thread ianh
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

(Cakephp Ajax) why not to display the updated information correctly at IE7.0,?

2007-05-04 Thread seedme
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

Re: Newbie Question: Using session information in the model

2007-02-13 Thread [EMAIL PROTECTED]
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.

Newbie Question: Using session information in the model

2007-02-13 Thread savagekabbage
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

Re: I want to select information from a related table inside of my view function and present that information in my view.thtml file

2006-09-09 Thread rnady
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

Re: I want to select information from a related table inside of my view function and present that information in my view.thtml file

2006-09-09 Thread Chris Hartjes
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

Re: I want to select information from a related table inside of my view function and present that information in my view.thtml file

2006-09-08 Thread [EMAIL PROTECTED]
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@

Re: I want to select information from a related table inside of my view function and present that information in my view.thtml file

2006-09-08 Thread John David Anderson (_psychic_)
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 --~--~-~--~

Re: I want to select information from a related table inside of my view function and present that information in my view.thtml file

2006-09-08 Thread Chris Hartjes
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

Re: I want to select information from a related table inside of my view function and present that information in my view.thtml file

2006-09-08 Thread rnady
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

Re: I want to select information from a related table inside of my view function and present that information in my view.thtml file

2006-09-08 Thread [EMAIL PROTECTED]
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

Re: I want to select information from a related table inside of my view function and present that information in my view.thtml file

2006-09-08 Thread Chris Hartjes
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

Re: I want to select information from a related table inside of my view function and present that information in my view.thtml file

2006-09-08 Thread rnady
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

Re: I want to select information from a related table inside of my view function and present that information in my view.thtml file

2006-09-08 Thread rnady
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 >

Re: I want to select information from a related table inside of my view function and present that information in my view.thtml file

2006-09-08 Thread jonlb
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

Re: I want to select information from a related table inside of my view function and present that information in my view.thtml file

2006-09-08 Thread Chris Hartjes
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

Re: I want to select information from a related table inside of my view function and present that information in my view.thtml file

2006-09-08 Thread rnady
[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

Re: I want to select information from a related table inside of my view function and present that information in my view.thtml file

2006-09-08 Thread [EMAIL PROTECTED]
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 want to select information from a related table inside of my view function and present that information in my view.thtml file

2006-09-08 Thread rnady
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

Re: Accessing Controller information (like Action and URL) from app_model.php

2006-07-14 Thread Langdon Stevenson
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

Accessing Controller information (like Action and URL) from app_model.php

2006-07-14 Thread Langdon Stevenson
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

Re: Including information while not inside the cake file structure

2006-07-11 Thread Luke
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

Re: Including information while not inside the cake file structure

2006-07-10 Thread [EMAIL PROTECTED]
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

Re: Including information while not inside the cake file structure

2006-07-10 Thread nate
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

Including information while not inside the cake file structure

2006-07-10 Thread Luke
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

Re: Additional information with a HABTM?

2006-04-21 Thread nate
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@

Re: Additional information with a HABTM?

2006-04-03 Thread Vinicius Pinto
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

<    1   2   3