Re: Simple HABTM Question

2006-05-26 Thread AD7six

Hi Dee,

The - Just reverences a Variable or method on an object (if it has ()
it't a method).
In the example above, contractor has a variable Servic, which is set to
a Service object.

It the chain of object could be avoided by using:

var $uses (Contractor,Service);
$this-Service-find(service_name = 'Web
Design');

Happy coding, Cheers,

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 email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Global variables?

2006-05-26 Thread AD7six

Hi All,

This is on the Wiki now (http://wiki.cakephp.org/tutorials:css_menus) ,
Hope it's useful and if there are any updates, I don't own it - feel
free to enhance it ;).

Cheers,

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 email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



enter data with has many relationship

2006-05-26 Thread Michael Grunewalder

Hi all,

I've been playing around with cakephp for about a week now and must
say it make coding so much more fun :-)

My problem is this:
I have 2 tables.
1)Invoices
2)Details

Invoices contains the customer details,
Details contains the the individual items of an invoice.
let's say the fields in the Details table are
id, invoice_id, serialnr, amount, price, description

Now I would like to create an HTML form that looks something like

[lots of customer
details in
a few lines on
the top]

1) [input fields for 'details' table]
2) [input fields for 'details' table]
3) [input fields for 'details' table]
4) [input fields for 'details' table]
5) [input fields for 'details' table]

(save invoice)

if I fill out the first 3 rows, then 3 records in my details table
should be created, if i fill out 5 rows, then 5 records should be
created etc.

What's the best way to create the html form so that i can use data
validation on the details model for each record that i enter on the
form?

If this is a very simple or even stupid question, please don't laugh
too loud at me - I'm very sensitive on friday afternoons :-D

Thanks in advance
Mike

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Bad,too bad,when a column is char and it's has values like '0222' or '00222'

2006-05-26 Thread [EMAIL PROTECTED]

When a column is char and it's has values like '0222' or '00222',you
can't save the 0 at front of the value!

God


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Google Maps + CakePHP Recipe

2006-05-26 Thread 100rk

Hi tom!
It looks just great - only bad thing on this tutorial is it's location
- wiki is IMO better place for it, as people are looking for user
tutorials  experiences there ;-)

Anyway: good work.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: fundamental dispatcher strategy flawed?

2006-05-26 Thread 100rk

Try to read more about routes:

http://manual.cakephp.org/chapter/4


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Ajax Form Serialization

2006-05-26 Thread hydra12

I'm about to show my ignorance, I'm afraid.  I've found several
references to serializing a form, but I don't really understand what
this means.  Can anybody help me out with an explanation?

Thanks in advance!
hydra12


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Error after installing oceancms

2006-05-26 Thread RosSoft

comment all the lines in cake/xxx/validators.php (or something like
this). In this file there are some defines like this one:

define('VALID_NOT_EMPTY',);

Comment all of those defines


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Ajax Form Serialization

2006-05-26 Thread Fernando





form id="test" 
input type="text" name="ftest1" id="ftest1" / 
input type="text" name="ftest2" id="ftest2" / 
/form

script
alert(alert(Form.serialize(test));
/script
ftest1=ftest1valueftest2=ftest2value

will alert the input values... if they are not null

so u can send this values trought url to do something without submit

hydra12 escreveu:

  I'm about to show my ignorance, I'm afraid.  I've found several
references to serializing a form, but I don't really understand what
this means.  Can anybody help me out with an explanation?

Thanks in advance!
hydra12



  


--~--~-~--~~~---~--~~
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  -~--~~~~--~~--~--~---





Re: fundamental dispatcher strategy flawed?

2006-05-26 Thread nate

I don't see how that's more clear.  The fact that you'd have to
explicitly prefix actions with action_ is redundant in itself, as all
public controller methods are implicitly actions already.  Also, you'll
note that controller methods prefixed with _ are considered private,
and therefore inaccessible via the Dispatcher, which is a much more
sensible way to organize things.

The fact that you can't use a few words out of an entire language
(absent a small configuration change) is a minor inconvenience at best,
and hardly reason enough to change the way Dispatcher works.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Error after installing oceancms

2006-05-26 Thread Sven

Thanks for your help.

The error has disappeared but now I see nothing and get
no response from the application.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Error after installing oceancms

2006-05-26 Thread Olivier percebois-Garve

look at the forum pages of oceanCMS, I wrote down some stuffs to do to 
install ocean CMS.
If I remember right it has a custom validator. Also you should know that 
it was made for RC5 or RC6,
I don't think that the code is updated for the lasts cake releases.

olivvv

Sven wrote:
 Hi there!

 I've just tried to install oceancms but I only get this fatal error:

 Fatal error: Cake's validation model, which is incompatible with
 Validator, was found to be loaded (most likely from /libs/model.php).
 in D:\xampp\htdocs\dvl\oceancms\app\vendors\validator.php on line 20

 Does anybody has a solution?

 Thanks and greets,
 Sven


 

   


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Ajax Form Serialization

2006-05-26 Thread hydra12

Thanks!  That helps a lot.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: CakePHP 1.1.2.2955 Release

2006-05-26 Thread nate

Hey y'all,

Just wanted to make a follow-up comment about something that happened
this release.  Actually, it's more of a confession: We did it again.
We started adding new features.

One thing people kept asking about was how to update multiple page
elements in a single Ajax request, and up till now, we had no way of
doing that.  Not only that, but doing Ajax updates now takes less view
code, thanks to AjaxHelper::div( ) and AjaxHelper::divEnd( ).  Take a
look:

// test.thtml
code
?=$ajax-link('Update 2 Div\'s', '/controller/test', array('update' =
array('first', 'second'))); ?

?=$ajax-div('first'); ?
This is the first div, it has the current time:
?=strtotime('now'); ?
?=$ajax-divEnd('first'); ?

?=$ajax-div('second'); ?
This is the second div, it shows server variables:
? pr($_SERVER); ?
?=$ajax-divEnd('second'); ?
/code


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Google Maps + CakePHP Recipe

2006-05-26 Thread Olivier percebois-Garve

Such thing is so exotic and interesting to me, is it possible to see the 
result somewhere online ?


tom wrote:
 Quite a few of the things I expected to be very difficult with CakePHP
 have actually been a breeze. Well, not a breeze, but doable. Anyway,
 no fanfare. Here's how to integrate mapping with your application.

 Add the data fields

 I'd recommend fields called latitude and longitude, of the type
 FLOAT. You can use strings if you want, but that will eliminate some
 cool possibilities in the future. And have a field called location or
 something of that sort.

 Add the input

 Let's say that the *model* is called Place you could use this.

  ?php echo $html-hidden('Place/latitude', array('id' =
 'PlaceLatitude')); ?
 ?php echo $html-hidden('Place/longitude', array('id' =
 'PlaceLongitude')); ?
 ?php echo $html-input('Place/name', array('class' =
 'primary_input')); ?
 label for=PlaceZiplocation/label
 ?php echo $html-input('Place/location'); ?
 a class=secondmap onclick=secondmap('PlaceLocation',
 'PlaceLatitude', 'PlaceLongitude'); href=#map/a


 Add the Action

 Replace YOUR_APP with your AppId  put this in a controller (for
 instance, Places)

  ?php
 function geocode($location)
 {
// Allowed hostname (api.local and api.travel are also possible
 here)
   define ('HOSTNAME',
 'http://api.local.yahoo.com/MapsService/V1/geocode?');

   // Get the REST call path from the AJAX application
   // Is it a POST or a GET?
   //$path = ($_POST['yws_path']) ? $_POST['yws_path'] :
 $_GET['yws_path'];
   $url =
 HOSTNAME.'appid='.'YOUR_APP'.'location='.urlencode($location);

   // Open the Curl session
   $session = curl_init($url);

   // If it's a POST, put the POST data in the body
   if (isset($_POST['yws_path'])) {
  $postvars = '';
  while ($element = current($_POST)) {
 $postvars .= key($_POST).'='.$element.'';
 next($_POST);
  }
  curl_setopt ($session, CURLOPT_POST, true);
  curl_setopt ($session, CURLOPT_POSTFIELDS, $postvars);
   }

   // Don't return HTTP headers. Do return the contents of the call
   curl_setopt($session, CURLOPT_HEADER, false);
   curl_setopt($session, CURLOPT_RETURNTRANSFER, true);

   // Make the call
   $xml = curl_exec($session);

   // The web service returns XML. Set the Content-Type
 appropriately
   header(Content-Type: text/xml);
   echo $xml;
   curl_close($session);
   exit();
 }
 ?


 h4. Add SecondMap  ThirdMap

 Download the files
 http://notes.we-run.com/file_download/1
 thirdmap.js
 http://notes.we-run.com/file_download/2
 secondmap.js and drop them in webroot/js and include them in
 layouts/default.thtml

 http://www.google.com/apis/maps/signup.html
 Get a Google Maps API Key

 Output stuff.

 In the index or list view, when you're outputting the list of
 geotagged-things, use code like this:

  div id=map style=height: 250px;
 ?php foreach ($your_places as $place): ?
 ?php if($place['Place']['latitude']  $place['Place']['longitude']):
 ?
 ul
li class=info?php echo $html-link($place['Place']['name'],
 '/places/view/'.$place['Place']['id']); ?/li
li class=latitude?php echo $place['Place']['latitude']; ?/li
li class=longitude?php echo $place['Place']['longitude'];
 ?/li
 /ul
 ?php endif; ?
 ?php endforeach; ?
 /div
 script type=text/javascript
 thirdMap('map');
 /script

 of course, replace $place['Place'] with whatever your action is.

 Hooray!

 You should be all set. This will leave you with a quick, cross-browser
 (screenreader compatible!) Google Maps solution.


 

   


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Google Maps + CakePHP Recipe

2006-05-26 Thread Jason Lee

On 5/25/06, tom [EMAIL PROTECTED] wrote:
 Quite a few of the things I expected to be very difficult with CakePHP
 have actually been a breeze. Well, not a breeze, but doable. Anyway,
 no fanfare. Here's how to integrate mapping with your application.

gwoo and I have a solution for Google Maps as well (gwoo did most of
the work.  I just upgraded things to use v2 of the Google Maps API and
wrote the Yahoo! Geocoder component).   Here are some links:

gecoder comp:  
https://cakeforge.org/plugins/scmsvn/viewcvs.php/trunk/CakeMap/controllers/components/yahoo_geocoder.php?rev=112root=rdosview=markup

map helper: 
https://cakeforge.org/plugins/scmsvn/viewcvs.php/trunk/CakeMap/views/helpers/google.php?rev=112root=rdosview=markup

layout (look for the JS here):
https://cakeforge.org/plugins/scmsvn/viewcvs.php/trunk/CakeMap/views/layouts/default.thtml?rev=112root=rdosview=markup

usage: 
https://cakeforge.org/plugins/scmsvn/viewcvs.php/trunk/CakeMap/views/maps/index.thtml?rev=112root=rdosview=markup

-- 
jason lee
http://www.steeplesoft.com
http://blogs.steeplesoft.com
http://littlezoper.livejournal.com

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Need sanity check please!! One controller Multiple models..

2006-05-26 Thread nate

You can use Model::set( ) either with an array or single value, i.e.
$this-User-Radcheck-set('op', 'testop');

Internally, the model stores it's data in an array, but there are
multiple ways of setting and getting values.

Also, you only have to run create( ) once.  All that does is clear out
the model so you can write a new record.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Custom SQL and Weird Arrays

2006-05-26 Thread nate

Right, but I expect that the weird-ass SQL might be slightly different.
 Also, I remember writing in a fix for it, but that could have been for
something slightly different.

Yeah, I can't remember; too many beers ago.  Anyway, give it a try, it
just might work.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Error after installing oceancms

2006-05-26 Thread John Zimmerman [gmail]
What is your debug level set at in /app/core.phpTry setting a value of 2 if you are at 0 or 1 for more error messages.On 5/26/06, Sven 
[EMAIL PROTECTED] wrote:Thanks for your help.The error has disappeared but now I see nothing and get
no response from the application.
--~--~-~--~~~---~--~~
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  -~--~~~~--~~--~--~---


Re: CakeBakery takes another step !

2006-05-26 Thread Sven

Hi there!

Does anybody know where I can find the tutorials mentioned above?
Seems like they have moved to another URL, but I can't find them there.

Sven


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: CakePHP 1.1.2.2955 Release

2006-05-26 Thread 100rk

One thing in this release is: all of Your helpers has to extend class
'Helper' (or some child of it), or You will fight error messages like:

Fatal error: Call to undefined method TestHelper::afterRender() in
//cake/libs/view/view.php on line 586


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: CakePHP 1.1.2.2955 Release

2006-05-26 Thread Samuel DeVore
Nate, how do you set up the returned information from the ajax-link to fill the two divs?On 5/26/06, nate 
[EMAIL PROTECTED] wrote:Hey y'all,Just wanted to make a follow-up comment about something that happened
this release.Actually, it's more of a confession: We did it again.We started adding new features.One thing people kept asking about was how to update multiple pageelements in a single Ajax request, and up till now, we had no way of
doing that.Not only that, but doing Ajax updates now takes less viewcode, thanks to AjaxHelper::div( ) and AjaxHelper::divEnd( ).Take alook:// test.thtmlcode?=$ajax-link('Update 2 Div\'s', '/controller/test', array('update' =
array('first', 'second'))); ??=$ajax-div('first'); ?This is the first div, it has the current time:?=strtotime('now'); ??=$ajax-divEnd('first'); ?
?=$ajax-div('second'); ?This is the second div, it shows server variables:? pr($_SERVER); ??=$ajax-divEnd('second'); ?/code
--~--~-~--~~~---~--~~
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  -~--~~~~--~~--~--~---


Re: Error after installing oceancms

2006-05-26 Thread John Zimmerman [gmail]
I am going to play with OceanCMS later today. I will see if I can get it to work with the 1.1. release. If I do I will zip it up and send it to you describing the changes.On 5/26/06, 
John Zimmerman [gmail] [EMAIL PROTECTED] wrote:
What is your debug level set at in /app/core.phpTry setting a value of 2 if you are at 0 or 1 for more error messages.
On 5/26/06, Sven 
[EMAIL PROTECTED] wrote:Thanks for your help.The error has disappeared but now I see nothing and get
no response from the application.



--~--~-~--~~~---~--~~
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  -~--~~~~--~~--~--~---


Re: CakePHP 1.1.2.2955 Release

2006-05-26 Thread nate

100rk, that's impossible unless you upgraded wrong.  The afterRender( )
method is defined in the Helper base class, so as long as your helper
extends it properly, you should have no errors.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: CakePHP 1.1.2.2955 Release

2006-05-26 Thread nate

@Sam:

Mostly just clever output buffering to capture the content between the
div tags.  I implemented a new callback in Helper, which AjaxHelper
uses to write out the content, and then exit.  It packages it as a JSON
object, with an extra little snippet of code that gets evaluated on the
client side.  It iterates thru the elements in the object, and assigns
the content to the proper div element.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: CakePHP 1.1.2.2955 Release

2006-05-26 Thread 100rk

Thanks nate, but this wasn't my problem - it was issue of 2 people on
IRC today - they has helpers which aren't extend Helper class and after
upgrade to latest release they ends with above errr message.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: CakePHP 1.1.2.2955 Release

2006-05-26 Thread Olivier percebois-Garve

Nate
have you the controller's method going with this ? I'm probably thinking 
too quickly but I don't
get how this method will return 2 things at once.

nate wrote:
 Hey y'all,

 Just wanted to make a follow-up comment about something that happened
 this release.  Actually, it's more of a confession: We did it again.
 We started adding new features.

 One thing people kept asking about was how to update multiple page
 elements in a single Ajax request, and up till now, we had no way of
 doing that.  Not only that, but doing Ajax updates now takes less view
 code, thanks to AjaxHelper::div( ) and AjaxHelper::divEnd( ).  Take a
 look:

 // test.thtml
 code
 ?=$ajax-link('Update 2 Div\'s', '/controller/test', array('update' =
 array('first', 'second'))); ?

 ?=$ajax-div('first'); ?
   This is the first div, it has the current time:
   ?=strtotime('now'); ?
 ?=$ajax-divEnd('first'); ?

 ?=$ajax-div('second'); ?
   This is the second div, it shows server variables:
   ? pr($_SERVER); ?
 ?=$ajax-divEnd('second'); ?
 /code


 

   


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: CakePHP 1.1.2.2955 Release

2006-05-26 Thread Marcelo de Moraes Serpa
Great work as always :)Keep up the awesome work!Marcelo.On 5/26/06, Olivier percebois-Garve [EMAIL PROTECTED]
 wrote:Natehave you the controller's method going with this ? I'm probably thinking
too quickly but I don'tget how this method will return 2 things at once.nate wrote: Hey y'all, Just wanted to make a follow-up comment about something that happened this release.Actually, it's more of a confession: We did it again.
 We started adding new features. One thing people kept asking about was how to update multiple page elements in a single Ajax request, and up till now, we had no way of doing that.Not only that, but doing Ajax updates now takes less view
 code, thanks to AjaxHelper::div( ) and AjaxHelper::divEnd( ).Take a look: // test.thtml code ?=$ajax-link('Update 2 Div\'s', '/controller/test', array('update' =
 array('first', 'second'))); ? ?=$ajax-div('first'); ? This is the first div, it has the current time: ?=strtotime('now'); ? ?=$ajax-divEnd('first'); ?
 ?=$ajax-div('second'); ? This is the second div, it shows server variables: ? pr($_SERVER); ? ?=$ajax-divEnd('second'); ? /code
 
--~--~-~--~~~---~--~~
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  -~--~~~~--~~--~--~---


Re: prevent expiration of session info?

2006-05-26 Thread Dave

Hmm...this doesn't seem to help. I've set CAKE_SESSION_TIMEOUT to a
ridiculously high number (604800) and just in case set CAKE_SECURITY to
'low'. The session still times out after a couple hours and I have to
log in again.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: prevent expiration of session info?

2006-05-26 Thread AD7six

What have you got session.cookie_lifetime , session.gc_maxlifetime (and
any others that are useful) set to in your ini file?

I don't know your app of course, but maybe using a remember me cookie
and recording anything else the user might want to access from hour to
hour in a cookie would avoid session time out problems, or even if the
user closes the browser and wants to be back where they were etc.

Hope it's useful,

Cheers,

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 email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Quick Fix Release

2006-05-26 Thread Larry E. Masters aka PhpNut
Well, we noticed a few minor issues that were not corrected properly. So, get this new bug fix release CakePHP 1.1.3.2963. As usual, it should be a simple upgrade. Just drop in the new cake directory. The only other change was the additional of the CAKE_SESSION_TABLE define in 
core.php. If you are using database for your sessions storage, then you might be interested in this new config option.1.1.3.2963:Download: http://cakeforge.org/frs/?group_id=23release_id=97
Change log: http://cakeforge.org/frs/shownotes.php?release_id=97As always, thanks for being a great community and using CakePHP.-- 
/**
* @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka PhpNut* @accesspublic*/ 


--~--~-~--~~~---~--~~
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  -~--~~~~--~~--~--~---


Re: CakePHP 1.1.2.2955 Release

2006-05-26 Thread nate

@AD7six: Thanks for keeping that up-to-date.  Hopefully that'll be less
of a problem when we have the Bakery set up, with a proper peer-review
system.

And thanks for all the time you've put in answering questions on the
list.  That helps out a lot.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: CakePHP 1.1.2.2955 Release

2006-05-26 Thread Larry E. Masters aka PhpNut
Olivier,A new release has been announced, download it and the problem should be gone.-- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka PhpNut
* @accesspublic*/On 5/26/06, Olivier percebois-Garve [EMAIL PROTECTED] wrote:
Natehave you the controller's method going with this ? I'm probably thinkingtoo quickly but I don'tget how this method will return 2 things at once.

--~--~-~--~~~---~--~~
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  -~--~~~~--~~--~--~---


Re: CakePHP 1.1.2.2955 Release

2006-05-26 Thread nate

@Olivier: The controller method is empty (so I didn't bother posting
it).  I the view just outputs some dummy data as a proof of concept.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: cache @ favicon

2006-05-26 Thread AD7six

Hi DJ Spark,
Are you using your own layout?

If Either
your apache log, or your web server log, shows requests for
/movies/edit/favicon.ico etc.
Or
If you access your root page with a decent browser (not IE) and you see
your favicon displayed
then access any sub page, press F5 and the favicon disappears
Then
The relavent layout doesn't have an absolute favicon path. If you look
in the contents of movies_edit_2136.php it will also show the favicon
path.

Cheers,

AD7six
PS. How many time will the url /movies/edit/2136 be accessed? If it's 1
or 2 there isn't much if anything to be gained by caching the result ;)


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: CakePHP 1.1.2.2955 Release

2006-05-26 Thread AD7six

It's the least I can do; I would prefer to see new features earlier by
taking some of the load of you chaps ;). And I learn from reading the
q's that are out of my current scope ( I cached some of my views for
the first time today).

Cheers,

AD7six
Off topic, chipped in for comment:
There are some snippets which also use orphan helpers and a number
which seem to be either obsolete (integrated or duplicated in Cake now)
or need enhancing to be useful. The drawback of an active community
seems to be policing their efforts :)


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: CakePHP 1.1.2.2955 Release

2006-05-26 Thread Olivier percebois-Garve




Thanks Nut but for once I did not had any problem. Just wondering how
Nate's snippet should be functioning. 


Larry E. Masters aka PhpNut wrote:
Olivier,
  
A new release has been announced, download it and the problem should be
gone.
  
  
-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
  
* @accesspublic
*/
  
  
  On 5/26/06, Olivier percebois-Garve [EMAIL PROTECTED] wrote:
  
Nate
have you the controller's method going with this ? I'm probably thinking
too quickly but I don't
get how this method will return 2 things at once.

  
  
  
  



--~--~-~--~~~---~--~~
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  -~--~~~~--~~--~--~---





Re: cache @ favicon

2006-05-26 Thread DJ Spark

 actually, due to the size of the pages (600KB) , i thought *any* help
would be good, instead of hammering the database every page :/
 btw, i could not find anywhere how to cache some variables.. i
remember i saw it somewhere, but can't remember now... any idea ?

 the favicon problem was actually solved, using my layout, but the
page i was seeing was cached or something.

 thanks
 spark!

On 5/26/06, AD7six [EMAIL PROTECTED] wrote:

 Hi DJ Spark,
 Are you using your own layout?

 If Either
 your apache log, or your web server log, shows requests for
 /movies/edit/favicon.ico etc.
 Or
 If you access your root page with a decent browser (not IE) and you see
 your favicon displayed
 then access any sub page, press F5 and the favicon disappears
 Then
 The relavent layout doesn't have an absolute favicon path. If you look
 in the contents of movies_edit_2136.php it will also show the favicon
 path.

 Cheers,

 AD7six
 PS. How many time will the url /movies/edit/2136 be accessed? If it's 1
 or 2 there isn't much if anything to be gained by caching the result ;)


 



-- 
[web] http://synapsisdi.com.br
[livesets] http://djspark.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
-~--~~~~--~~--~--~---



Re: CakeBakery takes another step !

2006-05-26 Thread Gustavo Carreno

On 5/26/06, Sven [EMAIL PROTECTED] wrote:
 Does anybody know where I can find the tutorials mentioned above?
 Seems like they have moved to another URL, but I can't find them there.

There's a project on cakeforge to host the project but somehow it's
still empty :(
http://cakeforge.org/projects/bakery/

The project was live at: http://bakery.cakephp.org for a second there
and can se some things at: http://bakery.cakephp.org/articles

But looks like the guys are still messing with it...

-- 
 If you know Red Hat you know Red Hat,
If you know Slackware you know Linux 

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: CakeBakery takes another step !

2006-05-26 Thread Gustavo Carreno

Hey Sven,

Forgot to mentio that you can get the files on the SVN repository:
https://svn.cakeforge.org/svn/bakery

-- 
 If you know Red Hat you know Red Hat,
If you know Slackware you know Linux 

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Scaffold vs. Baking

2006-05-26 Thread jgoforth

Maybe I have missed something along the way, but my initial
understanding of what the bake tool did was basically creating hard
copy versions of what scaffolding does on the fly. After having used
it, this seems to have been an incorrect understanding.

I set up my database and everything was working find in scaffolding, so
I went in and used the bake tool to create everything, but I keep
running into things that don't work in the baked version. Specifically
right now, dates in forms don't end up getting saved to the database,
despite the fact that everything else does. Any thoughts on that matter
would be appreciated, but my real question is why are the two different
in the first place? Is any difference between the two a bug or was my
original assumption incorrect?


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Scaffold vs. Baking

2006-05-26 Thread Larry E. Masters aka PhpNut
Are you using the latest version of Cake?-- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka PhpNut* @accesspublic*/
On 5/26/06, jgoforth [EMAIL PROTECTED] wrote:
Maybe I have missed something along the way, but my initialunderstanding of what the bake tool did was basically creating hardcopy versions of what scaffolding does on the fly. After having usedit, this seems to have been an incorrect understanding.
I set up my database and everything was working find in scaffolding, soI went in and used the bake tool to create everything, but I keeprunning into things that don't work in the baked version. Specifically
right now, dates in forms don't end up getting saved to the database,despite the fact that everything else does. Any thoughts on that matterwould be appreciated, but my real question is why are the two different
in the first place? Is any difference between the two a bug or was myoriginal assumption incorrect? 

--~--~-~--~~~---~--~~
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  -~--~~~~--~~--~--~---


Re: CakePHP 1.1.2.2955 Release

2006-05-26 Thread [EMAIL PROTECTED]

I try to update my cake from 0.10.8.2047_rc5 to 1.1.3.2967,
Then I found I can't use $controllername-modelname-findAll,
What can I do ?


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---