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
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
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
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
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
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
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.
>
>
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:
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
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
(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
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:
>
>
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:
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
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
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.
>
> &
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
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
Thanks - I looked at the page source and it is there - Apparently I've
screwed up the CSS so it doesn't appear.
Rick
On Jan 25, 8:50 pm, euromark wrote:
> usually it is printed before the tag starts
> in a normal browser environment it would display as ugly code at the
>
I haven't used debug in a while...
when I put it in a view it outputs debug data as it should to the
page. However when I put a debug(...) in a controller or model no
debug output appears on the page.
I've also tried echo, print, Debugger::trace() and none of these give
any output. The output d
Try putting the saveAll in an inner if
[code]
if ($userValidate && $userProfileValidate) {
if ($this->User->saveAll) {
...
[/code]
On Nov 26, 9:30 pm, "andrzejborkow...@gmail.com"
wrote:
> if ( $userValidate && $userProfileValidate && $this->User->saveAll
> ($this->data,array('validate'=
Should be:
'rule' => 'notEmpty'
Also I don't think you should have the 'allowEmpty'.
Rick
On Nov 23, 11:23 pm, Dave wrote:
> I have a select drop down for user to select a year.
>
> In before save I have:
>
> $this->data['Award
What are the field names of the related fields? I.e. Tag.? ==
Stories_tags.? == Story.?
On Oct 30, 7:24 am, Daniel wrote:
> Hi. I've got two models, Tag and Story, each with a HABTM relation
> with each other (joined via a stories_tags table).
>
> What I'm looking for is the ability to do a fin
Here is a little help:
http://book.cakephp.org/view/198/options-error
Also there are 'isFieldError' and 'error' methods available also.
Rick
On Oct 14, 8:28 am, jburns wrote:
> I have created a number of add/edit view using the form helper. Here
> is a
You should have a country table. You would associate this table in
country_of_fabrication as has one country and the country_to_sell_to
has one country.
On Sep 25, 6:10 pm, spooknick wrote:
> hi there
> I want to make a product model that has a country_of_fabrication and a
> country_to_sale_too
I know that globals are bad but...
I just set a global $gblCurrentUser when the user logs in. Then
accessing that in models, I can add a select condition for that user
in the beforeFind etc..
You get the idea?
Rick
On Sep 24, 12:20 am, brian wrote:
> I did something similar to t
Hello, I'm a cakePHP noob. I baked an application and everything is
working fine but I want to create another model relation:
Superuser belongsTo User
User hasMany Superuser
in models/superuser.php:
var $belongsTo = array(
'ControlledUser' => array(
'className' => 'User'
Should not that be
$this->MyObj->id = $id;
Rick
On Sep 16, 3:45 pm, lorenx wrote:
> hi all,
> i'm new to cake so, if you think that a better place exists for my too
> simple questions... just let me know.
>
> following the blog tutorial i did some tests to bette
Here are two ways to do it:
http://book.cakephp.org/view/113/Code-Generation-with-Bake
http://book.cakephp.org/view/105/Scaffolding
Rick
On Sep 13, 2:33 pm, ProBowlUK wrote:
> Can anyone help with example pages (or pointers) for PHP pages that
> manage (Insert, Delete, Update) da
Assuming you don't need recursion, try it without the model names,
i.e.
'x-y as difference'
Rick
On Sep 10, 5:33 pm, Andrew Koebbe wrote:
> I'm trying to do a simple subtraction as a field in a find statment...
>
> ex.
>
> $this->Model->find('all
What OS?
Are you able to connect or query using any other program?
Type "mysql" on command line. What do you get?
Rick
On Sep 9, 6:52 am, nida wrote:
> Hello ,
>
> I m not able to connect my database with Mysql in cake php that show
> database could not connectio
If you are using a later version of mysql you can use views to handle
column and table name changes I think.
Rick
On Sep 4, 3:37 am, Xanax wrote:
> ok :(
>
> On 3 sep, 18:27, Miles J wrote:
>
> > If you hardcoded the column names, then yes you would have to change
Can you try it with 3 tables, pages, links_to and links_from? That
may simplify things a bit.
Rick
On Sep 1, 5:13 am, Larking wrote:
> Hi,
>
> I am not quite sure how to search for how to tackle this problem so
> aplogies - perhaps someone could send me in the direction of a
>
Please post your successful results.
Rick
On Sep 2, 6:04 pm, "Brendon Kozlowski (Realm)"
wrote:
> Random thought - I'll be trying this tomorrow or sometime next week,
> but... Would the autoload file be able to be called as a vendor
> include as well? So long
I think the proper port for Gmail is 995.
Rick
On Sep 2, 8:53 pm, bunwich wrote:
> Hi,
>
> I changed the port to 465 and tried 'smtp.gmail.com' for the host.
>
> Also used the host 'ssl://smtp.gmail.com'
>
> The email works fine with sendmail
You should be able to do this quite easily. Put the ezcomponents dir
into the Vendor then add the ezc autoload require in the config
core.php.
Rick
On Aug 28, 1:27 pm, BrendonKoz wrote:
> I'm currently looking to use ezComponent's ezcGraph library within a
> CakePHP project,
Do you have debug turned on? Look in cake/app/config/core.php file.
Rick
On Aug 28, 6:11 am, Xanax wrote:
> Hi,
>
> I've got some problems with my cakephp app : i have this message when
> i launch it :
>
> Fatal error: Maximum execution time of 30 seconds exceeded
The example sql you entered will not work. There must be _some_
relationship between the area table and the location table or you
cannot do a query!
Is the location geometry point contained within the area polygon? Is
this expressable mathmatically?
Rick
On Aug 28, 7:02 am, Bryan Paddock
t and current time to the table and
allow user.
Rick
On Aug 23, 1:41 am, Junaed Halim wrote:
> Hello all, I am using cake's Auth component for login purpose.
> Now my client wants to get a list of all logged in users.
> Can anyone give any advice how to do that?
>
> I also
Sorry about that Andy,
I found out why initDB() on the ACL tutorial didn't work.. I was running it
from the app_controller.php instead of the users_controller.php.
Anyways, I still haven't figured out how to use the console acl commands.
Cheers!
Rick Ong
Azure Web Design
Mobil
Look in the cake/libs/error.php class. You may be able to override
something there and make log output work. I don't know where in the
hierarchy of cake you would need to put the override to make it work.
Maybe some expert can contribute here.
Rick
On Aug 11, 3:31 am, bram wrote:
&
You could put this in your controller (edit and add) just after you
get the data back from the form or you can put the code in your model
in a before_save method.
Rick
On Jul 31, 6:16 am, in2lag wrote:
> Hi, i have problem in my application with new lines in posts. CakePHP
> probably r
I think it only works if you are using the 'id' field in your table.
These tables are legacy tables that don't have an 'id' field as the
primary key.
So I guess in general you can say that isUnique only works if you have
a primary key of 'id'.
Do you
'$fieldValue' $condition",
-1) >
0) {
return false;
} else {
return true;
}
}
[/code]
Rick
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goo
oesn't seem to work in all cases - seemingly in any
case.
Is there a way I can determine whether I am in update or insert 'mode'
in the model? Or perhaps someone can suggest another answer?
Rick
--~--~-~--~~~---~--~~
You received this message becaus
Try adding
'allowEmpty' => true
to each of the rules.
Rick
On Jul 20, 9:38 am, blake wrote:
> Any possible ideas anyone?
>
> On Jul 17, 10:17 am, blake wrote:
>
> > Hello,
>
> > For one of my models, I have this (among other) validatio
Try the fields without the table qualifier: 'id,surname,name'
Rick
On Jul 1, 11:24 am, "marco.rizze...@gmail.com"
wrote:
> Hi
> I have this model:
>
> class Document extends AppModel{
>
> var $belongsTo = array(
> 'Author
You can track down how the "$uses" variable is used within the
controller and duplicate this code in your controller to dynamically
load models.
Rick
On Jun 23, 6:42 am, VVilku wrote:
> I still can't solve this problem... ;(
--~--~-~--~~~---~--~
Perhaps if we knew what functions were repeating and in what context
we could help.
Rick
On Jun 23, 7:18 am, si-mon wrote:
> Hi all,
>
> In cakePHP, functions without having a view (.ctp file) are repeating
> more than once in a single call. I only want to execute these
> func
Netbeans with PHP extension. I used Eclipse/PHP for a while but after
several problems changed to Netbeans. I'm very happy with it.
Rick
On Jun 19, 12:01 pm, kdubya wrote:
> What development environment/debugger do you use when developing
> CakePHP apps? Have you used others? W
Looking at the docs for $html->tableCells the call is expecting all of
the table rows in one call. (How else could it keep up with alternate
row counts?) From the manual:
echo $html->tableCells(array(
array('Jul 7th, 2007', 'Best Brownies', 'Yes'), // row 1
array('Jun 21st, 2007
o the curl -o
"http://www.domain.com/daemons/nicebook";
I add the double quotes around the URL just to be safe.
Rick
On Jun 16, 2:16 am, internetchris wrote:
> Hey everyone,
>
> Forgive me if I sound like an idiot. I haven't setup a cron job in the
> past and I feel I am eith
You do all of this through the option array in the $form->input call.
For example to turn off the label you add "'label' => false". There
are a lot of options so you should read the manual section.
Rick
On Jun 18, 6:40 pm, tpynegar wrote:
> Hi,
>
> I
You can write a new config value or you can define a variable or
constant in bootstrap.php.
Rick
On Jun 19, 8:42 am, Anand wrote:
> Hello All,
>
> How to define a global variable in CakePHP which i can use anywhere in
> the application.
>
> Please provide a code sample.
>
files.
I'm don't know what you mean by "indexed search".
Rick
On Jun 17, 7:39 pm, Kronprinz wrote:
> Hello all,
>
> New to Cake (or hope to be soon enough). I was just wondering, one of
> the biggest headaches with Ruby on Rails is deployment.
>
> What i
Try phpclasses.org
Rick
On Jun 15, 2:56 pm, Paulos23 wrote:
> Hi Cake people,
> I have a question about Xml.I am using httpSocket to hit a specific
> url in order to get some data.The url ishttp://www.geonames.organd i
> received details about destinations in order
In the controller:
var $uses = array('Email', 'CountEmails');
$this->CountEmails whatever
Rick
On Jun 14, 5:09 am, amjith ps wrote:
> hi friends,
>
> I want to use another table update on a controller which users one
> model class.
>
> I have
In your select you can do something like this:
[code]
$this->Model->find('xxx', array(
fields => 'substr(description, 0, 50)',
...
[/code]
On Jun 6, 1:20 pm, "Dave Maharaj :: WidePixels.com"
wrote:
> Can cake limit the return on characters in a query?
>
> I have in view
>
>
>
> to display th
http://us3.php.net/manual/en/language.exceptions.php
On Jun 1, 9:25 am, sharmaji <04.um...@gmail.com> wrote:
> Hi,
> Is there any use of try and catch block in cake php? if yes, please
> suggest me how can i implement that?
> currently i am using php version 5.2
> Thanks!
--~--~-~--~---
You should be able to create an array (from a find('list'...)) pass
that to your form and show it as the select's 'options'.
Rick,
On May 30, 8:47 pm, DigitalDude wrote:
> Hey,
>
> I'm looking for a way to populate a time field (input, select) with
&
d to do this when you can just use the
error-message class as is.
Rick
On May 26, 3:41 pm, "ross.hagg...@googlemail.com"
wrote:
> Hi
>
> Is it possible to add an id to the error-message div, tried adding it
> to the $validate a
In your view I think you should be using input names like
'user.firstname'. Make use of the debug(...) call in your debugging.
In your controller, use debug($this->params) to look at data coming
from the form then you can determine what it is looking for.
On May 22, 10:30 pm, Wayne wrote:
> G
What name are you trying to get? Looks like you have Style.name
already available in your result.
If there is a Gender.name you are trying to see you can set the
recursive to a higher number before the find:
$this->Style->recursive = 2;
Or use the Containable behavior as mentioned above.
O
Take a look at $this->Recipe. I think it is in there.
debug($this->Recipe);
On May 10, 7:33 am, jstein wrote:
> On May 10, 8:25 am, JamesF wrote:
>
> > on edit it uses the id of the record you pulled up.
>
> Thanks for your reply, - but I don't pull up anything before I call
> save...
>
> T
Looking through cake/libs/model/model.php I don't see anywhere in
saveAll where a check is done for a hasone association. (May have
missed it). I don't see how it could do this by default in any case.
It could recognize the hasone association but then how would it verify
uniqueness. It couldn't
In my controller I have an action 'add' and an action 'search'. In
the search action I do some things then want to render the 'add' view
so as the last line in the search I add $this->render('add');
This does indeed show the add page but then it renders the search
page. So I end up with the add
Instead of setting permissions on all tmp files/directories you can
just chown the ownership of the tmp directory to "www" (the user that
apache runs under).
sudo chown -R www
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Thanks, that got me on the right track - I tried setting tmp (and
contents) to 755 but that made "cache not writable", then 766, back to
the orginal error and finally to 777 which worked.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
nything other than to chmod the tmp
directories to 666.
I thought this was supposed to be a "drop in" install.
willirl
Rick
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to
w in the Bath/ Bristol area. I was
thinking of suggesting a Bath/ Bristol local user group
--
Rick Hurst, Web developer, Bristol, England
http://www.rickhurst.co.uk
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
&
On Sun, Jan 4, 2009 at 3:57 PM, Smelly_Eddie wrote:
>
> Rick:
>
> I think you want to look into elements.
>
> You can create an action in your articles controller like
> "loadArticleSnippet($id)"
>
> You can then call that action from an element that is
Hi All,
A newbie question, which i'm sure is incredibly simple!
I've downloaded 1.2 and taken a simple static web site and ported it
to cake, by using the provided PagesController and a view for each
static page. I've also created a new Model "Articles", for which i've
set up a model, view and c
een
exposed to do have it.
I looked at the Model code and I really don't feel that I understand
enough about what is going on there to make modifications or even
suggestions. I'm sure that the developers can target the correct code
with a minimum of effort. (I wish the code was commented a li
As I said before I do NOT want to use raw queries.
Seems like Cake is applying arbitrary limitations. Do any of the
developers read these posts?
Be nice to have an opinion from one or more cake developers.
Rick
On Sep 23, 3:00 am, Bookrock <[EMAIL PROTECTED]> wrote:
> Thanks
Another database really isn't an option as I said this is an existing
MySql instance.
Yeah, I could do raw queries but I wanted to taste the cakey goodness.
Rick
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google G
'mysql',
> 'persistent' => false,
> 'host' => 'localhost',
> 'login' => 'username',
> 'password' => 'password',
>
I've got an existing MySql instance that contains 4 databases (lets
call them A, B, C & D). Each has tables as you would expect. For
this post lets say tables are named like table1, table2 etc.. in each
database. My single user/password has access to all databases in the
instance.
My problem i
Well that is just awesome! Who would have suspected it.
Thanks.
On Sep 4, 12:01 pm, Daniel Hofstetter <[EMAIL PROTECTED]> wrote:
> Hi Rick,
>
> > Does anyone know how to use models in subdirectories? For example,
> > say I have two models:
>
> > app
Does anyone know how to use models in subdirectories? For example,
say I have two models:
app/models/inventory/stock_model.php
app/models/clients/client_model.php
How would I "use" them from a controller?
--~--~-~--~~~---~--~~
You received this message because
OK I got the args problem sorted out. To get the args in a shell you
use $this->args.
However, I'd still like suggestions on the shell best practices for
code location.
On Aug 27, 9:33 am, Rick <[EMAIL PROTECTED]> wrote:
> I thought I would be able to use the 1.2 Cons
I thought I would be able to use the 1.2 Console for a command line
(cake shell) application that is closely associated with a web app.
However afer a few hours of trying I was not able to figure out how to
implement command line arguments the shell app.
I tried something like
cake appname argum
end of the
default.thtml layout file, but I can't seem to figure out how to do
that. I could do some raw SQL INSERTS, but I was hoping to find out
the proper Cake way to do do this... Thanks.
Rick
--~--~-~--~~~---~--~~
You received this message because you are subscribe
I have a site set up on GoDaddy.
Since you can't access any files/folders above the public webroot on
GoDaddy and you can't change the DocumentRoot to a subdirectory I had
to put cake and the app directory UNDERNEATH the webroot directory
which is at GoDaddy's "/".
Then modify webroot's index.ph
Speaking of which, does anyone know when Cake 2.0 is going to be
released?
--~--~-~--~~~---~--~~
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 unsubscr
Oh, I noticed. :-)
They issued Rails version 1.1.5 Thursday and then 1.1.6 Friday. The
second one apparently threw off my web host -- my Rails site has been
down for nearly 24 hours now.
That was really the last straw with me. I've had to endure many issues
with web hosts that have been unable t
e any high-traffic sites that use CakePHP (I've
looked at the CakePHP showcase and dug around for others, but I can't
tell whether they've really been able to take a pounding.)
or 2) whether I'm just being needlessly paranoid.
:-)
Many thanks,
Rick
--~--~-~--~~---
I am trying to use the the html helper to render some radio buttons,
but I cannot figure out how to make one of the values checked by
default. The select tag helper function has a parameter to choose the
selected value, but none exist for the radio function.
Thanks,
-- Rick
87 matches
Mail list logo