You have to store your API key somewhere, and your site needs to know how to
retrieve it.
There are two main issues with storing it directly in the file:
1. As already stated, if someone gets access to your web server or FTP
information, they'll have your PayPal API information as well.
My first thought is your server does not have the MySQL extension for PHP.
Make sure you have the php_mysql extension on your server, and its
corresponding extension configuration line in php.ini is enabled, before you
run your web app.
Cheers,
OJ
--
Our newest site for the community: CakePHP
Ok, getting closer.
First, I made a minor typo above, 'requireJs' should have been 'requiredJs',
but that doesn't really matter for this issue.
It turned out I just needed to open up Config/bootstrap.php to realize I
need to manually enable my plugins in CakePHP 2.0.
Face ... meet palm.
Ben
I have a simple (and likely poorly written, sorry) component that I was
using in CakePHP 1.3 which I wanted to use in my new 2.0 beta app called
AssetGathererComponent. It is inside a plugin called 'AutoAsset'.
The file is now located at
app/Plugin/AutoAsset/Controller/Component/AssetGathererCo
Hmm... actually I guess it is called but I have some sort of problem with
one of my components that was preventing AppController from being used
apparently (although no errors were output). I will try disabling my custom
components and troubleshooting them one by one to see which one's doing it.
Thanks Sam, this seems to be simple enough and that it will do the
trick, now how would I go about getting all the files I just uploaded
because the thing is these are not files that are independent they
will be linked to another model, for instance News hasMany Image
On Aug 23, 10:47 pm, Sam Sher
I'm having a hard time getting CakePHP 2.0 to use my AppController.
It's located in app/Controller/AppController.php
It defines components and helpers (which do not actually get defined) and
has a beforeFilter with a die() statement which never gets called.
Is that not the right place for CakeP
http://pixelcone.com/tutorial/ajax-file-upload-using-jquery-and-cakephp-media-plugin/
- S
On 24 August 2011 03:37, 8vius wrote:
> I'm really struggling to find a solution for what I want to do. I want
> to be able to upload several image files simultaneously but I don't
> want to have sever
I'm really struggling to find a solution for what I want to do. I want
to be able to upload several image files simultaneously but I don't
want to have several file boxes but just one where the user can select
several files to upload, what is the best plugin and solution on the
frontend side to do
Yes, the keyword is IIS.
I've done some web app scripting back in those IIS days in ASP and ASPX
(*ick*), but I never really made something on top of IIS 7, which the
CakePHP Cookbook describes, if not recommends.
http://book.cakephp.org/view/1636/URL-Rewrites-on-IIS7-Windows-hosts
Make sure y
thanks for helping. I got everything to work by doing this
in the wizard after complete function
i did the following
$comeonwork=$this->Wizard->read('state.City.state_id');
$states= $this->State->findById($comeonwork);
// in my email i did this
I kept trying to do everything in my _p
hi everyone,
i have the object book with its attribute visible as boolean. i wanna
use pagination and it works except for one thing.
first i did two "this->paginate" in my controller. one with visible
condition true and the other with false. but cake doesnt like two
paginations in one controller.
I have one more question that cropped up after Tilen's help.
In my plugin, I would like to various actions with in the plugin's
main controller (user_agent_app_controller). Is this even possible?
On Aug 23, 4:33 am, Tilen Majerle wrote:
> if you are on cake <= 2.0.0-dev than you use like you say
I'd try an outer join
On Tue, Aug 23, 2011 at 11:23 AM, euromark wrote:
> although this will get quite slow with more and more ids and might
> consume a lot of memory some day
> depending on the size a subquery might some day be more suitable. but
> until then this 2-query will work fine.
>
>
>
although this will get quite slow with more and more ids and might
consume a lot of memory some day
depending on the size a subquery might some day be more suitable. but
until then this 2-query will work fine.
On 23 Aug., 13:44, Dwayne Hanekamp wrote:
> That worked, awesome!
>
> Thanks so much J
+1 for webbedIts answer :)
On 23 Aug., 11:08, WebbedIT wrote:
> I have never tried to use Cake without URL Rewriting so can;t give you
> an answer as to whether it's possible or advisable.
>
> I would personally think you're creating a big headache for yourself
> if you're trying to use Cake on a
That's it!
Thank you, Werner!
2011/8/23 Werner Petry Moraes
> Hey,
>
> I think what you want to show is $role['ParentRole']['name'] instead of
> $role['Role']['name']
>
> atenciosamente,
> Werner Petry Moraes
> werne...@gmail.com
>
>
> On Mon, Aug 22, 2011 at 21:54, Rodrigo Vronscki Ricardo <
>
I am currently trying to bake models for a project in CakePHP. I have
set up my database tables and baked my skeleton project. I then
execute the following via terminal:
cake bake -app /home/gary/glecto/
Which then display's me the correct menu. When I choose "M" I get the
following error
PHP War
Hey,
You don't have the mysql extension installed.
Check out http://www.php.net/manual/en/mysql.installation.php
atenciosamente,
Werner Petry Moraes
werne...@gmail.com
On Mon, Aug 22, 2011 at 09:37, Shervin kapil wrote:
> Hi,
>when running my source code following Fatal error is displaying
Hi,
i think your controller should be called PostReplies, or you can add this
line to call the right model.
var $uses = 'PostReply';
atenciosamente,
Werner Petry Moraes
werne...@gmail.com
On Mon, Aug 22, 2011 at 15:25, Almacenamiento Almacenamiento <
almacenamien...@gmail.com> wrote:
> I'm try
Hey,
I think what you want to show is $role['ParentRole']['name'] instead of
$role['Role']['name']
atenciosamente,
Werner Petry Moraes
werne...@gmail.com
On Mon, Aug 22, 2011 at 21:54, Rodrigo Vronscki Ricardo
wrote:
> Hi there,
>
> I'm new to Cakephp and I'm trying to build a small system wic
Anyone know where I can find a tutorial for David Persson's Media
Plugin Tutorial? Documentations seems scarce and questions here are
all relating to issues with the plugin, there doesn't seem to be a
starting point.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp
tnx :D
On Tue, Aug 23, 2011 at 1:35 PM, WebbedIT wrote:
> Better where possible to disable the ajax fields rather than turn off
> security validation for the whole form.
>
> HTH, Paul
>
> On Aug 22, 1:28 pm, Sepehr Laal <3pehr.l...@gmail.com> wrote:
> > tnx :D
> >
> > On Mon, Aug 22, 2011 at 12:
You do not have MySQL driver named "mysql" installed but demand it in
databases.php
On 22 авг, 19:37, Shervin kapil wrote:
> Hi,
> when running my source code following Fatal error is displaying.
>
> Fatal error: Call to undefined function mysql_query() in D:
> \nasoindiadev\tradev2\cake\libs
I just tried that ( out of scientific interest, I already moved my check
in the controller actions)
Yes in beforeFilter I get the findQueryType "count" and "all".
Anyhow: Good to know such a thing exists f I should need it in one of my
1.3 applications
Am 23.08.2011 10:14, schrieb Jeremy Bur
Hey Sivaramakrishnan, there's no code to run as such. I'm the OP and
basically it's a tutorial which sets up an interface to the paypal
API. In it is says "IMPORTANT - HAVING YOUR API PASSWORD INCLUDED IN
THE MANNER IS NOT SECURE, AND ITS ONLY BEING SHOWN THIS WAY FOR
TESTING PURPOSES"
My question
That worked, awesome!
Thanks so much Jeremy!
Dwayne
On 23 aug, 12:48, Jeremy Burns | Class Outfit
wrote:
> Do a find to get all the ids of the badges in the users_badges table. Then do
> $this->Badge->find('all', array('conditions' => array('NOT' array('Badge.id'
> => $badgeIds;
>
> Seeht
Did you read and follow the error message? Are your files named correctly and
in the right places?
Jeremy Burns
Class Outfit
http://www.classoutfit.com
On 22 Aug 2011, at 13:32, Shervin kapil wrote:
> Hi,
>When running my sample program the following errors will
> displaying.
>
> Missing
if you are on cake <= 2.0.0-dev than you use like you say, if you are on
cake >= 2.0.0-alpha, then, do this
$this->element('elementname', array('variablenameforelement' => 'value',
'second' => 'value2, array('plugin' => 'plugin_name'));
so first parameter is element name
second are vars for eleme
hi guys,
Iam begi to cake php, i try to run some sample cake php app.it
shows error like this
[Fatal error: Call to undefined function mysql_query() in D:
\nasoindiadev\tra2\cake\libs\model\datasources\dbo\dbo_mysql.php on
line 600]. any one can help me to fix this .. thanks in advance
-
I am working on a new plugin and I have a few questions about using
elements with plugins.
To give a basic example of my plugin, I have 3 different controllers
in my plugin: ControllerA, ControllerB, ControllerC. The elements I am
creating for each controller is simply a quick view of the data.
I
Hi there,
I'm new to Cakephp and I'm trying to build a small system wich Users have
Roles and Roles MAY have a parent Role
So I tried to change the name of the model to parentRole like below:
var $belongsTo = array(
'parentRole' => array(
'className' => 'Role',
'foreignKey' => 'role_id'
In data
I'm trying to relate the table and Posts_Replies Posts, but I have some
problems ..
Check several times tables, file names and code, but I see no objection to
that.
Search internet, but I can not fixearlo U.u
Even in the inflector.php adds 'post_reply' => 'posts_replies' x just in
case
Q I hope I
Hi,
When running my sample program the following errors will
displaying.
Missing Controller
Error: PostController could not be found.
Error: Create the class PostController below in file: app\controllers
\post_controller.php
Notice: If you want to customize this error message, create app\
Thanks for your replay.please bring some example code to run
--
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 questions.
To unsubscribe from this grou
Hi,
when running my source code following Fatal error is displaying.
Fatal error: Call to undefined function mysql_query() in D:
\nasoindiadev\tradev2\cake\libs\model\datasources\dbo\dbo_mysql.php on
line 600
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.o
Do a find to get all the ids of the badges in the users_badges table. Then do
$this->Badge->find('all', array('conditions' => array('NOT' array('Badge.id' =>
$badgeIds;
See http://book.cakephp.org/view/1030/Complex-Find-Conditions and search for
'NOT IN' on the page.
Jeremy Burns
Class Out
Hello everyone,
I've been trying to work this out for the last couple of hours but it
isn't working.
I'm building an achievement system. So i have two tables:
Users_Badges and Badges (and ofc much more but they don't matter)
What i want is to make a find condition which only selects the badges
th
It should work as I can confirm by the following test:
$themeName = "admin";
echo $this->Html->css(array(
'style',
'//ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/themes/le-frog/
jquery-ui.css',
$themeName
));
Which produces:
Are you sure you have a value in $theme[0]['Theme']['
No problem, easily done, just dropped that in so others don't try to
answer something that's already being answered elsewhere and linking
the two threads.
On Aug 22, 7:51 am, jtan...@gmail.com wrote:
> Yes. Sorry about that.
> Sent from my BlackBerry® wireless handheld
>
>
>
>
>
>
>
> -Origina
How blind am I? I never spotted that with updateAll(), which is the
only time we use the $fields array in this manner, but then again
whenever I use updateAll() it's to change the value of some flags so
my value must have always been 1 or 0 and therefore worked without an
issue.
Learn something n
I have never tried to use Cake without URL Rewriting so can;t give you
an answer as to whether it's possible or advisable.
I would personally think you're creating a big headache for yourself
if you're trying to use Cake on a server that does not have URL
Rewriting, which let's face it should be a
Better where possible to disable the ajax fields rather than turn off
security validation for the whole form.
HTH, Paul
On Aug 22, 1:28 pm, Sepehr Laal <3pehr.l...@gmail.com> wrote:
> tnx :D
>
> On Mon, Aug 22, 2011 at 12:30 PM, O.J. Tibi wrote:
> > Or you can those fields that you want to add/r
Ahh, so you need the name to be used in an email after the save. In
that case as Zaky says you have the id so do a find and retrieve the
name.
$this->MainModel->State->field('name', array('id'=>$this-
>data['MainModel']['state_id']));
HTH, Paul.
On Aug 22, 4:15 pm, arron wrote:
> that maybe tr
Did you try reading it in beforeFind and setting a local variable that you can
read in afterFind?
Jeremy Burns
Class Outfit
http://www.classoutfit.com
On 22 Aug 2011, at 15:25, Thomas Ploch wrote:
> Look at Model::findQueryType :-)
>
> Am 22.08.2011 15:56, schrieb Anja Liebermann:
>>
>> Hell
the afterFind method is not just called by the pagination but by every
find I do on this model.
Ad I wanted to add the check IN the afterFind method not before or
after, but it looks like this is not possible. Well I add it to the
controller methods where necessary, I just hope I could budle t
Hi Teddy,
I really would love to upgrade! But this is a huge legacy application
with some changes in the core and I guess an upgrade would need about
two weeks, which isn't possible without a very very very good reason to
tell my manager.
I will do the checks in the controller instead.
Anja
47 matches
Mail list logo