This has been completely reworked in the 1.2 branch. The fixes are
being back-ported to the next bugfix release of 1.1.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send
I run my app on my own server, it is not a shared environment. I run
other cakephp applications on this server and there work as expected
(without this blank pages). I have a custom session component handling
my sessions looks like this:
A first glance at the source code does not reveal anything that would
point me to an error.
The SQL in the method __gc seems invalid: $db-execute(OPIMIZE TABLE
. $this-session_table);
Should be OPTIMIZE. Perhaps the optimization raises an error and stops
the output.
I don't know if the MySQL
Take a look at a href=http://www.mpsoftware.dk/phpdesigner.php;PHP
Designer/a.
Lately I'm trying EasyEclipse for PHP (already mentioned in previous
messages) but it's still soon for me to give a consistent opinion.
--
Emilio Cabezas
--~--~-~--~~~---~--~~
You
Hi Luke,
Call Authorize in your beforeFilter. Probably that was all you
needed/wanted to hear :)
Cheers,
AD7six
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email
ok i fixed the error with the optimize sql query. Nothing change. Where
can i change the order of the loaded modules? thanks in the meanwhile
for your great help!!!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
iServicePro is an innovative approach to offering affordable tools for
Java and J2EE developers. in particular, we are a professional team for
applying oneself to develop and integrate eclipse plug-in for user
applications.
Our mission now is to deliver business value and to maximize
developers'
I'm not very deep into system administration. On my Suse box it is
managed in /etc/sysconfig/apache (using Confixx). The instructions
there create the conf-files for Apache on the fly.
Usually comments within the httpd.conf indicate the location where
modules are loaded. You could search for
bracchetto escreveu:
yes.. first you read the value and then you add your number, but this
are two query,
better would be do something like update mytable set num = num + 3
where id = 5;
Maybe this can help..
In your controller:
$this-MyControler-increment($id);
In your Model:
Some more doubts..
AD, Do you mean to say that for each value we have to write separate
components ?
In my case , one particular section contains some values. I will be
using it as a
whole in other pages (not a single value).
Please see the following scenario.
In my home page , so many
Hi Geoff,
Just click the envelope here https://cakeforge.org/frs/?group_id=23
And whenever there's a release or a change to a release, you'll get a
mail
Cheers,
AD7six
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
i'm gettting a missing component error.
in my controller i have this line:
var $components = array('Language');
then i have my language_component.php file saved in
app/controllers/components
in my view i have:
?= $this-Language-translate('en-us','es','monday'); ?
here's my component file
I was going to send you a link to the conventions section of the manual then I looked myself and it is incorrect.language.phpnotlanguage_component.php-- /*** @author Larry E. Masters
* @var string $userName* @param string $realName* @returns string aka PhpNut* @accesspublic*/
Out of curiosity, I thought I had wrote the debug messages detailed enough that it would have shown the proper file name, is this working for you?-- /*** @author Larry E. Masters* @var string $userName
* @param string $realName* @returns string aka PhpNut* @accesspublic*/
negative,
the debug told me i needed language_component.php
here's a screen shot:
http://projects.jobscry.org/missing_controller.png
mabye i need to upgrade to the newest version?
Larry E. Masters aka PhpNut wrote:
Out of curiosity, I thought I had wrote the debug messages detailed enough
Awesome, that's good to know. Thanks for your help on this! :)
nate wrote:
This has been completely reworked in the 1.2 branch. The fixes are
being back-ported to the next bugfix release of 1.1.
--~--~-~--~~~---~--~~
You received this message because you are
Just thought I'd draw your attention to a new article over on
sitepoint:
The CakePHP Framework: Your First Bite -
http://www.sitepoint.com/article/application-development-cakephp
It's a nicely written introduction to CakePHP. It only covers very
basic first principles (it lightly glosses over
So much for my suggestion, I just discovered that setting a parameter
for a controller's index action causes problem with CakePHP as it
thinks the parameter is an action.
It's a bit of a bummer was I was hoping for to shorten URLs such as
www.blah.com/news/views/1 to www.blah.com/news//1
Whenever I try to insert multiple rows with a loop, the record is made
but rewritten over in the loop. The following code results in one new
record in order_products no matter the number of cart_products.
$cart_products = $this-requestAction('/shopping_carts/getCart');
foreach($cart_products as
Nice. Thanks for pointing this out.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
Hi xeeton,
Put
$this-OrderProduct-id = NULL;
in your loop before the save and you should be home free.
Cheers,
AD7six
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send
can't do that... I only want to call the authorize on certain pages.
Some pages are available to the public.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
Hi, somebody know what it's this?
more time, thanks
Warning: session_start(): Cannot send session cache limiter - headers
already sent (output started at
/paginas/www/conferencias/conferencias/app/controllers/submissions_controller.php:76)
in
After using CakePHP for several internal projects now, a couple of
small things about these two helpers are starting to niggle. I want to
get some feedback before submitting any tickets though.
First off, is their a good reason for 'labelTag' in the form helper?
All of the inputs for the form
How would I do that? Could somebody provide me with an example of using
Cake's builtin File and Folder objects? Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send
Thanks a lot, that worked!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL
I have a HABTM relationship between Products and Logos. When I use
something like this:
$this-set('data', $this-Product-find(id = 2, null, null, 1));
The result is the following:
Array
(
[Product] = Array
(
[id] = 2
[name] = Chase and Ken T-Shirt
I think I had similar errors when I had duplicate models or controllers and
it would cause all sorts of strange errors like you have here. Once I
cleaned up and verified there wasn't any duplicates it went away.
--~--~-~--~~~---~--~~
You received this message
Hello,
I want to experiment something but I am not sure it's possible or
recommended..
I have a form to compute some formulas, actually there are 4
different math formulas..
Best exemple will be the physis formula U = RI
Basically the input form is the same except that scenario 1 you enter R
Alright... I got everything setup running (but not quite).
I'm getting the following errors:
Warning: opendir(): open_basedir restriction in effect.
File(/app/models/) is not within the allowed path(s):
(/home/vistoin1/:/usr/lib/php:/usr/local/lib/php:/tmp) in
Oh yea I'm on a shared host and have no way of editing php.ini or
httpd.conf.
My question is specifically about any configuration which is required
to make Cake look in /cake/basics.php instead of
/home/vistoin1/public_html/cake/basics.php. I hope someone
understands my question!??
One thing I am kind of having a hard time wrapping my head around is...
say i set up a set of classes for manipulating files and folders. Where
do I store these so they can be used anywhere? Then how do I use them?
--~--~-~--~~~---~--~~
You received this message
awesome. i was stuck there too. thanks AD7six
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send
Luke, Let me explain something. Models represent anything, it does not have to be a database, so when you create models they are used to model real world object, for example a file system.There is file handler model that may help.
http://cakeforge.org/snippet/download.php?type=snippetid=108Notice
Graham I liked your tutorial, and I've come up with a little addition
for it.
An excerpt for my work in progress site:
function view ($entry=NULL)
{
$item = $this-News-findBySlug($entry);
if(!empty($item)) {
$this-set('news', $item);
try array('Logo.company_id'=1,'Product.id'=2) On 7/12/06, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:I have a HABTM relationship between Products and Logos. When I use
something like this:$this-set('data', $this-Product-find(id = 2, null, null, 1));The result is the following:Array([Product] =
First off, is their a good reason for 'labelTag' in the form helper?
It has a lot to do with the fact that the primary purpose of the label
tag is in the design of forms.
All of the inputs for the form are in the HTML helper, as well as all
of the form validation stuffs.
Yeah, we're working
Thanks much for the help, but what exactly do you mean (and what syntax
should I use)?
Samuel DeVore wrote:
try array('Logo.company_id'=1,'Product.id'=2)
On 7/12/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I have a HABTM relationship between Products and Logos. When I use
something
I want to query a HABTM relationship, with two relationships.
Say I have tables
players
positions
players_positions
And I want to find players who are both shortstops (Position.id=1) and
pitchers (Position.id=3).
Is there a cake way to do this?
--
Thanks,
Ryan
I was having problems similar but not like yours. I unziped or
extracted cakephp to my public_html and changed the folder name to cake
so it's now public_html/cake. This is called a development install
which is perfect for playing around. In public_html/cake/.htaccess you
will see this:
IfModule
I think I'm asking a simple version of this in my post a few down. I'm
looking forward to an answer to your question.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send
Okay, finally solved it.
$this-_webroot() give me this: http://localhost:2999/php/uhicake/
where my url is like this:
http://localhost:2999/php/uhicake/controller/action/param
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Hi nate, thanks for the reply.
I know you guys have got API stability to take care of, I was just
curious as to the logic behind putting labelTag separate from the rest
of the form stuff. It doesn't really matter where labelTag and co end
up as long as it is consistent predictable.
It is great
43 matches
Mail list logo