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 joshs.silver...@gmail.com wrote:
Hello,
I've got a question about mixing
Mark just said he's going to untwist our panties. I, for one, am
aroused.
On Nov 2, 10:29 pm, mark_story mark.st...@gmail.com 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
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,
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 drlob...@gmail.com wrote:
I think you must convert array structure before save call. saveAll
function determine the way must be
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
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
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:
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
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) dereurom...@googlemail.com
wrote:
i was wondering how to save sensitive information of users
like cc number or bank data?
my guess is they should not be
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
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
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
cherif.sahel...@gmail.com wrote:
hi, you can use the bakery (http://bakery.cakephp.org/) u will find
tutorials and codes
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
I don't entirely understand. How could I fill up $_POSTS by using
$html-link?
On Nov 3, 12:32 am, Miles J mileswjohn...@gmail.com 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
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 j0n4s.h4rtm...@googlemail.com
wrote:
Given someone mails you a link
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:
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
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'));
same problem!
cakephp cache form.. (userlogin)
how can i use cache with a cakeform?
On 9 Okt., 15:18, Simon simon_d...@hotmail.com wrote:
yes i did that too
On Oct 9, 2:56 am, Marco marco.perg...@gmail.com wrote:
Did you set Configure::Cache.check to true in core.php?
Marco
On Oct
in all my views i have a login/register (cake)form.
statement like this:
cake:nocache if (user register) show hello else show registerform /
cake:nocache
my question: how can i use the cacheengine with formhelper inside
cake:nocache/ cake:nocache ?
please help!
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
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 lacenaepro...@gmail.com
wrote:
SORRY, RETYPE AGAIN, I PRESSED THE SUBMIT BUTTON!!
HI,
I'm building a component that
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 webmas...@wyrihaximus.net wrote:
Did you take a look at this piece of
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 *
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
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
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
Or you could just do it in the AppController::beforeFilter().
On Nov 3, 7:52 am, euromark (munich) dereurom...@googlemail.com
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,
http://filchiprogrammer.wordpress.com/2008/08/27/followthemanual/
On Nov 3, 4:32 pm, AD7six andydawso...@gmail.com wrote:
On 3 nov, 23:00, lacenaepro...@gmail.com lacenaepro...@gmail.com
wrote:
Thanks for the replies but nowHOW CAN I ACCESS THE MODEL FROM
WITHIN THE COMPONENT?
you
Okay. I solve that. just update my cakephp verison. I don't know why but
it's working
2009/11/3 kangur91 kangu...@gmail.com
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
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
j0n4s.h4rtm...@googlemail.com wrote:
I don't entirely understand. How could I fill up $_POSTS by using
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
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
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
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
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 to
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.
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
Thanks for the replies but nowHOW CAN I ACCESS THE MODEL FROM
WITHIN THE COMPONENT?
Dario
On 3 Nov, 18:35, Miles J mileswjohn...@gmail.com wrote:
Or you could just do it in the AppController::beforeFilter().
On Nov 3, 7:52 am, euromark (munich) dereurom...@googlemail.com
wrote:
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)
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
On 3 nov, 23:00, lacenaepro...@gmail.com 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.
anybody ??
On Nov 3, 6:46 am, Simon simon_d...@hotmail.com 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();
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. ryanpres...@gmail.com wrote:
I want to play with Cake in a Windows environment where I have Apache
installed without affecting my
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.
--~--~-~--~~~---~--~~
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.
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
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 input type=text
value=$pagenumber of 167. I want to allow my users to jump to any
page by typing it in the textbox
I agree. This theme has me worried. Halloween is past anyway.
On Nov 3, 2:50 pm, on24 on2...@gmail.com 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
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
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
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
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 dhanya@gmail.com wrote:
Hi all,
I have an add.ctp file, which will
Great work guys!
On Nov 4, 4:28 pm, mark_story mark.st...@gmail.com 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
Awesome work guys, pretty stoked to try it out!
Keep up the good work :p
On Nov 3, 10:10 pm, George H acher...@gmail.com wrote:
Great work guys!
On Nov 4, 4:28 pm, mark_story mark.st...@gmail.com wrote:
The CakePHP development team is happy to release the alpha build of
CakePHP 1.3.
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') )
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 j.andersen...@gmail.com wrote:
Using 1.2.5 too, can't recreate the issue.
User hasMany Author hasMany Article, Ebook
[snip]
57 matches
Mail list logo