ct a bug in apache.
Thanks again to all who suggested solutions.
On Apr 10, 4:19 pm, peterhf wrote:
> Yes, cricket, you are correct. I tried to access the directory in my
> Uii
> application that is supposed to be protected by an .htaccess
> condition and I was successful. Should
nore about apache access than I do.
Stand by for updates.
On Apr 10, 3:46 pm, cricket wrote:
> On Sun, Apr 10, 2011 at 3:01 PM, peterhf wrote:
> > It appears to me that you, Ryan, have some "industrial strength"
> > eperience
> > with the issue of apache being ab
rectory.
I posted a "bug" ticket to the CalePHP bug system and they concluded
that the CakePHP software is not to blame and that I have a mod_write
configuration error.
On Apr 10, 9:05 am, Ryan Schmidt wrote:
> On Apr 10, 2011, at 10:33, peterhf wrote:
>
> > You're
pm, cricket wrote:
> On Sun, Apr 10, 2011 at 12:08 AM, Ryan Schmidt
>
> wrote:
> > On Apr 9, 2011, at 22:20, cricket wrote:
> >> On Sat, Apr 9, 2011 at 10:43 PM, peterhf wrote:
> >>> As to the last two suggestions, this has been the result. First, My
>
In /private/etc/apache2/ there is a directory "users" which contains
a file "my_name.conf. This file contains:
Options Indexes MultiViews
AllowOverride All
Order allow,deny
Allow from all
On Apr 9, 8:20 pm, cricket wrote:
> On Sat, Apr 9, 2011 at 10:43
in /private/etc/apache2/
original/
only out of desparation. I have removed the modification that I
had made -> problem persists.
On Apr 9, 6:29 pm, Ryan Schmidt wrote:
> On Apr 9, 2011, at 19:02, peterhf wrote:
>
> > On my OS 10.6.7, there are two httpd.conf files. One in /private/e
On my OS 10.6.7, there are two httpd.conf files. One in /private/etc/
apache2/
and /private/etc/apache2/original/. I have set AllowOverride to All in
both.
Yesterday, I posted a bug ticket which included details of everything
that
I have tried. I received an email and post in the bug system stating
ond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
Does this mean that this file is not being read by apache?
Where else could AllowOverride be set to None?
On Apr 8, 9:31 pm, cricket wrote:
> On Fri, Apr 8, 2011 at 11:35 PM, peterhf wrote:
> >http://localhost/TEST-admin/
remote host. Now it is on my local machine.
mod_rewrite is enabled.
I am running another application written in the Yii framework, works
fine.
On Apr 8, 5:16 pm, cricket wrote:
> On Fri, Apr 8, 2011 at 8:07 PM, peterhf wrote:
> > Environment: Mac Mini 10.6.7, CakePHP 1.3.8 located in /
Environment: Mac Mini 10.6.7, CakePHP 1.3.8 located in /Library/
WebServer/Dpcuments/TEST-admin/, Apache/2.2.17
What I expect is that $html->css( 'site_style' ) in the of my
layout page will find the file "site_style.css" in the app/webroot/
css/ directory. It is not found. If I use $html->css( '
I am referring to the folders which now appear in the "layouts" folder
in
CakePHP version 1.2. I don't that these folders appeared in 1.1.
I don't understand why one would put a JavaScript file in the "js"
folder
in the "layouts" folder when JavaScript files are supposed to be
placed in the "webr
I have been unable to find a reference which explains the use of the
"js", "rss" and "xml" directories in the "layouts" directory in 1.2.
Will someone point me to such a reference?
Thanks for your help.
Peter -
--~--~-~--~~~---~--~~
You received this message beca
ve decided to address the issue be upgrading to v1.2.1.8004 and
try the Email Component.
Peter -
On Feb 9, 9:11 am, Gonzalo Servat wrote:
> On Mon, Feb 9, 2009 at 2:58 PM, peterhf wrote:
>
> > > Why not update to 1.2?
>
> > This is plan B, the client doesn't wan
> Why not update to 1.2?
This is plan B, the client doesn't want to upgrade at this time.
> What error message do you have?
None! And debug is set to 3.
On Feb 9, 7:10 am, Marcelo Andrade wrote:
> On Sun, Feb 8, 2009 at 11:04 PM, peterhf wrote:
>
> > T
I'm using 1.1.19.x, I don't think that the Email Component is
available in this version.
Peter -
On Feb 8, 7:09 pm, Kyle Decot wrote:
> Have you tried using the Email Component?
>
> http://api.cakephp.org/class/email-component
>
> On Feb 8, 9:04 pm, peterhf wrot
This code is not working:
$result = mail('peter.f...@sbcglobal.net', 'This is a test.',
'This is a test.', 'From: peter.f...@sbcglobal.net' );
// Show the login page.
$this->redirect( '/pages/home' );
exit();
If I echo $result, I get a "1".
I have tried commenting out the redir
First, thank you both, teknoid and hydra12, for your contributions.
They got me headed in the right direction.
BTW, this version of the JavaScript only displays the xml text in an
alert for testing purposes.
Second, this is working for me:
Using:
CakePHP 1.1.19.6305
jquery-1.2.6.min.js
In the view:
select a
campaign: selectTag( 'Campaign/CampaignID', $options_C, null, array( 'onchange'
=> 'display_select_event()','id' => 'select_campaign' ), null, true,
false ); ?>
In the JavaScript:
function display_select_event()
{
.
.
.
on manually creating the tables using this db_acl.sql
> file, you will need to make sure that the _create, _read, _update,
> _delete cols in the aros_acos section have a default of null rather
> than 0. If those columns have a default of '0', then you will have
> errors with t
How does one run the ACL manager in this version of CakePHP? The
tutorial that I am using refers to a "scripts" directory in the "cake"
directory. This directory does not exist in my copy of this version.
Peer -
--~--~-~--~~~---~--~~
You received this message becau
Just Baked my first Cake and I am looking at the code produced.
What does the "__" mean in the following contexts:
or link(__('New Product',
true), array('action'=>'add')); ?>?
I suspect that I am the only on this list who doesn't know the answer!
Peter -
--~--~-~--~~~
ommand line which comes with Cake) to produce the
> Models and Controllers for you.
>
> Hope I cleared out something.
>
> On Feb 13, 2:14 am, peterhf <[EMAIL PROTECTED]> wrote:
>
> > I have a controller called "Industry". In Industry, I have methods
> > that
s of only one
> model.
> You can have many models but on the same controller, but they should have
> relations with the model. So if you do not have relations need to use the
> $uses, if have relations you can access the models by
> $this->Model1->RelationedModel1-> d
"$this->render()"s a new view or "$this->setAction()"s
another method in the same controller which displays a new view. I
thought that calling a method in another controller might be more
efficient.
On Feb 12, 4:29 pm, "b logica" <[EMAIL PROTECTED]> wrote:
Hello All,
Philosophical Question:
If my application requires a large number of methods is it "better" to
include them all in one controller or is it "better" to put each
method, or at least a small number of related methods, in individual
controllers?
Practical Question:
If the methods are in
n Feb 4, 1:46 pm, nate <[EMAIL PROTECTED]> wrote:
> alert($flag); should be alert(flag);
>
> On Feb 4, 1:31 pm, peterhf <[EMAIL PROTECTED]> wrote:
>
> > I am trying to pass a value created in a controller to a JS on the
> > target view.
>
> > $this->s
ler:
>
> $this->set('flag', 1);
>
> view:
>
>
> var flag = "<?php echo $flag; ?>";
>
> alert(flag);
>
>
> On Feb 4, 2008 5:12 PM, peterhf <[EMAIL PROTECTED]> wrote:
>
>
>
> > 0 or 1 depending on the value in set().
&
0 or 1 depending on the value in set().
Peter -
On Feb 4, 10:54 am, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote:
> try a pr($flag); and see what you get
>
> On Feb 4, 2008 4:51 PM, peterhf <[EMAIL PROTECTED]> wrote:
>
>
>
> > The html is being r
ce" function to see what you get. Then paste here if
> required.
>
> On Feb 4, 2008 4:43 PM, peterhf <[EMAIL PROTECTED]> wrote:
>
>
>
> > I don't quite understand your question. The "flag" value, 1 or 0, is
> > used in the JS to toggle the displ
ed in the html?
>
> On Feb 4, 2008 4:31 PM, peterhf <[EMAIL PROTECTED]> wrote:
>
>
>
> > I am trying to pass a value created in a controller to a JS on the
> > target view.
>
> > $this->set('flag', 1); is in the controller.
>
> > var fla
I am trying to pass a value created in a controller to a JS on the
target view.
$this->set('flag', 1); is in the controller.
var flag = ; is in the JS. I have also tried and .
An alert($flag); statement in the JS displays nothing.
A search of this subject on Google retrieves numerous posts st
Thanks for the reply. I am using 1.1.13.4450. I tried setting 'value'
=> 'something' in the html attributes array and it worked. Apparently,
I had done something wrong before.
Peter -
On Dec 18, 5:05 pm, "Gonzalo Servat" <[EMAIL PROTECTED]> wrote:
>
In an html textarea object, the default value is set between the begin
tag and the end tag, i.e. default value. How does
one set the default value of $html->textarea(...)? $html->extarea()
does not recognize a 'value' attribute in the html attribute array.
Thanks in advance for all suggestions.
gt;data)) {
>$this->redirect('/somewhere');
>exit;
> } else {
> throw new Exception("Could not save the user data!");
> }} else {
>
> $this->render();
> exit;
>
> }
>
> On Nov 30, 3:45
How does one execute a JS script before the html request is made and
halt the request based on some condition in the JS? For instance, I
wish to check that required fields are correctly populated; if any
required field is not correctly populated, I want to show an alert and
return to the page with
>
> ?>
>
> $uses will then load talentdetail as a variable you can use in your
> controller.
>
> Hope this helps :)
> housebolt
>
> On Aug 19, 2:22 pm, peterhf <[EMAIL PROTECTED]> wrote:
>
> > A table in the db: talent_details
>
> &g
A table in the db: talent_details
The model:
class TalentDetail extends AppModel
{
var $name = 'TalentDetail';
var $primaryKey = 'recordID';
}
In the controller talent_controller:
$this->TalentDetail->id = 10;
$result = $this->TalentDetail->exits();
Result:
Fatal error: Call to undefined
I got it, "$this->User->recordID = $userID;" should read "$this->User-
>id = $userID;".
Peter -
On Aug 19, 10:07 am, peterhf <[EMAIL PROTECTED]> wrote:
> I though that I understood how Nodel::save works but I am unable to
> get an update to work.
I though that I understood how Nodel::save works but I am unable to
get an update to work.
class User extends AppModel
{
var $name = 'User';
var $primaryKey = 'recordID';
}
In a controller I have this:
$this->User->recordID = $userID;
$this->User->save($this->data['User'], true, arr
Worked perfectly! I looked at "$this->ModelName->query("the SQL
string");" in the manual but didn't try it! Thanks both of you for you
help.
Peter -
On Aug 6, 8:58 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Thats a subquery - and while the newer mysql4.1 and above now supports
> subque
I would appreciate someone pointing me to a reference which explains
how to code something like this in CakePHP:
SELECT user_photos.name
FROM user_photos
WHERE user_photos.userID IN (
SELECT users.recordID
Thanks for the reply, Grant. The "$this->function build_resume()" is a
typo, I did indeed try "$this->build_resume()". Your comment about
"$sequence=null" is appropriate but more importantly it pointed me in
another direction which will lead to a solution of the underlying
problem - that build_res
CakePHP 1.13.4450, PHP 4.4.4
Controller A includes multiple functions, two of which are
function build_resume()
{
.
.
.
}
and later in the code,
function move_up($sequence)
{
.
.
.
$this->function build_resume();
}
When move_up is called from a view, a notice that "sequence" is
Well, Grant, you tip is the solution and it worked perfectly! Thanks a
million!!
On Jul 30, 4:16 pm, Grant Cox <[EMAIL PROTECTED]> wrote:
> If "recordID" is your primary key in the database table (not "id"),
> then you should have
>
> var $primaryKey = 'recordID';
>
> in your model file. Then yo
Using cakePHP 1.1.13.4450 and PHP 4.4.4
This code snippet:
$recordIDofPrevious = 1;
$sequence = 2;
$this->ResumeCredit->recordID = $recordIDofPrevious;
$this->ResumeCredit->saveField('sequence', $sequence, false);
produces a SQL INSERT instead of an UPDATE; a new record is cre
Of course!! Thanks for the help. BTW, had to change "id" to something
else as it was conflicting with another "id".
Peter -
On Jul 20, 3:53 pm, francky06l <[EMAIL PROTECTED]> wrote:
> renderElement('representation_type_select', array('id'
I have an, representation_type_select.thtml, which consists of a
selectTag.
selectTag(
$model_name . '/type_' . $id,
array(
'option_1' => 'option_1',
.
I agree that gc must be working on my site, so I must be
misinterpreting how gc works here.
I'm using CakePHP so PHP is running.
Thanks for the help.
Peter -
On Jun 26, 12:01 pm, jyrgen <[EMAIL PROTECTED]> wrote:
> hmmm. what sort of auth system are you using ?
> keep in mind that php needs to
Yesterday afternoon I posted a reply to Chris' post but apparently my
post was lost!
I had emptied the session table of all entries and registered a new
user for the site. A session record was inserted into the session
table for that user. That record is still in the table this morning.
It is tho
I have looked at the "session management via a database table"
postings on this list including the excellent one at "session handling
set to 'database'". However, I did not find one that pointed me in the
desired direction. It is my belief that I do not have access to the
"php.ini" file that is re
ot at htdoc/tmp
>
> Hope this helps
>
> On Jun 3, 2:53 am, peterhf <[EMAIL PROTECTED]> wrote:
>
> > The file that is being opened is, I believe, in cake/app/tmp/ so why
> > is the server not allowing opening a file within the cake framework?
>
> > On Jun 2, 3:
Thank you both for your insite and opinions. They are greatly
appreciated.
After struggling for a day with the image-in-the-database paradigm,
I'm going to try the image-in-the-directory paradigm!
Regards,
Peter -
On Jun 6, 2:38 pm, AD7six <[EMAIL PROTECTED]> wrote:
> peterh
allowing the two from becoming out of sync.
I am certainly open to opposing views as I am new to dealing with
large quantities of images.
On Jun 6, 1:43 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On 6/6/07, peterhf <[EMAIL PROTECTED]> wrote:
>
>
>
> > I
I am developing a community site in which members can upload photos of
themselves for display on their page. My plan is to store the image
files in a database. When a photo is need for display, it is retrieved
from the database and stored in a directory in the Cake directory
structure. It can them
The file that is being opened is, I believe, in cake/app/tmp/ so why
is the server not allowing opening a file within the cake framework?
On Jun 2, 3:22 pm, Travis Cline <[EMAIL PROTECTED]> wrote:
> This is not CakePHP specific:
>
> seehttp://www.google.com/search?q=+open_basedir+restriction
-
I am developing a CakePHP application, located on a hosting machine,
in which the user can upload a picture. When I select a file locted on
my local machine and click the "submit" button, this message appears:
Warning: fopen(): open_basedir restriction in effect. File(/tmp/
php7SiAeY) is not with
How do I set one specific option as "SELECTED"?
--~--~-~--~~~---~--~~
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 e
This code produced the standard html submit button - no image.
On May 3, 3:31 pm, gwoo <[EMAIL PROTECTED]> wrote:
> ok, for 1.1 you need:
> submit('submit', array('src' => $this->webroot . 'img/
> submit.gif',
> 'height' => '15', 'width' => '64')); ?>
--~--~-~--~~~--
1.1.13.4450
On May 3, 2:42 pm, gwoo <[EMAIL PROTECTED]> wrote:
> what version of Cake?
--~--~-~--~~~---~--~~
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.co
This works: image('submit.gif', array('onclick' =>
"JavaScript: submit();")); ?>
On May 3, 2:19 pm, peterhf <[EMAIL PROTECTED]> wrote:
> Thanks for the help; I entered the code that you suggested and got
> this:
>
> Fatal error: Call to u
Thanks for the help; I entered the code that you suggested and got
this:
Fatal error: Call to undefined function: webroot() ...
On May 3, 1:54 pm, gwoo <[EMAIL PROTECTED]> wrote:
> look at the generated source and your problem should be quite evident.
>
> try:
> submit('submit', array('src' =>
I'm trying to display a button for a form submit button. This isn't
working for me:
submit('submit', array('src' => $html->image('submit.gif'),
'height' => '15', 'width' => '64'); ?>
What am I doing wrong?
--~--~-~--~~~---~--~~
You received this message because
>
> On Apr 14, 7:59 pm, "peterhf" <[EMAIL PROTECTED]> wrote:
>
> > I have created a thtml file and placed it in the /pages/ directory. In
> > the file I have "if ($this->Session->check('function')) ...". The
> > following error me
I have created a thtml file and placed it in the /pages/ directory. In
the file I have "if ($this->Session->check('function')) ...". The
following error message appears: "Fatal error: Call to a member
function on a non-object in ..." which points to the line containing
the "...Session->check".
Problem solved => resolved to problems with the ".htaccess" files in /
app and /app/webroot.
Peter -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [EMAIL PRO
I moved a cake application from a hosting server where the application
resided in the "public_html" directory, to my Macintosh 10.4.8
machine. On the server, I had renamed the main "cake" directory to
"public_html" and had renamed the given "public_html" directory to
"public_html_ORG".
On the Mac
I'm certain that this question has been asked a thousand timea and
answered two thousand times! I just couldn't find it on the lists.
How to I point my domain, "http://www.my_domain_name.com/";, to a
specific view so that I don't have to do "http://
www.my_domain_name.com/view_name/".
Thanks in
Will someone point me to a reference to this language feature? I have
been unable to find one in CakePHP or PHP.
Thanks for the help.
Peter -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To po
You are dead on! Worked perfectly! I am puzzled that the application
worked
early on but then stopped. However, It works now so I'm on with the
tutorial!!
Thanks for the help.
Peter -
On Mar 23, 1:30 pm, "yolabingo" <[EMAIL PROTECTED]> wrote:
> On Mar 23, 2:14 pm, &qu
I am working my way through the IBM "Cook up Web sites fast with
CakePHP" tutorial. The first part starts with the creation of a
database, a model, a controller and a view. The view presents a
registration form.
The URL to start is "http://192.168.2.3/cake/users/register";, which
correctly displa
Got both the blog tutorial and the hello world tutorials working. Did
them "by the book" and they worked.
Thanks again for the suggestions.
Peter -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
Thanks one and all for the suggestions! I'm going to give the blog
tutorial a try, wish me luck!
Regards,
Peter -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email
I am unable to get even the simplest tutorial to work! Not even
"Hello, World"!
http://www.nospace.net/index.php?option=com_content&task=view&id=64&Itemid=36&lang=en
My environment is CakePHP 1.1.13.4450, PHP 4.4.4 on an iMac OS 10.4.8.
The Cake framework
is located in ... /WebServer/Documents/c
Working through my first tutorial for using Cake PHP and got this
error message:
Warning: mysql_connect() [function.mysql-connect]: Can't connect to
local MySQL server through socket '/var/mysql/mysql.sock' (2) in /
Library/WebServer/Documents/cake/cake/libs/model/dbo/dbo_mysql.php on
line 102.
74 matches
Mail list logo