api.cakephp.org

2008-05-21 Thread chewie124

Anybody know what happened to the API docs, api.cakephp.org?  Anybody
know when it might be back up?

Regards,
Rich


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Maintaining Session - Will this work?

2008-04-01 Thread chewie124

I want to maintain the session  the items I store in it longer than
the predefined timeout in core.php.  Would this work, if I put it in a
beforeFilter?

function beforeFilter() {

  if (!$this-Session-valid()) {
$this-Session-renew();
  }

}

or is there another way to maintain session till the user closes their
browser?  (without having to persist the data in a cookie or in the
database?)

TIA!
--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Mocking Cookies in CakeTestCase::testAction()?

2008-01-24 Thread chewie124

I was wondering if there's a way to fake the cookies set when testing
controllers?  Either that or somehow capture the headers output when
you call testAction() in your controller test case.

Or would the cookies set/deleted in the controller actions being
tested be set/deleted when running your test case in your browser?

It's kind of late (for me), so sorry if I'm incoherent

TIA!
--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Cake newbie - How to get usermgmt running?

2008-01-05 Thread chewie124

In your app/app_controller.php, try adding the Session object to the
components used,

var $components = array('Session');

Rich
On Jan 4, 7:33 pm, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
 Hi All,

 This is my first post here, and I'm working on my first project with
 cake.  I've read through documentation and previous posts here until
 I've gone cross-eyed, so forgive me if the answer to this question
 seems obvious; it's just not obvious to me.

 First off, I'm using cake ver 1.1.18.5850.  I downloaded usermgmt from
 cakeforge and tried to incorporate it into my app.  I can't get it to
 work, and the first error it gives me is:

 Fatal error: Class 'Session' not found in .../auth.php on line 114

 So, I try the ugly fix:

 include_once(ROOT.DS.APP_DIR.DS.'models'.DS.'session.php');

 at line 111.  This was reported to work in one forum entry I read.
 However, this gives me the error:

 Fatal error: Class 'AppModel' not found in .../app/models/session.php
 on line 17

 Which leads me to believe that I'm just loading things in the wrong
 order, and I don't want to go down that rabbit hole.

 Another forum entry said to use loadModel('Session') to fix the
 problem, but I can't find instructions for how and where to use this
 in the manual or the API documentation.  Can anyone provide an example
 of how to get usermgmt running?

 Thanks,
 Chris
--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: submitImage problem

2008-01-05 Thread chewie124

Try:


?php echo $form-submit('calendar.gif',array('id'='projstartdt')); ?


submitImage has been deprecated with 6311.

HTH!
Rich

On Jan 5, 12:18 pm, pbland [EMAIL PROTECTED] wrote:
 I just upgraded to 1.2.0.6311 and when I go to a view page in the
 browser, I get:

    Fatal error: start-condition stack underflow in C:\Program Files
 \Apache Group\Apache2\htdocs\3Bids\cake\libs\debugger.php on line 332

 In the view, I have a form that displays a calendar image and I'm
 using this code to display it:

 ?php echo $form-

 submitImage('calendar.gif',array('id'='projstartdt')); ?

 If I remove this code, then the error goes away. Has something changed
 and the API documentation just not been updated because submitImage()
 is still in the API.

 Thanks,
 Paul
--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



testAction('/pages/test', array('return'='render') prints to browser

2008-01-03 Thread chewie124

I'm exploring the CakeTestCase::testAction() method, and in a test,
when I do something like in my controller unit test:

function testAction() {
  $results = $this-testAction('/pages/help');
  debug($results);
  $this-assertTrue(1);
}

the $results ends up being empty and the content of the page is
displayed on the test.php page in the browser.  Does anybody have any
remedy for this?  This is 6311 beta.

TIA,
Rich



--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



How to remove the fieldset tags in $form-radio()

2007-12-19 Thread chewie124

I was trying to solve this issue and found out that you can suppress
the fieldset tags by setting the 'legend' option to false, ie:

?php echo $form-radio('Model.fieldname', array('option 1', 'option
2'), array('legend'=false); ?

HTH,
Rich


On Oct 13, 3:36 am, burzum [EMAIL PROTECTED] wrote:
 How can i remove thefieldsetand legend around $form-radio()???
--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Access to related model data from Behavior?

2007-12-15 Thread chewie124

Can you give any more details on how to access the related model's
data (child models) in the beforeSave($model) callback?  I just tried
it out and couldn't find the associated model's data in

$model-data

or

$model-ChildModel-data

Thanks,
Rich
--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Access to related model data from Behavior?

2007-12-15 Thread chewie124

I inspected the model passed in in the setup(), beforeValidate(),
beforeSave() and afterSave() methods in the Behavior I'm writing, and
the $model-data element only had the data for the main model;  I
couldn't find the child model's data in the Behavior's scope.  It
looks like the the full associative array with the children model data
in a multi-model form posting is only available in the controller's
scope.
--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Site works perfect with define('DEBUG', 1); but not define('DEBUG', 0);

2007-12-14 Thread chewie124

With cake_1.2.0.5875-pre-beta, I was able to resolve this issue by
adding:

uses('Debugger');

in the top of my app/app_controller.php file.

After that, it seems to work ok.

HTH,
Rich Yumul

On Nov 8, 4:56 pm, Steve Boyd [EMAIL PROTECTED] wrote:
 Using Cake 1.1.x

 My site works perfectly with define('DEBUG', 1); but not
 define('DEBUG',0);

 As in define('DEBUG', 1); doesn't spit out any errors of any sort but
 i get ablankscreen in define('DEBUG',0); (implying errors)

 Anyone know of anything that would cause this?
--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Access to related model data from Behavior?

2007-12-14 Thread chewie124

Hi All -
I was exploring creating a behavior to save an object's associated
models, however, with the latest cake release, 1.2.0_5875_pre_beta, it
looks like I can't get to the associated model's posted data.  Is that
correct?

ie, in the afterSave($model, $created) method in my behavior, if I do
a pr($model), I can see the POST'ed data in the 'data' element.
However, if I do a pr($model-RelatedModel), I can see the full
object, but the 'data' element is empty.

Why is it designed that way - what's the motivation?

TIA,
Rich
--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



User Model disappears after clicking too fast

2007-12-05 Thread chewie124

I have a model that's used in a component that I'm developing.  It's
working fine, generally, however I'm noticing some weird behavior that
I can't figure out.

My component (yet another authentication component) is using the
Cookie component to save the authentication tokens on the browser.
The app generally works fine, but if I double click on a protected
link (where the cookie is checked) too fast, I get a 'Class not found'
error for the user model.  When I check the cookie before the error is
thrown, it looks fine.

The line where it barfs is:

$user = new $user_model;

where $user_model is the name of my user model.

If I clear out my cookie, then things start working again.

Would anybody have any idea why the model isn't being loaded after
clicking too fast??

TIA,
Rich

--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



OthAuth with Cake 1.2.0.5875 pre-beta problems?

2007-11-02 Thread chewie124

Hi all -
has anybody else noticed problems with othAuth breaking down with the
latest release of cakephp? With the previous alpha release, things
were working hunky dory.  When I tried to upgrade to the latest beta
version released on the 22nd the system started behaving very funny.
Some actions would fail to find a 'User' class.  One other behavior
that I noticed that when trying to hit the other actions, the page
would redirect to different pages and then finally redirect back to
the home page.

Just wondering

Thanks,
Rich


--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Google Analytics Integration?

2007-10-16 Thread chewie124

Hi -
Has anybody ever had trouble integrating the Google Analytics code
into their CakePHP app?  I just cut and past the little urchinTracker
code snippet from Google right before my /body tag in /views/
layouts/default.ctp.  However, when I click on the 'Check Status' in
the Google Analytics, it doesn't recognize it.

Rich


--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Google Analytics Integration?

2007-10-16 Thread chewie124

https://www.serviceforlifeprinting.com

On Oct 16, 3:54 pm, John David Anderson (_psychic_)
[EMAIL PROTECTED] wrote:
 On Oct 16, 2007, at 4:50 PM, chewie124 wrote:



  Hi -
  Has anybody ever had trouble integrating the Google Analytics code
  into their CakePHP app?  I just cut and past the little urchinTracker
  code snippet from Google right before my /body tag in /views/
  layouts/default.ctp.  However, when I click on the 'Check Status' in
  the Google Analytics, it doesn't recognize it.

 I've successfully integrated it - can you show us the rendered view?

 -- John


--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Google Analytics Integration?

2007-10-16 Thread chewie124

Ah, maybe that's it.  Previous times, it would recognize the code
almost immediately.  Will try again tomorrow.  Thanks. :)

On Oct 16, 4:35 pm, DJ Spark [EMAIL PROTECTED] wrote:
   it looks ok to me
   but you have to wait 'till next day to see the analysis. Would this
 be the problem ? :)

   spark

 On 10/16/07, chewie124 [EMAIL PROTECTED] wrote:





 https://www.serviceforlifeprinting.com

  On Oct 16, 3:54 pm, John David Anderson (_psychic_)
  [EMAIL PROTECTED] wrote:
   On Oct 16, 2007, at 4:50 PM, chewie124 wrote:

Hi -
Has anybody ever had trouble integrating the Google Analytics code
into their CakePHP app?  I just cut and past the little urchinTracker
code snippet from Google right before my /body tag in /views/
layouts/default.ctp.  However, when I click on the 'Check Status' in
the Google Analytics, it doesn't recognize it.

   I've successfully integrated it - can you show us the rendered view?

   -- John

 --
 [livesets]http://djspark.com.br/
 [web]http://sydi.net
 [filmes]http://melhoresfilmes.com.br


--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: saveFields() wiping out $this-data

2007-09-22 Thread chewie124

$this is the controller

On Sep 17, 4:28 pm, rtconner [EMAIL PROTECTED] wrote:
 When you say $this-data would $this be the Model or the Controller?


--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



saveFields() wiping out $this-data

2007-09-17 Thread chewie124

Can somebody please explain to me why Model-saveField() wipes out
$this-data?

If I pr($this-data) before the saveField() call, the form data is
spit out.

After the saveField() call, pr($this-data) only produces an empty
array.

Can somebody please explain to me why that is (or point me in the
right direction?)

I'm using cake 1.2

TIA!
Rich


--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



othAuth, nao mode?

2007-08-12 Thread chewie124

Can anybody point me in the direction where I can read about othAuth's
'nao' mode, where a user can belong to multiple groups?

Thanks!


--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



is it possible to globally set 'readonly' in formhelper?

2007-08-10 Thread chewie124

Hi -
Was wondering - does anybody have any ideas/suggestions on what to
tweak to be able to globally set a 'readonly' flag in the formHelper?
IE, I'd like to be able to do something in my view like:  $form-
setReadOnly(true);, and then ever form input rendered via a $form-
text() or $form-input() call would have the 'readonly' attribute
set.

Ideas?

Thanks,
Rich


--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Where's bake2.php?

2007-08-09 Thread chewie124

I was just looking at Felix's Command line article (http://
www.thinkingphp.org/2006/10/16/command-line-fun-in-cakephp-12/), where
bake2.php was mentioned.  I'm working with 1.2.0.5427.  I couldn't
find bake2.php in there.  I checked the subversion tree, and didn't
find it there either.  Can anybody clue me in as to what happened to
it?

Thanks,
Rich


--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: String fields empty on a create()?

2007-08-02 Thread chewie124

My varchar columns have a default value of '';  would this then be a
bug?

On Aug 1, 4:03 pm, Grant Cox [EMAIL PROTECTED] wrote:
 If you put a default value on the table fields, this should be used in
 model-create()

 On Aug 2, 7:07 am, chewie124 [EMAIL PROTECTED] wrote:

  Hi -
  I'm using cake 1.2 - Just a quick question - How come string fields
  (varchar in the DB) don't have their keys set when you do a model-

  create()?  Is there a way to make it so it is?

  Thanks,
  Rich


--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



String fields empty on a create()?

2007-08-01 Thread chewie124

Hi -
I'm using cake 1.2 - Just a quick question - How come string fields
(varchar in the DB) don't have their keys set when you do a model-
create()?  Is there a way to make it so it is?

Thanks,
Rich


--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Empty Fields on a Model-create() for string data types

2007-07-31 Thread chewie124

I have a Model with a table something like:

create table foo (
 id   int not null auto_increment,
 bar varchar(100) not null default '',
 baz datetime not null default '-00-00 00:00:00'
);

So when I do a $this-foo-create(), the associative array returned
looks like:

[foo] = Array (
 [baz] = -00-00
)

Is there a flag I can pass somewhere so that the fields with the empty
varchar's get set in the returned associateive array, so that I'll get
something like:

[foo] = Array (
 [bar] = '',
 [baz] = -00-00
)

TIA!
Rich


--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



How to build form with multiple records?

2007-07-25 Thread chewie124

Hi All -
I'm have a job-board app that has a Resume model which hasMany
FormerEmployer models (like for employment history).  There's plenty
of discussion on how to save the data on the controller side (at
least, that I've been able to find), but my question is, is how do you
build up the form, so when I hit submit, it will send  the Resume and
the associated FormerEmployer (more than one) data fields that I can
handle back in the controller?

Can somebody fill in the missing pieces for me?

?php echo $form-input('first_name'); ?
?php echo $form-input('last_name'); ?

h2Former Employers/h2
?php foreach ($this-data['FormerEmployer'] as $employer): // THIS
ISN'T RIGHT... ?
?php echo $form-input('FormerEmployer.name'); ?

?php endforeach; ?

I'm using cake 1.2...

Thanks,
Rich


--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: How to build form with multiple records?

2007-07-25 Thread chewie124

Ahhh... ok.  Thanks for the input.  I was grepping thru the
helpers.php library in the cake core, and it looks like in the
setFormTag function , if there's a 3rd level branch,ie FormerEmployer.
2.name, the '2' will get parsed and tagged as the 'modelId'.  Seems
like though, the propigation hasn't made it back to the form helper,
that can use the modelId to generate the input tags as you described
above. Thanks for the input!


--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Including a cake ajax form in a non cake php page

2007-05-24 Thread chewie124

I have an ajax driven form in cake, that works like a champ. it's
really pretty simple:  When you submit the form, it sends the request
to the controller and then updates the div containing the html form
with the response from the controller.

Now, the thing that I'm trying to figure out is to include that form
as an element in a non-cake php page (POPS - Plain Old PHP Script - no
framework just html + php).  I guess I could cheat and just include
the ajax cake form in an iframe, but then that negates all the
coolness of having an ajax form.

Ideally, I wish I could do something like this in my plain PHP file:
(the cake app is in a secondary level directory)
- snippet --

div id=div_containing_cake_ajax_form

  php? include (cake/myform); ?

/div

 end snippet

where the include would suck over the processed output from my cake
view, instead of just trying to include the file contents, which it
won't find.

Anybody have any advice?

TIA!
Rich


--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---