Greetings,
I just switched from cakephp 1.3 to 2.x. in 1.3 there was a debug menu
that would appear when Configure::write('debug', 2); It was a pop-out menu
that started in the upper right hand corner of the screen and would show
you, among other things, which variables were set to a view.
Thanks Mancho for sending me down the right path. Reading through the
cakephp 1.3 cookbook has left me thoroughly confused regarding command
line interfaces, shell scripts and cron jobs.
My approach is to try and write a shell which will go in vendors/
shell, then I will trigger that shell from
Greetings,
I'm trying to make a cron job using godaddy's Cron Job Manager. I am
trying to figure out how to write the absolute path of the action I
want the cron job to run.
The example script I am working from goes something like:
/web/cgi-bin/php5 $HOME/html/path to controller/action
How can
Greetings,
I'm trying to make a cron job using godaddy's Cron Job Manager. I am
trying to figure out the proper command to run an action at the
specified time
Godaddy tells me that in order to run a PHP script via Cron, you must
specify the interpreter manually. For example:
/web/cgi-bin/php5
So, if I understand correctly. I need to create a shell which runs my
action. Then I can have the Cron Job Manager run the shell at the
specified times. The command would look like:
/web/cgi-bin/php5 $HOME/html/vendors/shells/MyCronShell.php
Is this correct?
--
Like Us on FaceBook
. Is it
possible that the use of short tags in the code is causing these errors
with 5.4?
On Wednesday, January 30, 2013 10:41:36 AM UTC-5, roundrightfarm wrote:
I have a completed app written in 1.3 that I'm trying to make changes
to
On Jan 29, 7:16 pm, benfarhat benfarhat.el...@gmail.com wrote
wrote:
since PHP5.4 E_STRICT is included in E_ALL (you would need to explicitly
remove it).
That is why your PHP5.2 env does not report any strict errors (there you
need to explicitly activate it).
Am Donnerstag, 31. Januar 2013 09:35:26 UTC+1 schrieb roundrightfarm:
So, I've discovered
I have a completed app written in 1.3 that I'm trying to make changes
to
On Jan 29, 7:16 pm, benfarhat benfarhat.el...@gmail.com wrote:
Try using the latest version of Cake
https://github.com/cakephp/cakephp/zipball/2.3.0 .
--
View this message in
Greetings Everyone,
Just installed XAMPP 1.8.1 for Windows which I plan to use to test a
cakephp web-app. The basic install worked fine, but once I copied all
the cake files to htdocs, I started getting errors I don't
understand. Even with debug set to 0, I get this message:
Strict Standards:
I am running cake 1.3. Is it possible that there is something in 1.3
that is incompatible with XAMPP 1.8.1 and I need to upgrade cake (or
downgrade XAMPP)?
On Jan 29, 4:26 pm, roundrightfarm roundrightf...@gmail.com wrote:
Greetings Everyone,
Just installed XAMPP 1.8.1 for Windows which I plan
Greetings, I am a cake newbie. My Cakephp site had worked fine for 3
years on a single server, except for rare (once every 3-6 months)
occurances of prolonged (3 -24 hrs) 500 Internal Server Errors when I
tried to run scripts that accessed the database. Static pages on the
site have always worked
to Configure::write('debug', 2); too see if any
error messages showing up…
chmod -R 777 app/tmp/
could be that your site is older cakephp core their server is newer php…
might need to update cake core…
Andras Kendehttp://www.kende.com
On Nov 29, 2012, at 12:43 PM, roundrightfarm roundrightf
from my core file
Configure::write('Session.save', 'php');
but in phpinfo()
session.save_path says no value
this is the first warning to appear on all pages of my site, not just
the login
Warning (2): session_start() [function.session-start]: open(/var/
I have a demo of my cake app nested inside my main app with a url like
so
localhost/demo/users/autologin
the demo folder contains all the folders of a cakephp app such that
when I reference a pdf file like
a href=? $this-webroot; ?file.pdf
it looks in the webroot folder in the demo app. How
I'm new to ckaephp so take my advice with a grain of salt... but, it
looks like your trying to generate a spreadsheet type document. Cake
has a csv helper to aid in this
add var $helpers = array('Csv'); to your controller
then you can
$csv-addRow();
$csv-render();
On Jan 3, 7:45 am, Yves S.
What I understand from the manual is that if the model you need to
access is associated with the current controller's model, you don't
need to add it to $uses. Also that you don't need to add the current
controller's model to $uses unless you have added another model, in
which case it becomes
The two arrays made with find() look like I would expect them to, but
the foreach loop leaves $discount_prices (of which many have null
values) unaffected. What am I missing here?
//get regular prices
$item_prices = $this-Item-find('list', array('fields' =
array('Item.price')));
and expect it to change
anything outside of the loop and the scope of this change
if(!isset($discount_price)) $discount_prices[$key] =
$item_prices[$key];
On 20 Dez., 16:37, roundrightfarm roundrightf...@gmail.com wrote:
The two arrays made with find() look like I would expect them
thanks, I didn't notice your change the first time around
On Dec 20, 10:14 am, euromark dereurom...@googlemail.com wrote:
thats not what i was saying
you sure can
and I already gave you the answer in the previous post :)
On 20 Dez., 17:33, roundrightfarm roundrightf...@gmail.com wrote
Is there ever a time when it is considered best practices to use var
$uses for access to a model from a controller. The cakephp manual
seems to say to use $this-Model-AssociatedModel when there is an
association and $this-loadModel('UnassociatedModel') when there
isn't. Does var $uses not appear
is not even getting made. I have been stuck for a day
now trying to get this to record some data. Any ideas?
On Dec 17, 11:36 pm, roundrightfarm roundrightf...@gmail.com wrote:
Yes, its set to 2
On Dec 17, 11:23 pm, Geoff Douglas drdouglas...@gmail.com wrote:
Do you have you core
, of course.
did you debug the save query? does it return FAlSE?
On 18 Dez., 08:36, roundrightfarm roundrightf...@gmail.com wrote:
Yes, its set to 2
On Dec 17, 11:23 pm, Geoff Douglas drdouglas...@gmail.com wrote:
Do you have you core Configure debug level set to 2?
(In config
I figured it out. I was not thoroughly resetting my database records
to allow for proper testing so I was running the foreach on an empty
array. Sorry to have wasted your time.
On Dec 18, 8:28 am, roundrightfarm roundrightf...@gmail.com wrote:
When I debug the save query, I get the same blank
I can't create a new record in my database table.
Here is the code I am using
[code]foreach($boxes as $box) {
//check and see if the box's owner has any optional
shares
//if they do, add the product to the boxes item table
so it will be
included
:17, roundrightfarm roundrightf...@gmail.com wrote:
I can't create a new record in my database table.
Here is the code I am using
[code]foreach($boxes as $box) {
//check and see if the box's owner has any optional
shares
:
I already gave you the answer in my previous post
anyway:http://book.cakephp.org/2.0/en/development/debugging.html?highlight=d...
for starters you can simply output and die:
$var = $this-OsChoiceHistory-validationErrors;
debug($var);
die();
On 17 Dez., 18:35, roundrightfarm roundrightf
Yes, its set to 2
On Dec 17, 11:23 pm, Geoff Douglas drdouglas...@gmail.com wrote:
Do you have you core Configure debug level set to 2?
(In config/core.php)
Errors won't display if you don't have debug turned on.
--
Our newest site for the community: CakePHP Video Tutorials
I'm just learning cake and am trying to better understand the
relationship between and appropriate use of the $uses variable in a
controller, the Containable Behavior, and of the different Model
relationships ($hasOne, $belongsTo, etc.)
It seems they all influence the scope of a Model-find()
I'm having to do a find('all') with recursive = 2 to get at the data I
need in my array. Unfortunately using this level of recursion also
pulls in a bunch of unneeded data, creating a monster array which is
stretching the memory limits.
Is there some syntax (perhaps involving 'fields') that will
:
The Containable behaviour is your very best
friend:http://book.cakephp.org/view/1323/Containable
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.comhttp://www.classoutfit.com
On 5 Jan 2011, at 13:10, roundrightfarm wrote:
I'm having to do a find('all') with recursive = 2 to get at the data I
Would this explain why a even a static page will not load? Literally
none of my pages would load.
Actually, the problem fixed itself, with me doing nothing. I first
encountered the problem, walked away for about 2 hours, came back, the
problem was still there. I posted on the forum, then came
I figured it out. I needed to add $this-redirect($this-referer());
to the end of the controller code. Since it is an ajax call, there is
not a new view to render, but I guess you still need to refer this
controller function back to the old view
Check out the new CakePHP Questions site
did you write a url as a string somewhere which included localhost
(ie. 'http://localhost/conroller/action') so that it would work fine
on your development computer but not on the live server?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related
here is my controller function that is called by ajax
function select($id, $product_id){
$this-OptionalShareUser-read('current_product_id', $id);
$this-OptionalShareUser-set('current_product_id',
$product_id);
$this-OptionalShareUser-save();
Thanks for pointing out I needed to use onchange and not onmouseup.
I know this is not standard cakephp. I am new to php and cakephp and
found the form helper confusing, so I decided not to use it and just
code the html which I understand a little better.
how do I go about coding the value of
I have a selectoption drop down menu in a view and I'm wondering
if i can send data based on the selected result to my database when it
is selected onmouseup.
the options are populated from the optional_share_products table.
I'd like to send data about the selected product (actually Item.id) to
36 matches
Mail list logo