Unknown column ' ' in 'field list'

2010-07-23 Thread Rick Dane
Warning (512): SQL Error: 1054: Unknown column 'asg5' in 'field list' [CORE/cake/libs/model/datasources Query: UPDATE `uiemails` AS `Uiemail` SET `Uiemail`.`colorborder` = asg5 WHERE `divid` = 'fahk' Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP re

Re: CakePHP not getting my CSS background ( body { } ) tags from css file but getting everything else

2010-07-23 Thread Rick Dane
You're right, it has something to do with a jquery plugin that I didn't realize was overriding my default css file.. sorry for the trouble, I should have thought of using firebug before posting here On Jul 22, 5:10 pm, Rick Dane wrote: > I will try that, but I was able to use the

Re: CakePHP not getting my CSS background ( body { } ) tags from css file but getting everything else

2010-07-22 Thread Rick Dane
his is more css > problem than cakephp > --- > > Norman Paniagua > > 2010/7/22 Rick Dane > > > This one is just really starting to get at me.. I cannot figure out > > why my css body { } info will not appear on my cakephp page. > > > I am setting the css fil

CakePHP not getting my CSS background ( body { } ) tags from css file but getting everything else

2010-07-22 Thread Rick Dane
This one is just really starting to get at me.. I cannot figure out why my css body { } info will not appear on my cakephp page. I am setting the css file in my layout like this: echo $this->Html->css('animationdemo1'); (animationdemo1 is a .css file located in webroot/css) I then have a body ta

Re: Including an External Library file that has functions that aren't in a class?

2010-07-03 Thread Rick Dane
Neverimind, I realized you have to declar each App::import('Vendor', 'libraryfile') ; separately, I had thought that you could just list multiple files off in the same ( ) (like when including a component in CakePHP) but realized you have to make a new line for each new vendor file you want to incl

Re: How to implement "helper" fields in my model?

2010-07-02 Thread Rick Dane
Well, I think the validation part would go in a controller, so you would want to have the beforesave helper call a function in a controller, this could also call a component, if needed... I haven't done this myself but I think this is the correct procedure based on my understanding of cakephp altho

Re: User HABTM User/Firend (Social Network )

2010-07-02 Thread Rick Dane
Yeah just package it into a component so that doing the association both ways isn't a big deal On Jul 2, 12:02 pm, hugom wrote: > I insert 2 records, uid_1 and uid_2. It's probably a good way to do > it. It's just an extra step when you do an insert and an extra step > when you do a delete. > >

Including an External Library file that has functions that aren't in a class?

2010-07-02 Thread Rick Dane
I have a need to include certain library files from various php projects where it has a source file with the functions that are to be called not within classes... I have been reading on how to do this and have tried the method of placing the file in the vendor folder and including it through: App:

Re: Undefined Property error when calling set function on associated model

2010-06-30 Thread Rick Dane
Ok I think I got this figured out.. apparently the 'foreignKey' is required, in setting the relationship in the model (within the array).. this didn't seem clear to me in the documentation as I had thought all the settings were optional but now I know what I need to make it work. Check out the new

Undefined Property error when calling set function on associated model

2010-06-30 Thread Rick Dane
I'm trying to define an association between my models and then call a set and then save function to upload data from my controller to the associated model but am running into strange problems, as far as I can tell I followed the cakephp book exactly but its still giving me an error. this

Re: Cannot get set variable as field from array resulting from find('first')

2010-06-30 Thread Rick Dane
(and yes this is part of a cakephp class and within a function, I know thats not where the error is so I left that out for simplicity) Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscr

Re: Cannot get set variable as field from array resulting from find('first')

2010-06-30 Thread Rick Dane
27;]['password'] ; > > $this->set('variable', $variable) is only available outside of the controller. > > Jeremy Burns > Class Outfit > > jeremybu...@classoutfit.comhttp://www.classoutfit.com > > On 30 Jun 2010, at 12:26, Rick Dane wrote: > >

Re: Need CSV import: best practices?

2010-06-30 Thread Rick Dane
This should all be in the controller as far as I can tell, cakephp seems to want everything in the control with the model just being representative of the database, so I believe the model wouldn't come into play until you are uploading the csv to the database On Jun 30, 2:49 am, euromark wrote:

Re: Cannot get set variable as field from array resulting from find('first')

2010-06-30 Thread Rick Dane
I get this: "app\controllers\hushmail\retrieveemails_controller.php (line 170) retrieveemail " Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" g

Cannot get set variable as field from array resulting from find('first')

2010-06-30 Thread Rick Dane
I am very lost at this point as I am just going in circles with trying to retrieve data from a database the "cakephp" way, I have looked at every tutorial I could find and I have basically done exactly what they say, as far as I can tell but I am still getting this error when I try to set a variabl

Re: Putting a component in a subdirectory?

2010-06-24 Thread Rick Dane
AD7six wrote: > > > On Jun 24, 5:15 am, Rick Dane wrote: > > > > I've been searching around about this and can't find an answer... can > > > I put a component in a subdirectory (within the components director)? > > > Try it and find out. > > &

Putting a component in a subdirectory?

2010-06-23 Thread Rick Dane
I've been searching around about this and can't find an answer... can I put a component in a subdirectory (within the components director)? I want to do this to keep things more organized as I am going to have a lot of components in my cakephp app... if so, how do I reference it, or would it be the

Error I can't understand when trying to access specific field from array retrieved by query

2010-06-23 Thread Rick Dane
I'm having some problems using the standard cakephp myql queries with some of my fields and I don't have the time to troubleshoot this so I'm just trying to use standard mysql queries, using cakephp's query call... I'm calling my query (which I already set) with a code like this: $result11 = $thi