DISREGARD, just saw the real issue, not at the User hasMany, but at
the Author hasMany!
Yes, I see the same problem!
Enjoy,
John
On Nov 4, 8:47 am, John Andersen wrote:
> Using 1.2.5 too, can't recreate the issue.
>
> User hasMany Author hasMany Article, Ebook
[snip]
--~--~-~--~~-
Using 1.2.5 too, can't recreate the issue.
User hasMany Author hasMany Article, Ebook
[code]
debug($this->User->hasMany);
debug(
$this->User->find('first',array(
'contain'=>array(
'Author' => array(
'Article' => array('fields' => array('id') )
Awesome work guys, pretty stoked to try it out!
Keep up the good work :p
On Nov 3, 10:10 pm, George H wrote:
> Great work guys!
>
> On Nov 4, 4:28 pm, mark_story wrote:
>
> > The CakePHP development team is happy to release the alpha build of
> > CakePHP 1.3. We've been hard at work improving
Great work guys!
On Nov 4, 4:28 pm, mark_story wrote:
> The CakePHP development team is happy to release the alpha build of
> CakePHP 1.3. We've been hard at work improving upon the already great
> 1.2 and implementing new features to ease development and increase the
> flexibility of CakePHP.
You extract the part that you would like to use in more than one
place, and implement that part as an element.
Then include the element in each place that you would like to see it.
Enjoy,
John
On Nov 4, 6:34 am, abc wrote:
> Hi all,
>
> I have an add.ctp file, which will enable the user to ad
Actually you will have 3 tables:
questions, answers and answers_questions
Something like the following:
[questions]
id
question
answer_id <- the correct answer
[answers]
id
answer
[answers_questions]
id
answer_id
question_id
Observe that I changed the relation between the Question and the
Answ
Wow people relax... We are a group of developers that enjoy releasing this
framework and also like to have a little fun after all the talk of this
project dying. This was a great in your face "We are still here statement".
Thanks for all your support...
--
/**
* @author Larry E. Masters
* @var s
The CakePHP development team is happy to release the alpha build of
CakePHP 1.3. We've been hard at work improving upon the already great
1.2 and implementing new features to ease development and increase the
flexibility of CakePHP. There have been a number of changes to
existing features and it
I agree. This theme has me worried. Halloween is past anyway.
On Nov 3, 2:50 pm, on24 wrote:
> Hmmm, I just don't like this "funny" theme. My first thought was
> "CakePHP gone?! Too bad. Let's check Code Igniter then". Serious
> things like frameworks should not try to be funny. I really can't
I'm using the paginator helper in CakePHP to both sort columns and
move between pages. I've modified $paginator->counter() in the Cake
libs to echo something like "Viewing page of 167. I want to allow my users to jump to any
page by typing it in the textbox counter and pressing enter. Here's my
Hi all,
I have an add.ctp file, which will enable the user to add new entries,
there is another view.ctp file which will list all the existing
entries from the database.
How would I include these existing entries within the add view page,
So that user should be able to view the existing entries a
Hi everyone, I have Posts that have Votes, and the Vote has a
percentage. Every time a new Vote is added I want to calculate the
average percentage of all Votes of that particular Post and update the
Post average percentage. Besides a custom query I have no idea how to
do this in my model. Anyone
Hmmm, I just don't like this "funny" theme. My first thought was
"CakePHP gone?! Too bad. Let's check Code Igniter then". Serious
things like frameworks should not try to be funny. I really can't
promote a halloween framework to my colleagues.
--~--~-~--~~~---~--~~
its simple just drop all the cake files into cakewebsite1 and
cakewebsite2 folder and go form there http://localhost/cakewebsite1
On Nov 3, 8:38 am, "Ryan P." wrote:
> I want to play with Cake in a Windows environment where I have Apache
> installed without affecting my ability to still develo
anybody ??
On Nov 3, 6:46 am, Simon wrote:
> well i tired it in my login function dosent seem to work it keeps
> login me in my email is not active
>
> if ($this->Auth->user('email_active') == '0') {
> $this->Session->destroy();
> $this->redirect(array
On 3 nov, 23:00, "lacenaepro...@gmail.com"
wrote:
> Thanks for the replies but nowHOW CAN I ACCESS THE MODEL FROM
> WITHIN THE COMPONENT?
you seem to have accidentally written most of your message(s) in
capital letters.
--~--~-~--~~~---~--~~
You received thi
Hi,
I'm having an error using Containable, my problem is already describe
in https://trac.cakephp.org/ticket/4988 but the explanation of the
problem is not very clear.
So if we have the models:
1 - Node hasMany NodeTemplate
2 - NodeTemplate HasMany TextContent, AssetContent
When executing th
Thanks for the replies but nowHOW CAN I ACCESS THE MODEL FROM
WITHIN THE COMPONENT?
Dario
On 3 Nov, 18:35, Miles J wrote:
> Or you could just do it in the AppController::beforeFilter().
>
> On Nov 3, 7:52 am, "euromark (munich)"
> wrote:
>
>
>
> > there are some components that work t
Hi. I've got problem with mod rewrite. When i put my app into remote
server i get
Warning: include(cake/bootstrap.php) [function.include]: failed to
open stream: No such file or directory in /home3/kaczano/public_html/
ajax1/app/webroot/index.php on line 81
I done sudo chmod 777 -R, fur sure. Bu
I want to play with Cake in a Windows environment where I have Apache
installed without affecting my ability to still develop sites without
Cake. With Apache running, I can build websites within the "C:
\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs"
folder. What I would like t
Can someone help me with just a quick re-naming of a file?
I edit an image but it always returns the same image before it was edited I
guess because its caching the image. I have tried everything with cache and
give up.
So after editing the image i want to assign it a new name and return that t
Hi,
I wanted to do this:
class LocalShell extends Shell {
function gc(){
Cache::write('test','hello world','short');
}
}
where "short" is one of my cache configurations.
But the console returns:
PHP Fatal error: Call to a member function init() on a non-object
my models:
user hasmany comment
profile hasmany comment
user hasone profile
user hasone photo
comment belongsto user
profile belongsto user
photo belongsto user
what im trying to do is pull up profile information and the profiles
comments.
here is my index() and its find():
function in
PROBLEM SOLVED!
there was a default ruleset running for mod_security that I have to
admit I do not know lots about.
disabling it has shown it to be the problem so now I just need to re-
enable it and dig into learning how that all works.
Many thanks for the help guys.
cheers
BREWER
On Nov 3,
Personally I handle such information as I would like my own
information to be handled and that's secure as possible even for a
small site/company etc etc. It's still personal information that in
the wrong hands can do way to much damage.
On Nov 3, 4:54 pm, "euromark (munich)"
wrote:
> yeah
> i f
Hi john, thanks for your useful solution.
So, in this case we have 2 tables on my database.
1. questions
2. answers
questions hasAndBelongsToMany answers
Answer hasAndBelongsToMany questions
questions hasOne answers
answers belongsTo questions
There is no troble or conflict when questions hasAnd
You dont. You turn it into a button or submit form, then post the data
to the action and then do the processing. Or you do an AJAX call.
On Nov 3, 5:08 am, "j0n4s.h4rtm...@googlemail.com"
wrote:
> I don't entirely understand. How could I fill up $_POSTS by using
> $html->link?
>
> On Nov 3, 12:3
Okay. I solve that. just update my cakephp verison. I don't know why but
it's working
2009/11/3 kangur91
>
> Hi. I've got problem with mod rewrite. When i put my app into remote
> server i get
>
> Warning: include(cake/bootstrap.php) [function.include]: failed to
> open stream: No such file or d
Or you could just do it in the AppController::beforeFilter().
On Nov 3, 7:52 am, "euromark (munich)"
wrote:
> there are some components that work that way
> its not really evil...
> in some cases this would be the appropriate way actually
>
> On 3 Nov., 14:47, "lacenaepro...@gmail.com"
> wrote:
http://filchiprogrammer.wordpress.com/2008/08/27/followthemanual/
On Nov 3, 4:32 pm, AD7six wrote:
> On 3 nov, 23:00, "lacenaepro...@gmail.com"
> wrote:
>
> > Thanks for the replies but nowHOW CAN I ACCESS THE MODEL FROM
> > WITHIN THE COMPONENT?
>
> you seem to have accidentally written mo
Hello Everybody!
I have this models:
http://picasaweb.google.com.br/celsowm/Screenshots#5399915797002091778
And i need retrieve this:
Proprietario.nome , Veiculo.placa , sum (Infracoes.pontuacao) as
pontos
Proprietario "hasMany" Veiculo
Veiculo "habBelongsToMany" Infracoes
--~--~---
OK, so I put everything back to "normal" in my cake app. and ran
through the problematic procedure again to get some log readouts.
Live HTTP Headers firefox plugin gives me the following related to the
call
http://.com/stock/addUnits/8
GET /stock/addUnits/8 HTTP/1.1
Host: .com
User-
Please help me resolve this ACL issue. I'm going through the tutorial
"10.2.6 An Automated tool for creating ACOs"
(http://book.cakephp.org/view/647/An-Automated-tool-for-creating-
ACOs)
and getting stuck with the following error message when creating the
ACOs by running the
build_acl():
Fatal e
Please help me resolve this ACL issue. I'm going through the tutorial
"10.2.6 An Automated tool for creating ACOs" getting stuck with the
following error message when creating the ACOs by running the build_acl():
*Fatal error*: Call to a member function node() on a non-object in *
C:\wamp\www\xcha
yeah
i found 2 behaviours later on by searching with other filters
but one question remains
how important would that be for a simple online shop?
On 3 Nov., 12:45, WyriHaximus wrote:
> Did you take a look at this piece of
> code?http://bakery.cakephp.org/articles/view/cryptable-behavior
>
> O
there are some components that work that way
its not really evil...
in some cases this would be the appropriate way actually
On 3 Nov., 14:47, "lacenaepro...@gmail.com"
wrote:
> SORRY, RETYPE AGAIN, I PRESSED THE SUBMIT BUTTON!!
>
> HI,
>
> I'm building a component that automatically sets the l
Hi OK there - I know I am not providing you with the information you
require BUT, I have done some more tests with post "targets"
I have a separate hosting account with this host (dreamhost) so I just
used a working cakephp url on an entirely separate hosting account,
(different server) to try a
in all my views i have a login/register (cake)form.
statement like this:
if (user register) show hello else show registerform
my question: how can i use the cacheengine with formhelper inside
?
please help!
--~--~-~--~~~---~--~~
You received this message becaus
same problem!
cakephp cache form.. (userlogin)
how can i use cache with a cakeform?
On 9 Okt., 15:18, Simon wrote:
> yes i did that too
>
> On Oct 9, 2:56 am, Marco wrote:
>
> > Did you set Configure::Cache.check to true in core.php?
>
> > Marco
>
> > On Oct 8, 1:45 pm, Simon wrote:
>
> > >
well i tired it in my login function dosent seem to work it keeps
login me in my email is not active
if ($this->Auth->user('email_active') == '0') {
$this->Session->destroy();
$this->redirect(array('controller' => 'users',
'action' => 'not_active'));
SORRY, RETYPE AGAIN, I PRESSED THE SUBMIT BUTTON!!
HI,
I'm building a component that automatically sets the locale data
member of a translate behaviour.
In the action I look for the lang param, then call the component
method.
I'd like the component to set the locale data member in order to
a
HI,
I'm building a component that automatically sets the locale data
member of a translate behaviour.
In the action I look for the lang param, then call the component
method.
I'd like the component to set the locale data member in order to avoid
to do that in ANY action.
Something like that:
Look at the documentation at CakePHP
http://book.cakephp.org/view/55/The-Parameters-Attribute-params
This will describe where CakePHP stores the form data and the URL
data.
Enjoy,
John
On Nov 2, 6:44 pm, Jonas Hartmann
wrote:
> Given someone mails you a link with html images that tries to
I don't entirely understand. How could I fill up $_POSTS by using
$html->link?
On Nov 3, 12:32 am, Miles J wrote:
> Well in most cases then not, if your on, says a users profile, you
> would submit to that page. Within that page you would check if a
> $_POST exists and then perform the add frien
Question hasMany optional Answer
Question hasOne correct Answer
What you then need is only the models to define the trivias:
Question hasAndBelongsToMany Answer
Answer hasAndBelongsToMany Question
Question hasOne Answer
Answer belongsTo Question
Do observe that there are two associations between
http://www.jamesfairhurst.co.uk/, i like this site there is a lot of
tutorials from installing to some advance feature on cake
On Nov 2, 5:09 pm, Mohame Cherif BOUCHELAGHEM
wrote:
> hi, you can use the bakery (http://bakery.cakephp.org/) u will find
> tutorials and codes there , download this g
Hi, i will create trivia quiz application using cakePHP, i have
trouble on designing model reationship.
In this case i have question, answers and correct answer.
which is One question have 3 optional answers but have only 1 correct
answers. How to design model relationship?
Thanks and regards
Is the environment at your production site and your development site
the same?
Could you create a dummy application, with only the problematic form/
view, and test it?
If the issue is still there, can you provide the dummy application or
the view for us to test?
Enjoy,
John
On Nov 3, 1:45 p
Did you take a look at this piece of code?
http://bakery.cakephp.org/articles/view/cryptable-behavior
On Nov 3, 10:30 am, "euromark (munich)"
wrote:
> i was wondering how to save sensitive information of users
> like cc number or bank data?
> my guess is they should not be saved as plain "chars"
OK - if this also helps anyone to offer any suggestions, here is what
I have just done.
1) generated a smaller (tested working) form with what seems to be
acceptable to cake
2) Altered the main index.php entry file to just echo a message and
then exit
3) uploaded this to the site
4) Posted the ge
Hi,
if I understood you right, this could be what you need:
$result = $this->YourModel->find('all', array('group' => array
(domain_'id', 'search_engine_id'),
'order'
=> 'MAX(created)'));
With pagination it should look like this:
i was wondering how to save sensitive information of users
like cc number or bank data?
my guess is they should not be saved as plain "chars" but encrypted in
such a way that if the db is ever going to be hacked the retrieved
data would be useless to anyone without the correct "key"
passwords usu
Hi
I have 2 models that haven't DB like datasource.
Now I would set a HABTM relation between these models ( I manage the
data to save with my create method in my datasource).
Now If I don't set a jointable when define HABTM relation I get an
error.
How can I define a HABTM relation without jointa
Thanks Dr. Loboto for your answer - I've already done like that.
Function prepareToSaveAll that takes some array and returns converted.
On 3 Lis, 04:25, "Dr. Loboto" wrote:
> I think you must convert array structure before save call. saveAll
> function determine the way must be used for actua
If you have to load a model into your helper (not recommended) you can
use
ClassRegistry::init('ModelName')->find(...);
API: http://api.cakephp.org/class/class-registry#method-ClassRegistryinit
But I agree with John, use requestAction if you need to pull in data
from a view. Here's a thought,
Mark just said he's going to untwist our panties. I, for one, am
aroused.
On Nov 2, 10:29 pm, mark_story wrote:
> Yeah its partially a halloween design.
>
> For everyone with their panties in a twist, it will be changed back
> soon. We can all resume being _serious_ about a framework with m
PHP and Python code cannot be "integrated". You can call your Python
code through exec() and exchange data by text/xml/whatever files. Or
just send initial data as param and output result.
On Nov 2, 12:43 pm, Josh wrote:
> Hello,
>
> I've got a question about mixing languages in a project:
>
> I
57 matches
Mail list logo