So CAKE_CORE_INCLUDE_PATH should point to the Cake directory in the repo's
lib folder.
>From your setup, you should use
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
// points to /var/www/cake/lib (which has the "Cake" folder in it)
define('CAKE_CORE_INCLUDE_PATH', DS . 'var' . DS . 'www' . DS
I just donwloaded cakephp 2, just starting to learn it.
So here's what it says in the cook book.
The CakePHP core libraries will be placed in /usr/lib/cake.
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
define('CAKE_CORE_INCLUDE_PATH', DS . 'usr' . DS . 'lib');
}
So I only need to define up til
This issue has been resolved. It turned out to be my webhost caching the
generated cache files.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related quest
Hi guys,
I'm completely new to CakePHP, and for an hour or so I've been battleling
with a problem that's about to end my CakePHP-experience.. I simply can't
figure out how to disable cache so controllers, and views shows the latest
changes and not some cached version.
I've tried to add Config
This link should give you all the information you need:
http://book.cakephp.org/#!/view/1039/Associations-Linking-Models-Together
On Jul 31, 5:08 pm, ubiquitous_tom wrote:
> here's the current schema of my database
>
> /* First, create our thread table: */
> CREATE TABLE thread (
> id INT UN
Thanks, Simon! That did the trick!
- Mike
On Jul 31, 3:46 pm, Simon Males wrote:
> On Mon, Aug 1, 2011 at 5:25 AM, dewolfe001 wrote:
> > Is there a way that I can generate app/config/schema PHP files from
> > the SQL or MySQL database tables? I tried "cake schema generate node"
> > from the con
here's the current schema of my database
/* First, create our thread table: */
CREATE TABLE thread (
id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
dat_id INT,
title VARCHAR(50),
body TEXT,
created DATETIME DEFAULT NULL,
modified DATETIME DEFAULT NULL
);
CREATE TABLE dat_001
On Mon, Aug 1, 2011 at 5:25 AM, dewolfe001 wrote:
> Is there a way that I can generate app/config/schema PHP files from
> the SQL or MySQL database tables? I tried "cake schema generate node"
> from the console (node being the name of the table I wanted to pick
> up). But that just gives me the "b
Is there a way that I can generate app/config/schema PHP files from
the SQL or MySQL database tables? I tried "cake schema generate node"
from the console (node being the name of the table I wanted to pick
up). But that just gives me the "blogs" table that ships as an example
in CakePHP.
Thanks in
8:05 AM
To: CakePHP
Subject: Re: Newbie Question - Controller Model Binding
where did you find that?
sounds totally wrong to be. but i would need to see the source in order to
tell you if its worthy to read.
you usually create
- model
- controller
- views
in this order (using the baking tools thi
where did you find that?
sounds totally wrong to be. but i would need to see the source in
order to tell you if its worthy to read.
you usually create
- model
- controller
- views
in this order (using the baking tools this is quite comfortable)
it is as alive as is gets :)
of course you turn up
Just jumping into CakePHP and while I've gotten quite deep in the code
already, awesome by the way, I found one article that threw me for a
loop. Basically it suggested that one should only create controllers
for database tables and for nothing else. This seems a bit strange,
why would I not be a
Hey, that worked perfectly, thanks for the help :)
On May 8, 9:27 pm, dreamingmind wrote:
> Barricades,
>
> I think your concern about the beforeSave/afterSave issues are red
> herrings. Since the first line of your code is:
> if ($this->Campaign->save($this->data)) { ...
> both the before and
$this->redirect(array('action' => 'view', 'id' => $slug));
hth... Claudio
On 7 maio, 13:22, barricades wrote:
> Hi, I'm new so please don't shout at me for the stupid question but...
>
> When I save a record I want to redirect straight to the record I just
> created. The record which I have ju
Barricades,
I think your concern about the beforeSave/afterSave issues are red
herrings. Since the first line of your code is:
if ($this->Campaign->save($this->data)) { ...
both the before and after are finished. And you are only getting
inside the 'if' statement when the save was successful. Of
Thanks for the reply :)
The find after the save isn't returning what I want it to. In fact I'm
not sure it's returning anything at all. Baring in mind I'm a total
newbie (not even that much of a php'er either yet) what I want it
simply somehow (what I've done is just my best guess - I've no idea
h
Barricades,
You don't really say WHERE the process seems to break down. The find
after the save seems suspicious to me. Is that returning the proper
slug to pass along to your view function? It looks like $slug will end
up holding the returned data array rather than the returned string
from the sl
Hi, I'm new so please don't shout at me for the stupid question but...
When I save a record I want to redirect straight to the record I just
created. The record which I have just created uses sluggable behaviour
to create a slug in a beforeSave, so I can't just use $this-
>data['Campaign]['slug']
> So how do I call the function within the same class
You'd use $this->multiexplode(...), but if it is just a simple function that
doesn't need to maintain state you could just define it as a regular PHP
function in bootstrap.php.nor
Check out the new CakePHP Questions site http://cakeqs.org a
You can just define your utils functions as functions in bootstrap.php
and they will be always accessible without create component overhead
and "use in controller only" restriction.
On Jan 13, 2:54 pm, roy wrote:
> I am new to cakephp and i have go through those tutorials.
> May be I am too stubb
Hi Roy
If you want to define custom functions the best place to pop it is inside
the app_controller.php
This way you can call $this->multiexplode( ... ) in any controller and it
will access it from the AppController.
Otherwise pop the function inside the controller you wish to use it.
It's also
I am new to cakephp and i have go through those tutorials.
May be I am too stubborn to the old php coding way so I face a problem
when I am making my own Function.
Say, I have my a "multiexplode" function that recursively explode a
string given an array of delimiators,
sth like:
class UtilCompone
See here:
http://groups.google.com/group/cake-php/browse_thread/thread/7bfef9785d10d2d5
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
(t) +44 (0) 208 123 3822
(m) +44 (0) 7973 481949
Skype: jeremy_burns
http://www.classoutfit.com
On 15 Oct 2010, at 13:52, deafpanda wrote:
> Hello,
>
>
See here:
http://groups.google.com/group/cake-php/browse_thread/thread/7bfef9785d10d2d5
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 15 Oct 2010, at 13:52, deafpanda wrote:
> Hello,
>
> Sorry if this question is really stupid, I'm new to cake and I'm sur
Hello,
Sorry if this question is really stupid, I'm new to cake and I'm sure
I'm missing something obvious but Google isn't helping me...
I'm following the tutorials in the cakephp book, and am on to the ACL
tutorial. I created all the tables and baked the models, controllers
and views but when
Try:
link($html->image('linkedin.gif', array ('alt' =>
'LinkedIn' , 'align' => 'bottom')), "{$user['social_media']
['linkedin']}", array(), null, false); ?>
Essentially store the value you wish to act as a URL in a variable and
call that variable. Also remember PHP treats
In this example:
link($html->image('linkedin.gif', array ('alt' =>
'LinkedIn' , 'align' => 'bottom')), ' ', array(), null, false); ?>
I am trying to use a field in my social_media table, entitled
"linkedin," to be the url of my $html->link statement. But if I plug
that php echo line in betwee
This is perhaps not a direct answer to your question, but another suggestion.
It is possible that some of the finds in your site's code are not built well.
I'd encourage you debug out the results of the slow queries and see how much
data is being returned. It could be that your query is requesti
Hello,
About two years ago I had someone make a website for me, and he used
CakePHP. Now, I'm slowly learning how cakephp works in order to make
updates (I know PHP fairly well). I'm having some mysql problems
server load problems, and believe that upgrading to the newest version
might help solve
Hey guys,
thanks a lot for these very useful hints. I will definitely do some
more reading and start experimenting along the lines of your
suggestions.
And probably come back with more specific questions then.. :-)
Cheers,
Oliver
On Mar 29, 6:05 pm, cricket wrote:
> To add to Jeremy's comments
To add to Jeremy's comments,
In your menu elements, you can refer to the present location with
$this->here, so you can have logic for showing/hiding submenus, etc.
and avoid having to create separate layouts for each menu situation.
For my login_prompt element, I check if the user is already logg
Looks like a combination of layouts and elements. Don't forget you can create
as many layouts as you want, and specify which one to use in your controller -
either inside beforeFilter (so that it applies to all functions in the
controller) or inside a controller function (which will override all
Hi there,
I'm pretty new to CakePHP (and MVC in general for that matter) and I'm
just working through the docs etc.
And since the cookbook is quite informative, I think I've got a pretty
good idea of what CakePHP could do for me by now.
However, I would like to ask a question on best or common pr
Take a look at the bakery:
http://bakery.cakephp.org/articles/view/ckeditor-3-x-new-fckeditor-version
Since CKeditor is a js library you can just add it to app/webroot/js
and all the right magic will happen when you include it and attach it
to a textarea.
In regards to routing issues for third pa
I apologize if my questions is obvious or has been answered before. I
tried searching for the answer, but I don't know what best to search
for, mostly likely because I am barely sure of what the terms are for
the issue I am facing.
I am *very* new to Cake, but I am picking it up pretty quickly. I
i'm sorry.
i mistakenly start a new thread.
anyway i'd prefer continue the conversation in the other post, thanks.
rick: i don't understand your reply, i found that code in the blog
tutorial...
On Sep 17, 4:52 pm, Rick wrote:
> Should not that be
>
> $this->MyObj->id = $id;
>
> Rick
>
> On Sep
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 better understand how
> cakephp work
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 better understand how
cakephp works;
in the following code:
[code]
function view($id = null) {
$this-MyObj>id = $id;
John,
The version, according to version.txt is 1.2.0.6311 beta.
I'm trying to place this app into an empty table cell, so it matches
the look and feel of the rest of the site. The code for the images is
standard HTML, with the assumption that the images folder is in
webroot. For example:
Marti
Hi,
Mod rewrite is used so that Cake can "fake" folders on the server (as
the browser sees it).
example.com/ - The browser things you are in the root folder on the
server.
example.com/pages/home - The browser things you are in the pages
folder on the server.
example.com/pages/home/ - The browser
Please specify which version of CakePHP you are using :)
Also present the code that you are using to create the image tags.
Thus we may be able to assist you!
Enjoy,
John
On Jun 2, 2:11 am, DbZeroOne wrote:
> Hello all,
>
> I've found myself thrust into a project that the previous developer
>
Hello all,
I've found myself thrust into a project that the previous developer
made using CakePHP. I'm a little familiar with PHP, but it's taken me
a couple days to figure out how Cake works.
Anyway, I have what seems to be a very simple question, but it's
driving me crazy! My question is..."Wh
thanks alot.
On May 26, 8:34 pm, brian wrote:
> app/config/core.php
>
> Configure::write('debug', 0);
>
> On Tue, May 26, 2009 at 11:45 AM, Bysa wrote:
>
> > hi
> > i ask my question first:
> > How to remove the query table that is below of all my page, it shows
> > some query and affected, tim
app/config/core.php
Configure::write('debug', 0);
On Tue, May 26, 2009 at 11:45 AM, Bysa wrote:
>
> hi
> i ask my question first:
> How to remove the query table that is below of all my page, it shows
> some query and affected, time, and some more. i built my first blog
> application and i was
hi
i ask my question first:
How to remove the query table that is below of all my page, it shows
some query and affected, time, and some more. i built my first blog
application and i was wondering how to remove the below table, i
looked in files i created but no help.
im very new to cake but i kn
Thanks a lot,
thats exactly what I was looking for,
Beedge
On Apr 22, 6:42 am, NegoBlack® wrote:
> Hello Beedge,
>
> I think you will find this information
> herehttp://book.cakephp.org/view/96/Layouts,
> but what you must to create a new layout on app/view/layouts/
> beedge.ctp setting the v
Hello Beedge,
I think you will find this information here
http://book.cakephp.org/view/96/Layouts,
but what you must to create a new layout on app/view/layouts/
beedge.ctp setting the var "$content_for_layout" in the place where
you want to wrap the content rendered by the views. You still can s
Cool thanks,
next question
how do I go about editing the look of the page? where does the blue
header and footer come from?
again, I am working at http://hbit.ie/cake/posts
is there some way of setting up a template look and feel for a page?
looking at the source code generated I can see a he
Set debug = 0 in app/config/core.php
On Apr 22, 12:17 am, Beedge wrote:
> Hi all,
>
> I have recently decided to learn a framework, and from what Ive seen
> Cake is the way to go,, So I ve gotten my hands on 'Practical cakePHP
> projects'
>
> Im doing the first blogging tutorial, and my first at
Hi all,
I have recently decided to learn a framework, and from what Ive seen
Cake is the way to go,, So I ve gotten my hands on 'Practical cakePHP
projects'
Im doing the first blogging tutorial, and my first attempt differs in
appearance from the example in the book
it looks like I am in a debu
^^
@Robin, what is your cake version? and how about your mod_rewrite.
-
Best regards !
Giang Son Dat
Mobile: +84 988114164
Email giangson...@gmail.com, giangson...@yahoo.com
On Tue, Mar 10, 2009 at 12:20 AM, Robin wrote:
>
> I am completely new to cakephp. I am
I am completely new to cakephp. I am having this error message as
following, which I cannot figure out. Anyone please point me to the
right direction please?
When I put in "http://localhost/cake/"; in my address bar, it gives me
the following error:
---
On Sat, Dec 20, 2008 at 12:04 PM, ark0n3 wrote:
>
> Yes I've already accomplished it that way but it seems to me like a
> too low-level solution: CakePHP let us centralize models so I hope I
> could achieve the same result in the whole app.
> Is there no way to access the Helper classes?
Are yo
Yes I've already accomplished it that way but it seems to me like a
too low-level solution: CakePHP let us centralize models so I hope I
could achieve the same result in the whole app.
Is there no way to access the Helper classes?
On 19 Dic, 23:01, teknoid wrote:
> Just do that in the view...
>
Just do that in the view...
echo $booleanField ? 'Yes' : 'No';
On Dec 18, 6:27 pm, ark0n3 wrote:
> Is there absolutely no way to accomplish that? It seems to me like an
> obvious way to centralize some model-view i.e. if a Model is flagged
> "notvisibile" it seems natural to me to define after
Is there absolutely no way to accomplish that? It seems to me like an
obvious way to centralize some model-view i.e. if a Model is flagged
"notvisibile" it seems natural to me to define afterFind() to make
sure the boolean flag is always printed out like "Yes" and not "1".
Thanks
On 19 Dic, 00:1
helpers are not meant to be used in the models, they are only to be
used in views.
if you need something similar to what a helper method does, you could
just take a look at the code and re-create a method to be used in your
model or app model.
On Dec 18, 5:05 pm, ark0n3 wrote:
> I'm experimenti
I'm experimenting with the method you suggested and it's great.. today
I had only great problem: how to use an helper in the model? If I
define the $helpers array I'm unable to use i.e. Number $number-
>currency($number, $currency)...
Thanks for your HUGE help!!!
On 12 Dic, 23:20, mark_story w
Cool! That's exactly what I've been searching for! :-)
Thanks a lot!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe fro
of the form sth. like 'app/book/add/.
>
> Does someone has a best practice for this?
> Is it clean designed to call /app/chapter/add and app/image/add from
> the book-controller function, or how would you do this? Does cakephp
> forsee a different design in terms of cakephp convent
Does someone has a best practice for this?
Is it clean designed to call /app/chapter/add and app/image/add from
the book-controller function, or how would you do this? Does cakephp
forsee a different design in terms of cakephp conventions/paradigms?
I'm sure it is just a newbie question...so
You're the best, that's just the exact thing I need!
Really, really thanks!
ark0n3
On 12 Dic, 23:20, mark_story wrote:
> Perhaps try editing the model data in afterFind(). Or changing it
> before its saved in beforeSave(). Both of these methods would be in
> your models.
>
> -Mark
>
> On Dec
Perhaps try editing the model data in afterFind(). Or changing it
before its saved in beforeSave(). Both of these methods would be in
your models.
-Mark
On Dec 12, 2:52 pm, ark0n3 wrote:
> Hi
> I'm sorry to bother you with some newbye question, but I'm really
> unable to find it answered on t
Hi
I'm sorry to bother you with some newbye question, but I'm really
unable to find it answered on the newsgroup (it's difficult to explain
and it's difficult to google it..)
I'm trying to improve my PHP skills using the powerful CakePHP
framework: at the moment I'm porting an old movie-catalog a
Yes, I was about to to point out that it might be because your model
file name is capitalized.
On Dec 11, 4:57 am, AJV wrote:
> :D
>
> Well I guess I just confirmed my newbie status, I had written the
> names of the model files Capitalized. I noticed that small letters
> work much better :D
>
>
:D
Well I guess I just confirmed my newbie status, I had written the
names of the model files Capitalized. I noticed that small letters
work much better :D
Well, that was a fun couple of hours.
Aapo
On Dec 11, 2:49 pm, AJV <[EMAIL PROTECTED]> wrote:
> I'm quessing this has something to do with
I'm quessing this has something to do with communicating with the
model file. Even if I write die() or some broken code to the model,
nothing happens. Are there any ways to confirm that the controller
talks to the model, and if not, how could it be fixed?
--~--~-~--~~~-
OK, thanks for that info!
Still, the problem persists.
I installed a fresh cake and made this tutorial:
http://bakery.cakephp.org/articles/view/multiple-rules-of-validation-per-field-in-cakephp-1-2
But even though I followed every step, it just doesn't work, no
validation is happening.
On D
Yes; Cake supports dynamic models.
If you don't create an actual model file, cake will instantiate an
instance of AppModel with the name and useTable set up to work
properly. This is only useful for basic models though as you can't
specify associations, behaviors, validation or anything specific
A small typo - the path to the model file is of course /app/models/.
BUT I just noticed that I can change the model file to whatever, even
remove it, and it still works. Is this normal?!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
I'm really confused with this - can't get even the simplest examples
working.
I set a test case like this:
array(
'rule' => array('email', true),
'message' => 'Please supply a valid email address.'
)
);
}
?>
###
d
I just finished doing this today, these two links should help:
http://book.cakephp.org/view/125/Data-Validation
http://groups.google.com/group/cake-php/browse_thread/thread/d5e98df32a08c5cd#
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Just starting on Cake (1.2.0). I'm trying to make a form that checks
if a code that a user has inputted is in the correct format, then
check if it's found in a database. If the first check/validation
fails, it returns the user to the first page and displays an error
above the code-field.
And I do
2008/10/21 . <[EMAIL PROTECTED]>
> hi i am looking at this geoip tutorial
> http://bakery.cakephp.org/articles/view/geoip-component
>
>
> what does the following mean? echo h?
>
> echo h($geo->asXML());
>
- The function h() is equivalent to PHP's htmlspecialchars() function -
http://php.net/html
hi i am looking at this geoip tutorial
http://bakery.cakephp.org/articles/view/geoip-component
what does the following mean? echo h?
echo h($geo->asXML());
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP"
hi i am looking at this geoip tutorial
http://bakery.cakephp.org/articles/view/geoip-component
what does the following mean? echo h?
echo h($geo->asXML());
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP"
Disregard this message, sorry, I ran the query again without the word "default"
and it worked without any errors.
- Original Message
From: Janis Rough <[EMAIL PROTECTED]>
To: cake-php@googlegroups.com
Sent: Thursday, October 9, 2008 8:06:16 AM
Subject: Re: newbie q
tutorial to work.
- Original Message
From: Gabriel Kolbe <[EMAIL PROTECTED]>
To: cake-php@googlegroups.com
Sent: Thursday, October 9, 2008 2:55:42 AM
Subject: Re: newbie question
I user Xampp, and it works like a dream !!
On Thu, Oct 9, 2008 at 4:09 AM, <[EMAIL PROTECTED]&g
WEll this is just a test I'll do it on a server later
- Original Message
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: cake-php@googlegroups.com
Sent: Wednesday, October 8, 2008 8:09:52 PM
Subject: Re: newbie question
I think it may be best if you use a r
thanks,
- Original Message
From: techiguy <[EMAIL PROTECTED]>
To: CakePHP
Sent: Wednesday, October 8, 2008 8:44:23 PM
Subject: Re: newbie question
yes ofcource u can use with XAMPP on windows.
i am also working on that with out any problem.
before u start make sure u have c
Ok Great!
On 10/09/2008, Gabriel Kolbe <[EMAIL PROTECTED]> wrote:
>
> I user Xampp, and it works like a dream !!
>
> On Thu, Oct 9, 2008 at 4:09 AM, <[EMAIL PROTECTED]> wrote:
>>
>> I think it may be best if you use a real server!
>>
>> On 10/08/2008, JRough <[EMAIL PROTECTED]> wrote:
>>>
>>> I
I user Xampp, and it works like a dream !!
On Thu, Oct 9, 2008 at 4:09 AM, <[EMAIL PROTECTED]> wrote:
>
> I think it may be best if you use a real server!
>
> On 10/08/2008, JRough <[EMAIL PROTECTED]> wrote:
>>
>> I want to try out Cakephp. Do you know if I can use it with XXAMP on
>> Windows j
I think it may be best if you use a real server!
On 10/08/2008, JRough <[EMAIL PROTECTED]> wrote:
>
> I want to try out Cakephp. Do you know if I can use it with XXAMP on
> Windows just for testing or do I have to install it on a real server?
>
> thanks,
>
> >
>
--
Xavier A. Mathews
Student/D
yes ofcource u can use with XAMPP on windows.
i am also working on that with out any problem.
before u start make sure u have checked the configuration of your
local server
http://book.cakephp.org/view/333/A-Note-on-mod_rewrite
hope this helps you
On Oct 9, 7:14 am, JRough <[EMAIL PROTECTED]>
I want to try out Cakephp. Do you know if I can use it with XXAMP on
Windows just for testing or do I have to install it on a real server?
thanks,
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To
To resolve this issue I use the 1.2xxx and everything worked just
fine...
Jerry
On Sep 28, 12:19 pm, ManMetal <[EMAIL PROTECTED]> wrote:
> Hi There,
> I have been sucessful in configurating CakePHP and I have almost
> finished the Blog Tutorial. When I run the app I get an SQL error
> listed bel
Hi There,
I have been sucessful in configurating CakePHP and I have almost
finished the Blog Tutorial. When I run the app I get an SQL error
listed below. It appears there is some kind of error in the 'all LIMIT
1" at line 1 that mySQL does not like. I can't find where the SQL is
located at nor do
The Configure Class can be used to store values during runtime:
Configure::write('Site.webmaster', '[EMAIL PROTECTED]');
Configure::write('Site.title', 'My Site');
and read them:
Configure::read('Site.webmaster'); // returns '[EMAIL PROTECTED]'
Configure::read('Site'); // returns array('webmaster'
The default value for the read() method is 'debug'.
This means that it return the value of debug settings.
2008/9/14 . <[EMAIL PROTECTED]>:
> what does configure::read() do?
> >
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Go
*laf* This is totally awesome - I never would have thought of this,
but it looks like it does work.
Looking at the SQL, it looks like the initial query is unchanged:
SELECT `Term`.`id`, `Term`.`year`, `Term`.`quartername` FROM `terms`
AS `Term` WHERE 1 = 1 ORDER BY `year` DESC
But the next quer
Thanks for the informative reply! It was kinda looking like this was
the way things are, but I always wonder if I'm just missing
something :)
Thanks!
--Mike
On Jun 30, 9:49 pm, Grant Cox <[EMAIL PROTECTED]> wrote:
> The documentation you are referring to is misleading - a join is only
> used ac
First question: maybe with Containable behaviour?
$this->Term->contain('Course' => array(
'conditions'=>array( 'Course.id' => 1),
'order' => 'year DESC',)
);
Damn, You can even be dirty $this->Term->hasMany['Course']
['conditions'] =" Course.id =1;":)
On Jul 1, 6:49 am, Grant C
The documentation you are referring to is misleading - a join is only
used across a belongsTo association (and hasOne), never for hasMany.
Basically, you can't have query conditions across a hasMany
association. You will have to either query the other way (as you saw,
the Course belongsTo Term,
I'm not sure that either of these suggestions will help your problem, but ...
1) you should try using the latest CakePHP (revision 7296 last I
checked). There have been a number of improvements and bug fixes
since 6311.
2) you've got an extra comma at the end of your find query
("'recursive' =>
Hello!
I'm really sorry to post this, but I've looked around, and haven't
been able to figure out how to do a find on a Model (named 'Term"),
using conditions that restrict the results based on fields in another
model (named "Course") that belongsTo the first model . Term hasMany
Course.
In the
I'm a newbie trying to understand CAKE, and so far so good. I've
understood the 'blog' tutorial.
I am trying to make an app where users login and then use the app to
add their data to their own copy of a database. There would be lots of
databases (all same structure) each solely for that user.
I t
typo
i meant
array('validate.js')
and
On Tue, Jun 10, 2008 at 2:48 PM, clemos <[EMAIL PROTECTED]> wrote:
>
> Hi .
>
> Do you often link "array('commons.js')" when you actually want
> "validate.js?11645" to be loaded ???
> The weirdest thing is that Cake links "validate.js" instead...
>
> T
Hi .
Do you often link "array('commons.js')" when you actually want
"validate.js?11645" to be loaded ???
The weirdest thing is that Cake links "validate.js" instead...
The correct code, at least on Earth and for computers built by human
beings, should be:
link('validate.js?11645') ?>
+++
Cl
when i do this:
echo $javascript->link(array('common.js'))
the output i get is
this is giving me problems in IE6 (but it is okay in firefox or IE7). The
correct line should be
(without the slash '/' to the left of the 'js')
how do i do this?
thanks
--~--~-~--~~~-
It's in the source:
http://api.cakephp.org/1.2/paginator_8php-source.html#l00069
You have to scroll back up to see it because the ID is in the wrong
place in the HTML.
On Sat, Jun 7, 2008 at 9:53 PM, . <[EMAIL PROTECTED]> wrote:
> I am using cake rc1
>
> In the following link, i am trying to fi
1 - 100 of 222 matches
Mail list logo