My full error is:
Fatal error: Call to a member function getColumnType() on a non-object
in /usr/share/php/cake/libs/model/model.php on line 976
On 22 Jun., 07:30, a...@hard-soft.at a...@hard-soft.at wrote:
This is my sourcecode:
http://bin.cakephp.org/view/1519432926
I checkd $this-data
hi Good Morning All,
i am trying to execute complex SQL query like this,
EXPLAIN SELECT *
FROM campaign_store_dates cd, campaigns c, stores s
WHERE (
cd.campaign_id = c.campaign_id
AND cd.store_id = s.store_id
AND cd.date
BETWEEN '01-06-2010'
AND '01-06-2010'
)
Any one
This is my sourcecode:
http://bin.cakephp.org/view/1519432926
I checkd $this-data before saving and it looks ok:
Array ( [Mandant] = Array ( [mandant_id] =
b1234cae2f9d0e75a246f66753d2fce3 [anamnese] = testing [anamnese_m] =
testing ) )
very strange to me
On 21 Jun., 16:58, AD7six
I *think* you'd have to do it using the query method (which is generally
frowned upon as a method of last resort). $this-Model-query($sql);
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 22 Jun 2010, at 06:47, rakeshyadav rakeshyadav wrote:
hi Good
Hi all,
Any body tell me the required cakephp query for below SQL query
SELECT *
FROM campaign_store_dates cd, campaigns c, stores s
WHERE (
c.campaign_id = cd.campaign_id
AND s.store_id = cd.store_id
)
Thanks in advance,
Rakesh
Check out the new CakePHP Questions site
Are you using the containable behaviour (highly recommended)? If so:
$results = $this-CampaignStoreDate-find(
'all',
array(
'contain' = array(
'Campaign',
'Store'
),
'fields' = array(
On Jun 22, 7:37 am, a...@hard-soft.at a...@hard-soft.at wrote:
My full error is:
Fatal error: Call to a member function getColumnType() on a non-object
in /usr/share/php/cake/libs/model/model.php on line 976
Well, looking at line of code in Model
Hi flocks,
I am also new to cakephp ..is there any mistake excuse, try like
this,
$campaign_store_dates = $this-CampaignStoreDate-find('all',
array('joins' =
array(array( 'table' = 'stores',
Hi,
Its very urgent and rediculus that my cakephp application is not
creating form, any where in my application i am generating form they
are are not created either through echo $form-create() or through
html form tag form
please help me.
Check out the new CakePHP Questions site
Help us to help you. If forms are not being created, what IS happening instead?
Are you getting errors? Do you have debug set to 2 so that you can see what's
going on?
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 22 Jun 2010, at 08:46, mirfan wrote:
If form/form doesn't work, then most probably it's not a cake issue. Set
debug to 2 and check what errors do you get.
On Tue, Jun 22, 2010 at 10:46 AM, mirfan m.irfa...@gmail.com wrote:
Hi,
Its very urgent and rediculus that my cakephp application is not
creating form, any where in my
http://book.cakephp.org/view/212/Methods
On Jun 21, 6:05 pm, Petter Andreas Strøm past...@gmail.com wrote:
Hi,
Im quite new to both ajax and cake, so i have a question regarding the
use of ajax.updater in cakephp. Is it possible to use the ajax.updater
to just update an html element to
It create all fields correctly but form tag is not available, no error
is displayed, however this fieldset is availabe
fieldset style=display: none;input type=hidden value=POST
name=_method/fieldset
i am not able to understand what is happening.
On Jun 22, 12:49 pm, Jeremy Burns | Class Outfit
Can you post the page source?
On Tue, Jun 22, 2010 at 11:00 AM, mirfan m.irfa...@gmail.com wrote:
It create all fields correctly but form tag is not available, no error
is displayed, however this fieldset is availabe
fieldset style=display: none;input type=hidden value=POST
This is the script
?php echo $form-
create(User,array('controller'='users','action'='register'));?
div id=ui-formular-error/div
labelFirst Name span*/span/label
?php echo $form-input('User.first_name',
bump, seems that nobody is having issues with sessions stored in
database?
On 18 jun, 09:44, dtemes dte...@gmail.com wrote:
More information about the issue, since the database session uses a
model to handle the reading/writing I inserted some lines to log data
in model.php beforeSave
I have been using cakephp for a few weeks now but i have failed to
know how to validate a date for example a birthday to make sure it's
now greater than the current date.Could anyone point me to the right
direction
Check out the new CakePHP Questions site http://cakeqs.org and help others with
It gives the url
/Usuarios/votos/page:2
without the user id (i.e. /Usuarios/3/votos/page:2)
Actually $this-passedArgs is empty in my view
On Jun 21, 11:45 pm, majna majna...@gmail.com wrote:
tryhttp://groups.google.com/group/cake-php/msg/e5231eac6bdbecc6
On Jun 22, 12:21 am, Alberto
Hello
I want to developed messaging system like facebook
can any once help me to design database scheme for in cake rule and how i
imaplement in cake
Thanks
--
Dilip Godhani
Jr Software Developer, Entourage Solutions
e-mail: di...@entouragesolutions.com
dilip.godh...@gmail.com
Web.:
Add this to your model validation (assuming the field you are checking is
called 'dob'):
'dob' = array(
'inRange' = array(
'rule' = 'isAgeInAcceptedRange',
'message' = 'You must be between the ages of 18 and 80.'
)
),
Then add this function to
Sorry - just read the post properly and my answer wasn't your solution, but it
can be adapted. The key is to write a function and within that compare
$check['dob'] with today's date.
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 22 Jun 2010, at 12:12,
Hi guys,
Do you know a form wizard plugin/component who works on the latest
version of cakephp? I've been google-ing and just found
http://bakery.cakephp.org/articles/view/wizard-component-1-2-1 for
version 1.2.1 and found some problems with the component.
Do you know any wizard form plugin
Do you already have a schema going for different users? Then it's just
a matter of creating a new table with id, user_id, recipient_id,
title, and message; cake bake the model/controller/view - add some
authentication and checks to ensure user_id is taken from a session,
recipient ID as an ajax
Try using $this-Form-create() instead of $form-create() in the
view. Also make sure your form helper is enabled in the model.
On Jun 22, 9:36 am, mirfan m.irfa...@gmail.com wrote:
This is the script
?php echo
$form-create(User,array('controller'='users','action'='register'));?
Cake cookies are session cookies. If you want to set browser cookies,
use the php setcookie() function.
http://php.net/manual/en/function.setcookie.php
On Jun 21, 5:50 pm, DragonFlyEye dragonflyey...@gmail.com wrote:
My cookie variables:
function beforeFilter() {
if($this-Category-Behaviors-enabled('Restricted')) {
$this-Category-Behaviors-disable('Restricted');
// surely this shouldn't be necessary?
More of a PHP / programming development question:
I have an article that has (Category, Type, User, etc). Below the post
I want to show the related articles, but I want them to relate
together via the common attributes between articles (Category, type,
user etc).
At the moment I have a
Anyone have any documentation on the CakePHP slug? Can't seem to find
much on it - just trying to get my URL's all nice and pretty for
google without having to mess with Routing / creating seperate helpers
and so forth to get 'em tarted up.
Check out the new CakePHP Questions site
in your table have a field `title` the behaviour converts this to a slug and
saves that in the table field named `slug`
you can set some basic options in the actAs array config - check the source
of the slug behaviour for options like separator and overwriting
- S
On 22 June 2010 14:21, Shaz
Hello guys!
I read the http://book.cakephp.org/pt/view/166/Pagination-in-Views but
did not understand how to make a paging someone explain to me or pass
a simple tutorial?
Thank you all.
Atenciosamente,
Alexsandro André
Joinville - SC
47-8825-0133
Check out the new CakePHP Questions site
Hi group!
My first post to this list so here goes...
I may have found a bug in the recover method in Tree.php, cake 1.3.2.
I was getting an SQL error when calling recover:
SQL Error: 1062: Duplicate entry '20' for key 'PRIMARY'
Here is an example of the SQL:
UPDATE `categories` SET `id` = 20,
Hi !
Is there any way to disable caching for $this-model-query()
I have used
$this-MyModel-cacheQueries = false; and same setting in model var
$cacheQueries = false;
but seems that this isn't work
Does anyone knew some workaround for this?
p.s. I use CakePHP 1.2.5
Thanks for your help.
Check
I'm having my acl etc all properly installed all right, but as soon as
I try to log into my site using anything apart from the holy admin
account ($this-Acl-allow($group, 'controllers');) it doesn't work.
My idea is, that this could be because my Users Model is associated
with heaps of other
On Jun 22, 4:01 pm, alexsandro andre miojoa...@gmail.com wrote:
Hello guys!
I read thehttp://book.cakephp.org/pt/view/166/Pagination-in-Viewsbut
did not understand how to make a paging someone explain to me or pass
a simple tutorial?
No problem:
Hi Alexsandro,
Please explain a little bit more that where you find confusion
while applying pagination.
Regards
Hashim Ikram
On Jun 22, 8:03 pm, AD7six andydawso...@gmail.com wrote:
On Jun 22, 4:01 pm, alexsandro andre miojoa...@gmail.com wrote:
Hello guys!
I read
I'd just like to get an opinion from the group:
I've not used Behaviors before, but I have been looking into it a
little bit since the one table I'm working with on my current project
is sort of a tree format. It's not an actual tree format and would not
work with the Tree Behavior native to
On Tue, Jun 22, 2010 at 2:08 AM, Narendra Padala crazycake...@gmail.com wrote:
(..)
I dont know wat to use. i18n, p28n or l10n.
I even dont the difference between them.
i18n and l10n are acronyms for the words internacionalization
(letter i, 18 letters, letter n) and localization (you guess
Hi, I need some Information from you. Someone told me to buy E-book
about PHP + MySQL in
http://php-mysql-ebook.blogspot.com
Does anyone have experience about this?
thanks
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You
What do you mean its cached? What is it doing exactly.
On Jun 22, 7:21 am, Dmitry Shevchenko dmitr...@gmail.com wrote:
Hi !
Is there any way to disable caching for $this-model-query()
I have used
$this-MyModel-cacheQueries = false; and same setting in model var
$cacheQueries = false;
but
Interesting. You should post a ticket here:
http://cakephp.lighthouseapp.com/dashboard
On Tue, Jun 22, 2010 at 9:22 AM, Erik Starck erik.sta...@gmail.com wrote:
Hi group!
My first post to this list so here goes...
I may have found a bug in the recover method in Tree.php, cake 1.3.2.
I was
On Tue, Jun 22, 2010 at 1:01 PM, DragonFlyEye dragonflyey...@gmail.com wrote:
I'd just like to get an opinion from the group:
I've not used Behaviors before, but I have been looking into it a
little bit since the one table I'm working with on my current project
is sort of a tree format. It's
Shaz,
Thank you for your reply. Question, though: why is there a distinction
then between Cookie and Session? Seems like they're kind of the same
thing?
On Jun 22, 9:10 am, Shaz shazam...@gmail.com wrote:
Cake cookies are session cookies. If you want to set browser cookies,
use the php
Thanks for the reply, cricket.
If I could, I'd be very happy to modify the structure to conform to
the Tree Behavior style. At some point, this may indeed be what I do.
But at the moment, I have no such advantage.
That's what happens when you transition a website: one way or another,
you get
Ok i just gave this a try, however i don't think i'm doing it right, i added
var $actsAs = array('Containable');
to my app_model.php, which seems to work, however when i run a find like
this:
this-set('data',
$this-Customer-find('first',
I've the weirdest development environment I can think of: IIS, SQL
Server 2008, and PHP. I'm not going with ASP.NET or Silverlight, so
please don't direct me there. I've had trouble setting up CakePHP
configuration for SQL Server 2008 database.
This is my configuration (CakePHP):
class
Well, you pretty much need to write a new dbo that implements the new SQL
Server connections. If you look around in google there's this unfinished dbo
driver with still quite a few opportunity areas, but I guess it's better
than starting from scratch
2010/6/22 gbudiman wahy...@gmail.com
I've
Another problem I've come across using IIS with cake is that IIS has
problems when using : in your urls, so you'll probably need to change that
in cakephp's libs if you intend to use it for params
2010/6/22 Carlos Lavin carloslavi...@gmail.com
Well, you pretty much need to write a new dbo that
On Tue, Jun 22, 2010 at 4:07 PM, DragonFlyEye dragonflyey...@gmail.com wrote:
Thanks for the reply, cricket.
If I could, I'd be very happy to modify the structure to conform to
the Tree Behavior style. At some point, this may indeed be what I do.
But at the moment, I have no such advantage.
On Tue, Jun 22, 2010 at 4:31 PM, jason001 jason.deyalsi...@gmail.com wrote:
Ok i just gave this a try, however i don't think i'm doing it right, i added
var $actsAs = array('Containable');
to my app_model.php, which seems to work, however when i run a find like
this:
this-set('data',
Hi
I have turned on debug and saw that query is called only one time.
So when I have tried to call it many times in a loop - it was run
only in a first call, and for other calls it returned a cached values.
Thank you.
On 22 Чер, 20:22, Miles J mileswjohn...@gmail.com wrote:
What do you mean
Hi.
I have a lot of relations between Users and another models.
Like:
User hasMany Download
User belongsTo Company
Company hasMany Product
Download hasMany Type
So I wanna use the find method, like $this-User-find('first',
array('conditions'=bla bla bla));
But, it returns me ALL the data
use containable behaviour: http://book.cakephp.org/view/474/Containable
On Jun 22, 8:52 pm, Fernando Z. Bob fzmas...@gmail.com wrote:
Hi.
I have a lot of relations between Users and another models.
Like:
User hasMany Download
User belongsTo Company
Company hasMany Product
Download
I don't see way it doesn't work. As Shaz suggested, double check if you have
the helper enabled.
On Tue, Jun 22, 2010 at 4:08 PM, Shaz shazam...@gmail.com wrote:
Try using $this-Form-create() instead of $form-create() in the
view. Also make sure your form helper is enabled in the model.
On
Hi thanks for your advice.
I included
$this-layout='xml';
into my controller::index();
I place ?php echo $xml-header() ? into the index.ctp.
But it is still not rendered as xml. I am using firefox and chrome.
any more idea why? or does anybody has a sample cakephp project with
REST.
On Jun
i cant help you in cakephp but i have this:
ajaxim.com
this is chat system in php
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 group.
To post
55 matches
Mail list logo