Re: Upload a file using cakePHP

2009-11-13 Thread Ashu
Umm . I followed the steps from your link.

On opening the /bookmarks/upload I do see the form to upload the file.
After, i select a file (i tried TXT, GIF) and click on submit, it
redirects to my index page. And I see no sign of the uploaded file in
my app/webroot/files/uploads directory

Any pointers would be appreciated ..

#


 bookmarks_controller.php

class BookmarksController extends AppController {
  var $name = 'Bookmarks';
  var $components = array('Auth','Uploader.Uploader');


  function upload() {
if(!empty($this->data)){
  if($data = $this->Uploader->upload('fileName')) {
$this->Session->setFlash('Your bookmark has been
uploaded');
  }
}
  }


 views/bookmarks.upload.ctp

create('Bookmark', array('type' => 'file'));
echo $form->input('fileName', array('type' => 'file'));
echo $form->end('Upload');
?>

 my model looks like this



#


On Nov 12, 9:47 am, Miles J  wrote:
> No it doesn't have the image data itself, it just gives you a path to
> where your image was uploaded.
>
> On Nov 11, 8:47 pm, Ashu  wrote:
>
>
>
> > Reading your link I noticed
>
> > 
> > On a successful upload, the $data variable will be a populated array
> > with the values for the uploaded files filesize, name, extension, mime
> > group, destination path, upload time and width/height (if an image).
> > You can use this data to output text on the frontend, or save data to
> > a database.
> > 
>
> > So, will $data also contain the contents of the File being uploaded,
> > so I can start parsing it. Sorry if I am being dense here.
>
> > On Nov 9, 3:09 pm, Miles J  wrote:
>
> > > You cannot do that if you do theuploadmodel behavior, but you can
> > > manually do it with theuploadcomponent.
>
> > > On Nov 9, 2:31 pm, Ashu  wrote:
>
> > > > Miles thanks for the link.
>
> > > > Will I be able touploada File(Bookmarks.xml) and parse the data as
> > > > "Title","Url", from the file before I canuploadmy Bookmarks Model.
>
> > > > On Nov 9, 9:34 am, Miles J  wrote:
>
> > > > > My uploader plugin allows you to attach uploads to a model, so its
> > > > > automatically done through a behavior.
>
> > > > >http://www.milesj.me/resources/script/uploader-plugin#Attaching-Files...
>
> > > > > On Nov 9, 9:03 am, Ashu  wrote:
>
> > > > > > Hello guys,
>
> > > > > > I have a model for Bookmarks, that a user can add/edit/delete from 
> > > > > > the
> > > > > > web UI. Now, I want to add the functionality to be able touploada
> > > > > > file(bookmarks from FF, Chrome) that is in html format. I have see a
> > > > > > couple of implementations/examples online for uploading a file.
>
> > > > > > In my case, I would like toupload, parse and then populate my
> > > > > > existing Bookmark model. What do you guys suggest ? Create a new
> > > > > >uploadmodel, or . i am looking for suggestion 
>
> > > > > > Thanks

--

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




Re: Hiding an element based on data returned in Ajax request

2009-11-13 Thread David Roda
If the loading div is not hiding it means that the javascript in the
complete method is throwing an error so the scripts stop running.

I recommend using the Firebug extension for mozilla firefox.  After
installing it you can select the "console" tab.  This will display any
javascript errors as well as let you run standalone javascript commands for
testing.

I believe the 'loaded' command is a bit of a misnomer.  They mention it in
the documentation.  It actually fires after the data is loaded but before
the view is rendered so it makes sense that it is working off of your the
previous value

On Fri, Nov 13, 2009 at 8:10 PM, lauraw  wrote:

> Okay, bear with me ... I'm learning cake, javascript, and ajax all at
> the same time :-) ... and prototype
>
> I added 'loaded' for observeField() and the javascript code to check
> the length of the select element
>
> if ( $("pstyle_sel").length == 0)
>  $("style").hide();
>
> this kind of works. The first time I select something that doesn't
> have styles, it doesn't hide the row. Next I selected something that
> did have styles and it HID THE ROW. It's like it's seeing the data
> from the previous ajax request, like it's one step behind?
>
> I'm using 'loaded' instead of 'complete' because when I used
> 'complete' my ajax loading indicator just kept displaying even though
> the request was done.
>
> Any ideas on why my javascript is lagging? Or have you seen this
> continual ajax loading indicator when using 'complete'?
>
> Thanks, guys for your input!
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=.
>
>
>

--

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




Re: Using multiple criteria to login a user. Email or Username.

2009-11-13 Thread merrylin shi
I know ,first cake bake the users table ,generate  the user.php ,open the
files change the
var $validate = array(
'username' => array('notempty')
);
like
var $validate = array(
'username' => array('email')
);

just ok!

2009/11/13 David Roda 

> To accomplish this you will have to override the Auth COmponents
> "authorize" variable and isAuthorized() method to check both the username
> and email.  You can read about it here:
> http://book.cakephp.org/view/396/authorize
>
> On Sat, Nov 14, 2009 at 12:40 AM, jburns  wrote:
>
>> Have you considered using the email address as the username (thereby
>> eliminating your problem)?
>>
>> On Nov 14, 4:16 am, Ahmed  wrote:
>> > Does anyone know how I can begin to tackle this feature?
>>
>> --
>>
>> You received this message because you are subscribed to the Google Groups
>> "CakePHP" group.
>> To post to this group, send email to cake-...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> cake-php+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=.
>>
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=.
>

--

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




Re: Using multiple criteria to login a user. Email or Username.

2009-11-13 Thread David Roda
To accomplish this you will have to override the Auth COmponents "authorize"
variable and isAuthorized() method to check both the username and email.
 You can read about it here: http://book.cakephp.org/view/396/authorize

On Sat, Nov 14, 2009 at 12:40 AM, jburns  wrote:

> Have you considered using the email address as the username (thereby
> eliminating your problem)?
>
> On Nov 14, 4:16 am, Ahmed  wrote:
> > Does anyone know how I can begin to tackle this feature?
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=.
>
>
>

--

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




Re: CakeFest IV - America - Help us pick a location!

2009-11-13 Thread David Roda
I still say Miami but all of you people suggesting cold places... come ON!
live a little! wherever it is it should be warm and sunny =)

On Sat, Nov 14, 2009 at 12:27 AM, Aimee  wrote:

> I vote for West Coast too.  It might as well be somewhere warm and
> fabulous.  Specifically, San Diego.  LA has too much traffic.
>
> On Nov 12, 7:43 pm, Graham Weldon  wrote:
> > Hi all,
> >
> > The CakePHP team has been considering the location for the next
> > upcoming CakeFest.
> > We've decided to bring it back home to the United Sates of America.
> > Thus far we haven't chosen a location for the event, but to ensure we
> > reach as many people as possible, we'd like your opinion on where we
> > should host the event.
> >
> > Essentially, our choices are:
> > - USA East Coast
> > - USA West Coast
> > - USA Central
> >
> > If I have missed another location that you feel might be more popular
> > or accessible to interested attendees, feel free to suggest it.
> > We're keen to hear peoples thoughts on it.
> >
> > Cheers,
> >
> > Graham Weldon (AKA: Predominant)
> >
> > e. gra...@grahamweldon.com
> > w.http://grahamweldon.com
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=.
>
>
>

--

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




Re: CakeFest IV - America - Help us pick a location!

2009-11-13 Thread Aimee
I vote for West Coast too.  It might as well be somewhere warm and
fabulous.  Specifically, San Diego.  LA has too much traffic.

On Nov 12, 7:43 pm, Graham Weldon  wrote:
> Hi all,
>
> The CakePHP team has been considering the location for the next  
> upcoming CakeFest.
> We've decided to bring it back home to the United Sates of America.
> Thus far we haven't chosen a location for the event, but to ensure we  
> reach as many people as possible, we'd like your opinion on where we  
> should host the event.
>
> Essentially, our choices are:
> - USA East Coast
> - USA West Coast
> - USA Central
>
> If I have missed another location that you feel might be more popular  
> or accessible to interested attendees, feel free to suggest it.
> We're keen to hear peoples thoughts on it.
>
> Cheers,
>
> Graham Weldon (AKA: Predominant)
>
> e. gra...@grahamweldon.com
> w.http://grahamweldon.com

--

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




Re: CakeFest IV - America - Help us pick a location!

2009-11-13 Thread Mariano Iglesias
New York

All the way baby. I can see the Knicks after CakeFest!

Larry E. Masters aka PhpNut wrote:
> Nashville Tn. since I live in Tn now and it would be easier for me to 
> deal with the venues.
>
> Chicago like Walker Hamilton suggested, that is my old "home town" and 
> would be nice to visit.
>
> -- 
> /**
> * @author Larry E. Masters
> * @var string $userName
> * @param string $realName
> * @returns string aka PhpNut
> * @access  public
> */ 
>
> On Fri, Nov 13, 2009 at 6:55 PM, Jose  > wrote:
>
> NEW YORK
>
> -savant
>
> On Nov 12, 10:43 pm, Graham Weldon  > wrote:
> > Hi all,
> >
> > The CakePHP team has been considering the location for the next  
> > upcoming CakeFest.
> > We've decided to bring it back home to the United Sates of America.
> > Thus far we haven't chosen a location for the event, but to
> ensure we  
> > reach as many people as possible, we'd like your opinion on
> where we  
> > should host the event.
> >
> > Essentially, our choices are:
> > - USA East Coast
> > - USA West Coast
> > - USA Central
> >
> > If I have missed another location that you feel might be more
> popular  
> > or accessible to interested attendees, feel free to suggest it.
> > We're keen to hear peoples thoughts on it.
> >
> > Cheers,
> >
> > Graham Weldon (AKA: Predominant)
> >
> > e. gra...@grahamweldon.com 
> > w.http://grahamweldon.com
>
> --
>
> 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
> cake-php+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=.
>
> --
>
> You received this message because you are subscribed to the Google 
> Groups "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to 
> cake-php+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=.


-- 
-MI
*Coding Ninja* @ CRICAVA Technologies 
 
*Blog*: http://www.marianoiglesias.com.ar
*Twitter*:  http://twitter.com/mgiglesias
*LinkedIn*: http://www.linkedin.com/pub/2/483/B94
*Facebook*: http://www.facebook.com/mariano.iglesias

--

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




Re: Displaying data from unrelated models

2009-11-13 Thread Dr. Loboto
Marcelo is wrong totally. App::import only include model file but not
create and initialize model for you as loadModel will do.

On Nov 14, 6:10 am, Scott Dahl  wrote:
> Marcelo,
>
> Thanks for the update.  I was unaware of that.  I will stop using that and
> update my methods.  Thanks again.
>
> Scott
>
> On Fri, Nov 13, 2009 at 12:11 PM, Marcelo Andrade wrote:
>
>
>
> > On Fri, Nov 13, 2009 at 3:06 PM, Scott Dahl  wrote:
> > > $this->loadModel('ModelName');
> > > $results = $this->ModelName->find('list');
>
> > "loadModel" is deprecated.  Use
> > App::import('model', 'ModelName');
> > instead.
>
> > Best regards.
>
> > --
> > MARCELO DE F. ANDRADE
> > Belem, PA, Amazonia, Brazil
> > Linux User #221105
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "CakePHP" group.
> > To post to this group, send email to cake-...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com > om>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=.

--

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




Re: Component cannot import vendor files

2009-11-13 Thread Dr. Loboto
Error says about EpiOAuth class request in your component but code you
provided do not have such line.

On Nov 14, 4:03 am, "[ ramesh ]"  wrote:
> I have a component like this
>
> App::import('Vendor', 'Twitter', array('file' =>
> 'twitter'.DS.'EpiCurl.php'));
> App::import('Vendor', 'Twitter', array('file' =>
> 'twitter'.DS.'EpiOAuth.php'));
> App::import('Vendor', 'Twitter', array('file' =>
> 'twitter'.DS.'EpiTwitter.php'));
>
> class TwitterComponent extends Component {
>     function getAuthenticationURL() {
>         $twitter = new EpiTwitter(Configure::read('twitter.consumerKey'),
> Configure::read('twitter.consumerSecret'));
>         $authenticateURL = $twitter->getAuthenticateUrl();
>         return $authenticateURL;
>     }
>
> }
>
> i am getting the following error when i try to access this component
> "*Fatal error*: Class 'EpiOAuth' not found in *
> D:\wamp\www\fly\app\controllers\components\twitter.php* on line *14*"
>
> thess files are located in /app/vendors/twitter folder
>
> Thanks
> /Ramesh Sakibanda/

--

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




Re: CakeFest IV - America - Help us pick a location!

2009-11-13 Thread Amit
I say Chicago - it's a good midpoint for the US.

On Nov 13, 11:13 pm, Everton Yoshitani  wrote:
> I vote to West Coast (Hawaii) let's get some sun after sessions and talkings
> :D
>
> Hope you had a good trip back to home Graham thanks to the tips at
> CakeMatsuri!
>
> Kind regards,
> Everton Yoshitani
>
> On Fri, Nov 13, 2009 at 12:43 PM, Graham Weldon 
> wrote:
>
>
>
> > Hi all,
>
> > The CakePHP team has been considering the location for the next upcoming
> > CakeFest.
> > We've decided to bring it back home to the United Sates of America.
> > Thus far we haven't chosen a location for the event, but to ensure we reach
> > as many people as possible, we'd like your opinion on where we should host
> > the event.
>
> > Essentially, our choices are:
> > - USA East Coast
> > - USA West Coast
> > - USA Central
>
> > If I have missed another location that you feel might be more popular or
> > accessible to interested attendees, feel free to suggest it.
> > We're keen to hear peoples thoughts on it.
>
> > Cheers,
>
> > Graham Weldon (AKA: Predominant)
>
> > e. gra...@grahamweldon.com
> > w.http://grahamweldon.com
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "CakePHP" group.
> > To post to this group, send email to cake-...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com > om>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=.

--

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




Re: Help! The page isn't redirecting properly

2009-11-13 Thread Dr. Loboto
There is folder "files" in webroot. Problem may be there. Try to
remove that folder or rename controller.

On Nov 13, 2:49 pm, "[ ramesh ]"  wrote:
>    Hi John,
>
>  function index() {
>         //$this->pageTitle('BetterApps » ');
>         $this->redirect ( array ('action' => 'upload' ) );
>     }
>
>     function upload() {
>         $this->pageTitle = 'Upload';
>         $this->set ( 'uuid', uniqid () );
>     }
>
> when i type files/index i am getting the error message
>
> On Thu, Nov 12, 2009 at 10:52 PM, John Andersen 
> wrote:
>
>
>
>
>
> > Please show the code that handles the first action together with the
> > redirect statement, so that we may better be able to help you.
> > Enjoy,
> >   John
>
> > On Nov 12, 7:04 pm, "[ ramesh ]"  wrote:
> > > Hi,
>
> > >    i am getting started with cakephp, my application has one controller
> > and
> > > 3 actions, submitting a form on first action takes user to second action
> > and
> > > finally third action. after submitting the first form firefox is showing
> > > this message - "The page isn't redirecting properly", i have tried google
> > > but in vain. could you help me
>
> > > the full error is
>
> > > The page isn't redirecting properly
>
> > > Firefox has detected that the server is redirecting the request for this
> > > address in a way that will never complete.
>
> > > Thanks
> > > /Ramesh Sakibanda/
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "CakePHP" group.
> > To post to this group, send email to cake-...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com > om>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=.
>
> --
> /Ramesh Sakibanda/

--

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




Re: Using multiple criteria to login a user. Email or Username.

2009-11-13 Thread jburns
Have you considered using the email address as the username (thereby
eliminating your problem)?

On Nov 14, 4:16 am, Ahmed  wrote:
> Does anyone know how I can begin to tackle this feature?

--

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




Re: CakeFest IV - America - Help us pick a location!

2009-11-13 Thread Everton Yoshitani
I vote to West Coast (Hawaii) let's get some sun after sessions and talkings
:D

Hope you had a good trip back to home Graham thanks to the tips at
CakeMatsuri!


Kind regards,
Everton Yoshitani



On Fri, Nov 13, 2009 at 12:43 PM, Graham Weldon wrote:

> Hi all,
>
> The CakePHP team has been considering the location for the next upcoming
> CakeFest.
> We've decided to bring it back home to the United Sates of America.
> Thus far we haven't chosen a location for the event, but to ensure we reach
> as many people as possible, we'd like your opinion on where we should host
> the event.
>
> Essentially, our choices are:
> - USA East Coast
> - USA West Coast
> - USA Central
>
> If I have missed another location that you feel might be more popular or
> accessible to interested attendees, feel free to suggest it.
> We're keen to hear peoples thoughts on it.
>
> Cheers,
>
> Graham Weldon (AKA: Predominant)
>
> e. gra...@grahamweldon.com
> w. http://grahamweldon.com
>
>  --
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=.
>

--

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




Re: CakeFest IV - America - Help us pick a location!

2009-11-13 Thread petteyg
On Nov 13, 6:50 pm, trevorsg  wrote:
> Is Texas too far down there to be considered Central?

I like Texas (specifically Dallas)...

--

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




Re: CakeFest IV - America - Help us pick a location!

2009-11-13 Thread td-nathan
1 vote for west coast (LA/SF?)

On Nov 12, 7:43 pm, Graham Weldon  wrote:
> Hi all,
>
> The CakePHP team has been considering the location for the next  
> upcoming CakeFest.
> We've decided to bring it back home to the United Sates of America.
> Thus far we haven't chosen a location for the event, but to ensure we  
> reach as many people as possible, we'd like your opinion on where we  
> should host the event.
>
> Essentially, our choices are:
> - USA East Coast
> - USA West Coast
> - USA Central
>
> If I have missed another location that you feel might be more popular  
> or accessible to interested attendees, feel free to suggest it.
> We're keen to hear peoples thoughts on it.
>
> Cheers,
>
> Graham Weldon (AKA: Predominant)
>
> e. gra...@grahamweldon.com
> w.http://grahamweldon.com

--

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




RE: If User changes info?

2009-11-13 Thread Dave
Right on.

This is what I have set up. If user forgot password they simply enter their
email and it sends out a confirmation, no changes made to any records. The
email is checked for an account, if found send out the email, no account
tell user to register.

Email link contains a unique 1 time only url to confirm the email if valid
then direct to page to allow them to change password and login in and delete
the confirmation record. The forgot password page also has resend option if
they did not get the email. It deletes the previous unique validate URL and
creates a new one so the original email is no longer any good. 

Thanks

Dave

-Original Message-
From: BrendonKoz [mailto:brendon...@hotmail.com] 
Sent: November-14-09 12:52 AM
To: CakePHP
Subject: Re: If User changes info?

The 2nd part of my explanation was so that if they forget it, but then
remember it they can still login.  It's an extra failsafe in case the
re-activation email gets lost in the shuffle.

On Nov 12, 4:48 pm, "Dave"  wrote:
> I am using auth so I like the idea of comparing the values that way.
>
> Not quite sure I follow the logic in the additional field for "forgot 
> password". If they forgot their password they would not be logged in.
> My forgot function allows them to enter their email and if found will 
> send a confirmation/reset token to that address when they click on the 
> link it allows them to select a new password and login.
>
> All I am doing here is when a user is editing their profile if they 
> change their email address I want to check before saving that if they 
> did change the email an confirmation email get sent and they simply 
> have to confirm it before being able to log back in.
>
> Will work with the Auth compare as it seems logical.
>
> Thanks,
>
> Dave
>
>
>
> -Original Message-
> From: BrendonKoz [mailto:brendon...@hotmail.com]
> Sent: November-12-09 4:48 PM
> To: CakePHP
> Subject: Re: If User changes info?
>
> If you're using the Auth Component, by default it stores all User 
> field values in the user's session.  You could compare the session 
> value with the submitted value in the beforeSave method.
>
> andrzejborkowski's suggestion could be better, however, depending on 
> the instance.  If you're using a "forgot password" option, using a 
> secondary field to store the new password (rather than overwriting the 
> original instantly), it won't lock the user out until they activate 
> the new password when checking the re-activation email.
>
> On Nov 12, 12:30 pm, "andrzejborkow...@gmail.com"
>  wrote:
> > u should add `email_temp` field in users table and overwrite `email` 
> > after click information email i this is best method..
>
> > On 12 Lis, 17:49, "Dave"  wrote:
>
> > > What is the best way to determine if a user changes a specific 
> > > field when updating account?
>
> > > I want to suspend the account when a user changes their email 
> > > address and send out a confirmation email that they will have to 
> > > confirm the address. I could make a separate form but that seems 
> > > like over kill to make a new form just for 1 field.
>
> > > I was thinking beforeSave() compare the new data field with the 
> > > record if it matches no change so carry onif its different 
> > > then do what i need to do , send email...?
>
> > > Anyone have ideas? Simple approach?
>
> > > Thanks,
>
> > > Dave- Hide quoted text -
>
> > - Show quoted text -
>
> --
>
> You received this message because you are subscribed to the Google 
> Groups "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> For more options, visit this group
athttp://groups.google.com/group/cake-php?hl=.
>
> No virus found in this incoming message.
> Checked by AVG -www.avg.com
> Version: 9.0.707 / Virus Database: 270.14.60/2496 - Release Date: 
> 11/12/09
> 04:08:00- Hide quoted text -
>
> - Show quoted text -

--

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


No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.707 / Virus Database: 270.14.60/2496 - Release Date: 11/13/09
14:52:00

--

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




Re: If User changes info?

2009-11-13 Thread BrendonKoz
The 2nd part of my explanation was so that if they forget it, but then
remember it they can still login.  It's an extra failsafe in case the
re-activation email gets lost in the shuffle.

On Nov 12, 4:48 pm, "Dave"  wrote:
> I am using auth so I like the idea of comparing the values that way.
>
> Not quite sure I follow the logic in the additional field for "forgot
> password". If they forgot their password they would not be logged in.
> My forgot function allows them to enter their email and if found will send a
> confirmation/reset token to that address when they click on the link it
> allows them to select a new password and login.
>
> All I am doing here is when a user is editing their profile if they change
> their email address I want to check before saving that if they did change
> the email an confirmation email get sent and they simply have to confirm it
> before being able to log back in.
>
> Will work with the Auth compare as it seems logical.
>
> Thanks,
>
> Dave
>
>
>
> -Original Message-
> From: BrendonKoz [mailto:brendon...@hotmail.com]
> Sent: November-12-09 4:48 PM
> To: CakePHP
> Subject: Re: If User changes info?
>
> If you're using the Auth Component, by default it stores all User field
> values in the user's session.  You could compare the session value with the
> submitted value in the beforeSave method.
>
> andrzejborkowski's suggestion could be better, however, depending on the
> instance.  If you're using a "forgot password" option, using a secondary
> field to store the new password (rather than overwriting the original
> instantly), it won't lock the user out until they activate the new password
> when checking the re-activation email.
>
> On Nov 12, 12:30 pm, "andrzejborkow...@gmail.com"
>  wrote:
> > u should add `email_temp` field in users table and overwrite `email`
> > after click information email i this is best method..
>
> > On 12 Lis, 17:49, "Dave"  wrote:
>
> > > What is the best way to determine if a user changes a specific field
> > > when updating account?
>
> > > I want to suspend the account when a user changes their email
> > > address and send out a confirmation email that they will have to
> > > confirm the address. I could make a separate form but that seems
> > > like over kill to make a new form just for 1 field.
>
> > > I was thinking beforeSave() compare the new data field with the
> > > record if it matches no change so carry onif its different then
> > > do what i need to do , send email...?
>
> > > Anyone have ideas? Simple approach?
>
> > > Thanks,
>
> > > Dave- Hide quoted text -
>
> > - Show quoted text -
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/cake-php?hl=.
>
> No virus found in this incoming message.
> Checked by AVG -www.avg.com
> Version: 9.0.707 / Virus Database: 270.14.60/2496 - Release Date: 11/12/09
> 04:08:00- Hide quoted text -
>
> - Show quoted text -

--

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




Re: CakeFest IV - America - Help us pick a location!

2009-11-13 Thread BrendonKoz
Although I live east coast, I'd be more apt to go if it was some place
warm/tropical.  Once you're in DC, it's not bad, but getting there if
you don't fly is a pain.  Chicago's airport's pretty cool, but I've
never been outside of it.  How is Texas's night life?  Safe?

Anyway, nice of the Cake team to ask!  Thanks!


On Nov 13, 11:02 pm, Miles J  wrote:
> Chicago seems cheap and cold, also one of the worse major cities in
> the US, why there?
>
> I vote for New York, or Seattle, or Boston, or something.
>
> On Nov 13, 7:36 pm, Renan Gonçalves  wrote:
>
>
>
> > Looks like Chicago is a nice place to host.
>
> > On Fri, Nov 13, 2009 at 1:43 AM, Graham Weldon 
> > wrote:
>
> > > Hi all,
>
> > > The CakePHP team has been considering the location for the next upcoming
> > > CakeFest.
> > > We've decided to bring it back home to the United Sates of America.
> > > Thus far we haven't chosen a location for the event, but to ensure we 
> > > reach
> > > as many people as possible, we'd like your opinion on where we should host
> > > the event.
>
> > > Essentially, our choices are:
> > > - USA East Coast
> > > - USA West Coast
> > > - USA Central
>
> > > If I have missed another location that you feel might be more popular or
> > > accessible to interested attendees, feel free to suggest it.
> > > We're keen to hear peoples thoughts on it.
>
> > > Cheers,
>
> > > Graham Weldon (AKA: Predominant)
>
> > > e. gra...@grahamweldon.com
> > > w.http://grahamweldon.com
>
> > >  --
> > > You received this message because you are subscribed to the Google Groups
> > > "CakePHP" group.
> > > To post to this group, send email to cake-...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > cake-php+unsubscr...@googlegroups.com
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/cake-php?hl=.
>
> > --
> > Renan Gonçalves aka renan.saddam
> > CakeDC Software Engineer
> > CakePHP Core Developer
> > Website: renangoncalves dot com
> > Extrema, MG, Brazil- Hide quoted text -
>
> - Show quoted text -

--

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




Using multiple criteria to login a user. Email or Username.

2009-11-13 Thread Ahmed
Does anyone know how I can begin to tackle this feature?

--

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




Re: CakeFest IV - America - Help us pick a location!

2009-11-13 Thread Miles J
Chicago seems cheap and cold, also one of the worse major cities in
the US, why there?

I vote for New York, or Seattle, or Boston, or something.

On Nov 13, 7:36 pm, Renan Gonçalves  wrote:
> Looks like Chicago is a nice place to host.
>
> On Fri, Nov 13, 2009 at 1:43 AM, Graham Weldon wrote:
>
>
>
> > Hi all,
>
> > The CakePHP team has been considering the location for the next upcoming
> > CakeFest.
> > We've decided to bring it back home to the United Sates of America.
> > Thus far we haven't chosen a location for the event, but to ensure we reach
> > as many people as possible, we'd like your opinion on where we should host
> > the event.
>
> > Essentially, our choices are:
> > - USA East Coast
> > - USA West Coast
> > - USA Central
>
> > If I have missed another location that you feel might be more popular or
> > accessible to interested attendees, feel free to suggest it.
> > We're keen to hear peoples thoughts on it.
>
> > Cheers,
>
> > Graham Weldon (AKA: Predominant)
>
> > e. gra...@grahamweldon.com
> > w.http://grahamweldon.com
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "CakePHP" group.
> > To post to this group, send email to cake-...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=.
>
> --
> Renan Gonçalves aka renan.saddam
> CakeDC Software Engineer
> CakePHP Core Developer
> Website: renangoncalves dot com
> Extrema, MG, Brazil

--

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




Re: CakeFest IV - America - Help us pick a location!

2009-11-13 Thread Renan Gonçalves
Looks like Chicago is a nice place to host.

On Fri, Nov 13, 2009 at 1:43 AM, Graham Weldon wrote:

> Hi all,
>
> The CakePHP team has been considering the location for the next upcoming
> CakeFest.
> We've decided to bring it back home to the United Sates of America.
> Thus far we haven't chosen a location for the event, but to ensure we reach
> as many people as possible, we'd like your opinion on where we should host
> the event.
>
> Essentially, our choices are:
> - USA East Coast
> - USA West Coast
> - USA Central
>
> If I have missed another location that you feel might be more popular or
> accessible to interested attendees, feel free to suggest it.
> We're keen to hear peoples thoughts on it.
>
> Cheers,
>
> Graham Weldon (AKA: Predominant)
>
> e. gra...@grahamweldon.com
> w. http://grahamweldon.com
>
>  --
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=.
>



-- 
Renan Gonçalves aka renan.saddam
CakeDC Software Engineer
CakePHP Core Developer
Website: renangoncalves dot com
Extrema, MG, Brazil

--

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




Re: Blank line before views rendering

2009-11-13 Thread Liu Gang
yes, it's ok
  - Original Message - 
  From: Cesar Sanz 
  To: cake-php@googlegroups.com 
  Sent: Saturday, November 14, 2009 6:56 AM
  Subject: Re: Blank line before views rendering


  Do you mean I can have this

   and it is ok?

  Slts
- Original Message - 
From: David Roda 
To: cake-php@googlegroups.com 
Sent: Friday, November 13, 2009 4:39 PM
Subject: Re: Blank line before views rendering


He actually was saying that 

The PHP parser inserts ?> automatically at the end of the files if its not 
there.  I've read this recommendation in many php frameworks which use template 
files.


On Fri, Nov 13, 2009 at 12:33 PM, Dave  wrote:

  Ok...I just read it wrong.

  I thought you were saying remove "?>" entirely, not "?>(space)"

  My bad.

  Dave


  -Original Message-
  From: calzone [mailto:calz...@gmail.com]
  Sent: November-13-09 1:47 PM
  To: CakePHP
  Subject: Re: Blank line before views rendering

  I have found this problem crops up with carriage returns after the closing
  ?> in any model file.

  Go through all your model files and make sure there is no more than 1
  carriage returning following the last ?>

  On Nov 13, 8:31 am, "Dave"  wrote:
  > What do you mean by remove ?>
  >
  > I have never heard of this before. Can you explain a little more or a
  > link where I can read more about this?
  >
  > Thanks,
  >
  > Dave
  >
  >   _
  >
  > From: Pablo Viojo [mailto:pvi...@gmail.com]
  > Sent: November-13-09 11:40 AM
  > To: cake-php@googlegroups.com
  > Subject: Re: Blank line before views rendering
  >
  > Anyway, it's recommended to remove ?> in controllers, models and any
  > other .php file
  >
  > Regards,
  >
  > Pablo Viojo
  > pvi...@gmail.comhttp://pviojo.net
  >
  > ¿Que necesitas?http://needish.com
  >
  > On Fri, Nov 13, 2009 at 4:28 AM, PDEagle  wrote:
  >
  > Hi guys,
  >
  > I'm creating a blog system with cake, and now I encounted a problem
  > which has puzzled me for days. When the views rendering, there is
  > sometimes a blank line at the top, e.g. the layout looks like:
  >
  > 
  > 
  >
  > and the view file looks like:
  >
  > ...
  >
  > There would be a blank line inserting before eg2. The odd thing is,
  > sometimes there is such a line, and sometimes there is no. I have
  > checked out that in all controller files and model files, there are no
  > space before . In fact, I doubt that the problem
  > arises because of the encoding way of the ctp file. Take my posts/
  > admin_add.ctp as an example, when saves it as UTF-8, the secrect blank
  > line appears, while saves it as ANSI, the line disappears. However,
  > there is another ctp file, it is also encoded as UTF-8 and it can
  > render in the right way.
  >
  > Has anyone encounted the same problem? Or can anyone give me some
  > hint? 3x~
  >
  > --
  >
  > You received this message because you are subscribed to the Google
  > Groups "CakePHP" group.
  > To post to this group, send email to cake-...@googlegroups.com.
  > To unsubscribe from this group, send email to
  > cake-php+unsubscr...@googlegroups.com
  >  .
  > For more options, visit this group
  athttp://groups.google.com/group/cake-php?hl=.
  >
  > --
  >
  > You received this message because you are subscribed to the Google
  > Groups "CakePHP" group.
  > To post to this group, send email to cake-...@googlegroups.com.
  > To unsubscribe from this group, send email to
  > cake-php+unsubscr...@googlegroups.com.
  > For more options, visit this group
  athttp://groups.google.com/group/cake-php?hl=.
  >
  > No virus found in this incoming message.
  > Checked by AVG -www.avg.com
  > Version: 9.0.707 / Virus Database: 270.14.60/2496 - Release Date:
  > 11/13/09 04:24:00

  --

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


  No virus found in this incoming message.
  Checked by AVG - www.avg.com
  Version: 9.0.707 / Virus Database: 270.14.60/2496 - Release Date: 11/13/09
  04:24:00

  --

  You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
  To post to this group, send email to cake-...@googlegroups.com.
  To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegrou

Re: Blank line before views rendering

2009-11-13 Thread Liu Gang
viojo means that '?>' in php files is not necessary and sometimes may cause 
trouble in cake. However, the puzzle thing is, I have already removed them all, 
and I'm sure that there is no space before '

  I have never heard of this before. Can you explain a little more or a link 
where I can read more about this?

  Thanks,

  Dave



--
  From: Pablo Viojo [mailto:pvi...@gmail.com] 
  Sent: November-13-09 11:40 AM
  To: cake-php@googlegroups.com
  Subject: Re: Blank line before views rendering




  Anyway, it's recommended to remove ?> in controllers, models and any other 
.php file




  Regards,

  Pablo Viojo
  pvi...@gmail.com
  http://pviojo.net

  ¿Que necesitas?
  http://needish.com



  On Fri, Nov 13, 2009 at 4:28 AM, PDEagle  wrote:

Hi guys,

I'm creating a blog system with cake, and now I encounted a problem
which has puzzled me for days. When the views rendering, there is
sometimes a blank line at the top, e.g. the layout looks like:


   


and the view file looks like:

...

There would be a blank line inserting before eg2. The odd thing is,
sometimes there is such a line, and sometimes there is no. I have
checked out that in all controller files and model files, there are no
space before . In fact, I doubt that the problem
arises because of the encoding way of the ctp file. Take my posts/
admin_add.ctp as an example, when saves it as UTF-8, the secrect blank
line appears, while saves it as ANSI, the line disappears. However,
there is another ctp file, it is also encoded as UTF-8 and it can
render in the right way.

Has anyone encounted the same problem? Or can anyone give me some
hint? 3x~

--

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






  --

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

  No virus found in this incoming message.
  Checked by AVG - www.avg.com
  Version: 9.0.707 / Virus Database: 270.14.60/2496 - Release Date: 11/13/09 
04:24:00



  --

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

--

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




Re: Blank line before views rendering

2009-11-13 Thread Liu Gang
In fact, I have already removed all the ?> in my php files -,-
  - Original Message - 
  From: Pablo Viojo 
  To: cake-php@googlegroups.com 
  Sent: Friday, November 13, 2009 11:09 PM
  Subject: Re: Blank line before views rendering




  Anyway, it's recommended to remove ?> in controllers, models and any other 
.php file




  Regards,

  Pablo Viojo
  pvi...@gmail.com
  http://pviojo.net

  ¿Que necesitas?
  http://needish.com



  On Fri, Nov 13, 2009 at 4:28 AM, PDEagle  wrote:

Hi guys,

I'm creating a blog system with cake, and now I encounted a problem
which has puzzled me for days. When the views rendering, there is
sometimes a blank line at the top, e.g. the layout looks like:


   


and the view file looks like:

...

There would be a blank line inserting before eg2. The odd thing is,
sometimes there is such a line, and sometimes there is no. I have
checked out that in all controller files and model files, there are no
space before . In fact, I doubt that the problem
arises because of the encoding way of the ctp file. Take my posts/
admin_add.ctp as an example, when saves it as UTF-8, the secrect blank
line appears, while saves it as ANSI, the line disappears. However,
there is another ctp file, it is also encoded as UTF-8 and it can
render in the right way.

Has anyone encounted the same problem? Or can anyone give me some
hint? 3x~

--

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






  --

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

--

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




Re: CakeFest IV - America - Help us pick a location!

2009-11-13 Thread nurvzy
New Mexico!  or USA MidWest/West Coast =)

On Nov 12, 8:43 pm, Graham Weldon  wrote:
> Hi all,
>
> The CakePHP team has been considering the location for the next  
> upcoming CakeFest.
> We've decided to bring it back home to the United Sates of America.
> Thus far we haven't chosen a location for the event, but to ensure we  
> reach as many people as possible, we'd like your opinion on where we  
> should host the event.
>
> Essentially, our choices are:
> - USA East Coast
> - USA West Coast
> - USA Central
>
> If I have missed another location that you feel might be more popular  
> or accessible to interested attendees, feel free to suggest it.
> We're keen to hear peoples thoughts on it.
>
> Cheers,
>
> Graham Weldon (AKA: Predominant)
>
> e. gra...@grahamweldon.com
> w.http://grahamweldon.com

--

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




Re: CakeFest IV - America - Help us pick a location!

2009-11-13 Thread jpablobr
San Jose, Costa Rica!!!

-Pablo

On Nov 13, 7:22 pm, merrylin shi  wrote:
> 2009/11/13 Brenda 
>
> > USA East Coast ... Washington DC!
>
> > ...Brenda
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "CakePHP" group.
> > To post to this group, send email to cake-...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=.
>
> > USA East Coast

--

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




Re: CakeFest IV - America - Help us pick a location!

2009-11-13 Thread leeforkenbrock
I agree with PHPNut and Walker.  Let's do Chicago.

However, Nashville has the "Flying Saucer" bar with about 100 beers on
tap.  So, I wouldn't be disappointed if it was there either.  First
conference was in Orlando, so probably best to do Central/Midwest or
West Coast.

--

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




Re: CakeFest IV - America - Help us pick a location!

2009-11-13 Thread Teh Treag
New Orleans, LA  -  The Crescent City - For USA Central

The city is beautiful, and has a unique culture and atmosphere. If
you've never been to New Orleans you're in for a treat.  The cuisine
is excellent.  The night life is never ending.  I'm not sure what time
of year you are planning on having an event, but the city has a lot to
offer.

New Orleans is a historic city, and it's Southern hospitality all the
way.  Great food, the home of Gumbo, and Jambalaya.  Dine at Emeril's,
yeah you know him, of cooking show fame. For those who like beer, we
have a few local brews, Abita is one of the more popular - Try an
"Amber", or if you are feeling adventurous you can try "Purple Haze",
a Raspberry flavored beer.

The city of New Orleans, is an international hub, and is easily
accessible from all around North America.  During the summer months
it's hot, and during the winter "days" a jacket may be required.

I've attended a few conferences at the Royal Sonesta.  The Royal
Sonesta has nice conference rooms, with access to the common
technological amenities.  This hotel is right in the French Quarters,
the oldest part of the city... built on the high ground in the
crescent of the river... virtually unaffected by the hurricanes.  The
French Quarters offers hundreds of night clubs, bars, and
restaurants.  There are casinos in the city, and many venues for those
who would be interested in seeing a NFL (great year for the Saints,
good luck on getting tickets) or NBA game, or a live concert.

New Orleans has Mardi Gras, a religious celebration gone wild.
Traditionally, it's a huge, city-wide (celebrated all across the
region) party, before going into the Catholic season of Lent.  Do I
really need to say more about the best free party on the planet.  That
party like atmosphere bleeds over into the everyday night life of the
French Quarters.  With restaurants, bars, live bands, strip clubs, and
more lining the streets of the French Quarters, there's no way you
can't have a good time.  Laissez les bon temps rouler.

For the REALLY adventurous there are Swamp Tours, Air boat tours, and
deep sea fishing charters, nice golf courses, museums, river boat
rides, and a few swingers clubs.

Given the economic times for post-Katrina New Orleans, I can imagine
there may be some incentives available from hotels and restaurants for
reasonable sized groups.

I must admit, I'm a little biased about the city.  It's my home
town. :)

http://en.wikipedia.org/wiki/New_Orleans
http://www.neworleansonline.com/
http://www.sonesta.com/RoyalNewOrleans/
http://www.emerils.com/restaurant/1/Emerils-New-Orleans/
http://www.abita.com/
http://www.neworleanssaints.com/Home.aspx
http://www.nba.com/hornets/index.html?nav=page
http://en.wikipedia.org/wiki/Mardi_Gras#United_States
http://www.coletteneworleans.com/

Geaux Saints!  LSU Rules!


-teh





On Nov 12, 9:43 pm, Graham Weldon  wrote:
> Hi all,
>
> The CakePHP team has been considering the location for the next  
> upcoming CakeFest.
> We've decided to bring it back home to the United Sates of America.
> Thus far we haven't chosen a location for the event, but to ensure we  
> reach as many people as possible, we'd like your opinion on where we  
> should host the event.
>
> Essentially, our choices are:
> - USA East Coast
> - USA West Coast
> - USA Central
>
> If I have missed another location that you feel might be more popular  
> or accessible to interested attendees, feel free to suggest it.
> We're keen to hear peoples thoughts on it.
>
> Cheers,
>
> Graham Weldon (AKA: Predominant)
>
> e. gra...@grahamweldon.com
> w.http://grahamweldon.com

--

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




Re: Hiding an element based on data returned in Ajax request

2009-11-13 Thread Scott Dahl
Can you post your entire observeField() code?

On 11/13/09, lauraw  wrote:
> Okay, bear with me ... I'm learning cake, javascript, and ajax all at
> the same time :-) ... and prototype
>
> I added 'loaded' for observeField() and the javascript code to check
> the length of the select element
>
>  if ( $("pstyle_sel").length == 0)
>   $("style").hide();
>
> this kind of works. The first time I select something that doesn't
> have styles, it doesn't hide the row. Next I selected something that
> did have styles and it HID THE ROW. It's like it's seeing the data
> from the previous ajax request, like it's one step behind?
>
> I'm using 'loaded' instead of 'complete' because when I used
> 'complete' my ajax loading indicator just kept displaying even though
> the request was done.
>
> Any ideas on why my javascript is lagging? Or have you seen this
> continual ajax loading indicator when using 'complete'?
>
> Thanks, guys for your input!
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=.
>
>
>

--

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




Re: CakeFest IV - America - Help us pick a location!

2009-11-13 Thread merrylin shi
2009/11/13 Brenda 

> USA East Coast ... Washington DC!
>
> ...Brenda
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=.
>
>
> USA East Coast

--

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




Re: CakeFest IV - America - Help us pick a location!

2009-11-13 Thread Brenda
USA East Coast ... Washington DC!

...Brenda

--

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




Re: CakeFest IV - America - Help us pick a location!

2009-11-13 Thread neterslandr...@gmail.com
I second the motion for Miami!

On Nov 13, 6:37 pm, David Roda  wrote:
> USA East Coast.
>
> Come visit us in Miami!!
>
> On Fri, Nov 13, 2009 at 5:34 PM, Jeff Deroshia  wrote:
> > If we are voing in the thread, I choose USA East Cost.
>
> > If not, where do we vote?
>
> > Jeff
>
> > On Thu, Nov 12, 2009 at 10:43 PM, Graham Weldon 
> > wrote:
>
> >> Hi all,
>
> >> The CakePHP team has been considering the location for the next upcoming
> >> CakeFest.
> >> We've decided to bring it back home to the United Sates of America.
> >> Thus far we haven't chosen a location for the event, but to ensure we
> >> reach as many people as possible, we'd like your opinion on where we should
> >> host the event.
>
> >> Essentially, our choices are:
> >> - USA East Coast
> >> - USA West Coast
> >> - USA Central
>
> >> If I have missed another location that you feel might be more popular or
> >> accessible to interested attendees, feel free to suggest it.
> >> We're keen to hear peoples thoughts on it.
>
> >> Cheers,
>
> >> Graham Weldon (AKA: Predominant)
>
> >> e. gra...@grahamweldon.com
> >> w.http://grahamweldon.com
>
> >>  --
> >> You received this message because you are subscribed to the Google Groups
> >> "CakePHP" group.
> >> To post to this group, send email to cake-...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> cake-php+unsubscr...@googlegroups.com
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/cake-php?hl=.
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "CakePHP" group.
> > To post to this group, send email to cake-...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=.

--

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




Re: CakeFest IV - America - Help us pick a location!

2009-11-13 Thread techno-geek
Indianapolis, IN so I can actually afford to come!

On Nov 12, 9:43 pm, Graham Weldon  wrote:
> Hi all,
>
> The CakePHP team has been considering the location for the next  
> upcoming CakeFest.
> We've decided to bring it back home to the United Sates of America.
> Thus far we haven't chosen a location for the event, but to ensure we  
> reach as many people as possible, we'd like your opinion on where we  
> should host the event.
>
> Essentially, our choices are:
> - USA East Coast
> - USA West Coast
> - USA Central
>
> If I have missed another location that you feel might be more popular  
> or accessible to interested attendees, feel free to suggest it.
> We're keen to hear peoples thoughts on it.
>
> Cheers,
>
> Graham Weldon (AKA: Predominant)
>
> e. gra...@grahamweldon.com
> w.http://grahamweldon.com

--

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




Re: Hiding an element based on data returned in Ajax request

2009-11-13 Thread lauraw
Okay, bear with me ... I'm learning cake, javascript, and ajax all at
the same time :-) ... and prototype

I added 'loaded' for observeField() and the javascript code to check
the length of the select element

 if ( $("pstyle_sel").length == 0)
  $("style").hide();

this kind of works. The first time I select something that doesn't
have styles, it doesn't hide the row. Next I selected something that
did have styles and it HID THE ROW. It's like it's seeing the data
from the previous ajax request, like it's one step behind?

I'm using 'loaded' instead of 'complete' because when I used
'complete' my ajax loading indicator just kept displaying even though
the request was done.

Any ideas on why my javascript is lagging? Or have you seen this
continual ajax loading indicator when using 'complete'?

Thanks, guys for your input!

--

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




Re: CakeFest IV - America - Help us pick a location!

2009-11-13 Thread amin
New York PLEASE.
I offer to help find a venue if nyc is picked.


On Nov 13, 8:06 pm, "Larry E. Masters aka PhpNut" 
wrote:
> Nashville Tn. since I live in Tn now and it would be easier for me to deal
> with the venues.
>
> Chicago like Walker Hamilton suggested, that is my old "home town" and would
> be nice to visit.
>
> --
> /**
> * @author Larry E. Masters
> * @var string $userName
> * @param string $realName
> * @returns string aka PhpNut
> * @access  public
> */
>
> On Fri, Nov 13, 2009 at 6:55 PM, Jose  wrote:
> > NEW YORK
>
> > -savant
>
> > On Nov 12, 10:43 pm, Graham Weldon  wrote:
> > > Hi all,
>
> > > The CakePHP team has been considering the location for the next
> > > upcoming CakeFest.
> > > We've decided to bring it back home to the United Sates of America.
> > > Thus far we haven't chosen a location for the event, but to ensure we
> > > reach as many people as possible, we'd like your opinion on where we
> > > should host the event.
>
> > > Essentially, our choices are:
> > > - USA East Coast
> > > - USA West Coast
> > > - USA Central
>
> > > If I have missed another location that you feel might be more popular
> > > or accessible to interested attendees, feel free to suggest it.
> > > We're keen to hear peoples thoughts on it.
>
> > > Cheers,
>
> > > Graham Weldon (AKA: Predominant)
>
> > > e. gra...@grahamweldon.com
> > > w.http://grahamweldon.com
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "CakePHP" group.
> > To post to this group, send email to cake-...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=.

--

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




Re: CakeFest IV - America - Help us pick a location!

2009-11-13 Thread Larry E. Masters aka PhpNut
Nashville Tn. since I live in Tn now and it would be easier for me to deal
with the venues.

Chicago like Walker Hamilton suggested, that is my old "home town" and would
be nice to visit.

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Fri, Nov 13, 2009 at 6:55 PM, Jose  wrote:

> NEW YORK
>
> -savant
>
> On Nov 12, 10:43 pm, Graham Weldon  wrote:
> > Hi all,
> >
> > The CakePHP team has been considering the location for the next
> > upcoming CakeFest.
> > We've decided to bring it back home to the United Sates of America.
> > Thus far we haven't chosen a location for the event, but to ensure we
> > reach as many people as possible, we'd like your opinion on where we
> > should host the event.
> >
> > Essentially, our choices are:
> > - USA East Coast
> > - USA West Coast
> > - USA Central
> >
> > If I have missed another location that you feel might be more popular
> > or accessible to interested attendees, feel free to suggest it.
> > We're keen to hear peoples thoughts on it.
> >
> > Cheers,
> >
> > Graham Weldon (AKA: Predominant)
> >
> > e. gra...@grahamweldon.com
> > w.http://grahamweldon.com
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=.
>
>

--

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




Re: CakeFest IV - America - Help us pick a location!

2009-11-13 Thread Jose
NEW YORK

-savant

On Nov 12, 10:43 pm, Graham Weldon  wrote:
> Hi all,
>
> The CakePHP team has been considering the location for the next  
> upcoming CakeFest.
> We've decided to bring it back home to the United Sates of America.
> Thus far we haven't chosen a location for the event, but to ensure we  
> reach as many people as possible, we'd like your opinion on where we  
> should host the event.
>
> Essentially, our choices are:
> - USA East Coast
> - USA West Coast
> - USA Central
>
> If I have missed another location that you feel might be more popular  
> or accessible to interested attendees, feel free to suggest it.
> We're keen to hear peoples thoughts on it.
>
> Cheers,
>
> Graham Weldon (AKA: Predominant)
>
> e. gra...@grahamweldon.com
> w.http://grahamweldon.com

--

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




Re: CakeFest IV - America - Help us pick a location!

2009-11-13 Thread Predominant


> If not, where do we vote?

Voting here in the thread will be fine :-) Thanks!

--

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




CakeFest IV - America - Help us pick a location!

2009-11-13 Thread Larry E. Masters aka PhpNut
Trying to set this back to original thread in google.

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Fri, Nov 13, 2009 at 6:59 PM, Larry E. Masters aka PhpNut <
php...@gmail.com> wrote:

> Chris,
>
> Thanks for breaking the thread :)
>
> Everyone please reply to the email/thread titled:
>
> CakeFest IV - America - Help us pick a location!
>
> --
> /**
> * @author Larry E. Masters
> * @var string $userName
> * @param string $realName
> * @returns string aka PhpNut
> * @access  public
> */
>
>
> On Fri, Nov 13, 2009 at 6:54 PM, Scott Dahl  wrote:
>
>> I vote Seattle!!!
>>
>>
>> On Fri, Nov 13, 2009 at 4:46 PM, Walker Hamilton wrote:
>>
>>> How about centrally located (St. Louis or Chicago)?
>>>
>>> --
>>>
>>> You received this message because you are subscribed to the Google Groups
>>> "CakePHP" group.
>>> To post to this group, send email to cake-...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> cake-php+unsubscr...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/cake-php?hl=.
>>>
>>>
>>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "CakePHP" group.
>> To post to this group, send email to cake-...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> cake-php+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=.
>>
>
>
>

--

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




Re: I now have an iPhone (was: CakeFest IV - America - Help us pick a location!)

2009-11-13 Thread Larry E. Masters aka PhpNut
Chris,

Thanks for breaking the thread :)

Everyone please reply to the email/thread titled:

CakeFest IV - America - Help us pick a location!

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Fri, Nov 13, 2009 at 6:54 PM, Scott Dahl  wrote:

> I vote Seattle!!!
>
>
> On Fri, Nov 13, 2009 at 4:46 PM, Walker Hamilton wrote:
>
>> How about centrally located (St. Louis or Chicago)?
>>
>> --
>>
>> You received this message because you are subscribed to the Google Groups
>> "CakePHP" group.
>> To post to this group, send email to cake-...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> cake-php+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=.
>>
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=.
>

--

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




Re: I now have an iPhone (was: CakeFest IV - America - Help us pick a location!)

2009-11-13 Thread Scott Dahl
I vote Seattle!!!

On Fri, Nov 13, 2009 at 4:46 PM, Walker Hamilton wrote:

> How about centrally located (St. Louis or Chicago)?
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=.
>
>
>

--

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




Re: CakeFest IV - America - Help us pick a location!

2009-11-13 Thread trevorsg
Is Texas too far down there to be considered Central?

On Nov 12, 9:43 pm, Graham Weldon  wrote:
> Hi all,
>
> The CakePHP team has been considering the location for the next  
> upcoming CakeFest.
> We've decided to bring it back home to the United Sates of America.
> Thus far we haven't chosen a location for the event, but to ensure we  
> reach as many people as possible, we'd like your opinion on where we  
> should host the event.
>
> Essentially, our choices are:
> - USA East Coast
> - USA West Coast
> - USA Central
>
> If I have missed another location that you feel might be more popular  
> or accessible to interested attendees, feel free to suggest it.
> We're keen to hear peoples thoughts on it.
>
> Cheers,
>
> Graham Weldon (AKA: Predominant)
>
> e. gra...@grahamweldon.com
> w.http://grahamweldon.com

--

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




Re: I now have an iPhone (was: CakeFest IV - America - Help us pick a location!)

2009-11-13 Thread Walker Hamilton
How about centrally located (St. Louis or Chicago)?

--

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




Re: Displaying data from unrelated models

2009-11-13 Thread Scott Dahl
Marcelo,

Thanks for the update.  I was unaware of that.  I will stop using that and
update my methods.  Thanks again.

Scott

On Fri, Nov 13, 2009 at 12:11 PM, Marcelo Andrade wrote:

> On Fri, Nov 13, 2009 at 3:06 PM, Scott Dahl  wrote:
> > $this->loadModel('ModelName');
> > $results = $this->ModelName->find('list');
>
> "loadModel" is deprecated.  Use
> App::import('model', 'ModelName');
> instead.
>
> Best regards.
>
> --
> MARCELO DE F. ANDRADE
> Belem, PA, Amazonia, Brazil
> Linux User #221105
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=.
>
>
>

--

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




Re: Blank line before views rendering

2009-11-13 Thread Cesar Sanz
Do you mean I can have this

 and it is ok?

Slts
  - Original Message - 
  From: David Roda 
  To: cake-php@googlegroups.com 
  Sent: Friday, November 13, 2009 4:39 PM
  Subject: Re: Blank line before views rendering


  He actually was saying that

  The PHP parser inserts ?> automatically at the end of the files if its not 
there.  I've read this recommendation in many php frameworks which use template 
files.


  On Fri, Nov 13, 2009 at 12:33 PM, Dave  wrote:

Ok...I just read it wrong.

I thought you were saying remove "?>" entirely, not "?>(space)"

My bad.

Dave


-Original Message-
From: calzone [mailto:calz...@gmail.com]
Sent: November-13-09 1:47 PM
To: CakePHP
Subject: Re: Blank line before views rendering

I have found this problem crops up with carriage returns after the closing
?> in any model file.

Go through all your model files and make sure there is no more than 1
carriage returning following the last ?>

On Nov 13, 8:31 am, "Dave"  wrote:
> What do you mean by remove ?>
>
> I have never heard of this before. Can you explain a little more or a
> link where I can read more about this?
>
> Thanks,
>
> Dave
>
>   _
>
> From: Pablo Viojo [mailto:pvi...@gmail.com]
> Sent: November-13-09 11:40 AM
> To: cake-php@googlegroups.com
> Subject: Re: Blank line before views rendering
>
> Anyway, it's recommended to remove ?> in controllers, models and any
> other .php file
>
> Regards,
>
> Pablo Viojo
> pvi...@gmail.comhttp://pviojo.net
>
> ¿Que necesitas?http://needish.com
>
> On Fri, Nov 13, 2009 at 4:28 AM, PDEagle  wrote:
>
> Hi guys,
>
> I'm creating a blog system with cake, and now I encounted a problem
> which has puzzled me for days. When the views rendering, there is
> sometimes a blank line at the top, e.g. the layout looks like:
>
> 
> 
>
> and the view file looks like:
>
> ...
>
> There would be a blank line inserting before eg2. The odd thing is,
> sometimes there is such a line, and sometimes there is no. I have
> checked out that in all controller files and model files, there are no
> space before . In fact, I doubt that the problem
> arises because of the encoding way of the ctp file. Take my posts/
> admin_add.ctp as an example, when saves it as UTF-8, the secrect blank
> line appears, while saves it as ANSI, the line disappears. However,
> there is another ctp file, it is also encoded as UTF-8 and it can
> render in the right way.
>
> Has anyone encounted the same problem? Or can anyone give me some
> hint? 3x~
>
> --
>
> You received this message because you are subscribed to the Google
> Groups "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com
>  .
> For more options, visit this group
athttp://groups.google.com/group/cake-php?hl=.
>
> --
>
> You received this message because you are subscribed to the Google
> Groups "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> For more options, visit this group
athttp://groups.google.com/group/cake-php?hl=.
>
> No virus found in this incoming message.
> Checked by AVG -www.avg.com
> Version: 9.0.707 / Virus Database: 270.14.60/2496 - Release Date:
> 11/13/09 04:24:00

--

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


No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.707 / Virus Database: 270.14.60/2496 - Release Date: 11/13/09
04:24:00

--

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






  --

  You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
  To post to this group, send email to cake-...@googlegroups.com.
  To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
  For more options, visit this group at 
http://groups.google.com/group/cake-p

Re: saveAll - fieldList question

2009-11-13 Thread David Roda
I would probably split it into two calls

assuming this code is in your Model1 model:

$this->saveAll($data['Model1'], array('fieldList' => array('date')));
$this->Model2->saveAll($data['Model2'], array('fieldList' =>
array('date')));

On Fri, Nov 13, 2009 at 8:52 AM, mattalexx  wrote:

> Any luck figuring this one out?
>
> On Nov 5, 3:15 am, Raph  wrote:
> > Hello,
> >
> > Let's say I have a model Model1 with fields 'name' and 'date' and I
> > have a Model2 with field 'name'. Model1 is in relation 'hasMany' with
> > Model2. How should I use saveAll() method with "fieldList" parameter
> > if I only want to save all 'date' from Model1 and 'name' from Model2?
> > It looks like in "fieldList" array only fields' names without models'
> > names allowed i.e.
> >
> > This will work:
> > $this->saveAll($data, array('fieldList' => array('date')));
> >
> > but this won't:
> > $this->saveAll($data, array('fieldList' => array('date',
> > 'Model2.0.name')));
> >
> > this won't either:
> > $this->saveAll($data, array('fieldList' => array('date',
> > 'Model2.name')));
> >
> > Any suggestions?
> >
> > --
> > Raph
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=.
>
>
>

--

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




Re: How and when to use the root vendor folder

2009-11-13 Thread Jeff Deroshia
You will need to use App::import to make those files available.

You can load mvc and vendor code in from anywhere as well by creating some
arrays in config/bootstrap.php if your app shares code with others.

See http://book.cakephp.org/view/36/Additional-Class-Paths

Jeff

On Mon, Nov 9, 2009 at 9:13 AM, jsundquist  wrote:

>
> I'm seeking some advice. I have three sites that are with in one root
> folder that share some css, javascript, and images. I would like to be
> able to maintain all three items with in the root vendor folder but I
> am not exactly sure on how to go about doing it. Do I just drop each
> item into their respected folder instead of in the webroot folder and
> they will be found? There isn't much documentation on how this works
> with in the cakephp documents so I am hoping someone here might have a
> good idea.
> --~--~-~--~~~---~--~~
> 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
> cake-php+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
> -~--~~~~--~~--~--~---
>
>

--

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




Re: Blank line before views rendering

2009-11-13 Thread David Roda
He actually was saying that

The PHP parser inserts ?> automatically at the end of the files if its not
there.  I've read this recommendation in many php frameworks which use
template files.

On Fri, Nov 13, 2009 at 12:33 PM, Dave  wrote:

> Ok...I just read it wrong.
>
> I thought you were saying remove "?>" entirely, not "?>(space)"
>
> My bad.
>
> Dave
>
> -Original Message-
> From: calzone [mailto:calz...@gmail.com]
> Sent: November-13-09 1:47 PM
> To: CakePHP
> Subject: Re: Blank line before views rendering
>
> I have found this problem crops up with carriage returns after the closing
> ?> in any model file.
>
> Go through all your model files and make sure there is no more than 1
> carriage returning following the last ?>
>
> On Nov 13, 8:31 am, "Dave"  wrote:
> > What do you mean by remove ?>
> >
> > I have never heard of this before. Can you explain a little more or a
> > link where I can read more about this?
> >
> > Thanks,
> >
> > Dave
> >
> >   _
> >
> > From: Pablo Viojo [mailto:pvi...@gmail.com]
> > Sent: November-13-09 11:40 AM
> > To: cake-php@googlegroups.com
> > Subject: Re: Blank line before views rendering
> >
> > Anyway, it's recommended to remove ?> in controllers, models and any
> > other .php file
> >
> > Regards,
> >
> > Pablo Viojo
> > pvi...@gmail.comhttp://pviojo.net
> >
> > ¿Que necesitas?http://needish.com
> >
> > On Fri, Nov 13, 2009 at 4:28 AM, PDEagle  wrote:
> >
> > Hi guys,
> >
> > I'm creating a blog system with cake, and now I encounted a problem
> > which has puzzled me for days. When the views rendering, there is
> > sometimes a blank line at the top, e.g. the layout looks like:
> >
> > 
> > 
> >
> > and the view file looks like:
> >
> > ...
> >
> > There would be a blank line inserting before eg2. The odd thing is,
> > sometimes there is such a line, and sometimes there is no. I have
> > checked out that in all controller files and model files, there are no
> > space before . In fact, I doubt that the problem
> > arises because of the encoding way of the ctp file. Take my posts/
> > admin_add.ctp as an example, when saves it as UTF-8, the secrect blank
> > line appears, while saves it as ANSI, the line disappears. However,
> > there is another ctp file, it is also encoded as UTF-8 and it can
> > render in the right way.
> >
> > Has anyone encounted the same problem? Or can anyone give me some
> > hint? 3x~
> >
> > --
> >
> > You received this message because you are subscribed to the Google
> > Groups "CakePHP" group.
> > To post to this group, send email to cake-...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com
> > 
> .
> > For more options, visit this group
> athttp://groups.google.com/group/cake-php?hl=.
> >
> > --
> >
> > You received this message because you are subscribed to the Google
> > Groups "CakePHP" group.
> > To post to this group, send email to cake-...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com
> .
> > For more options, visit this group
> athttp://groups.google.com/group/cake-php?hl=.
> >
> > No virus found in this incoming message.
> > Checked by AVG -www.avg.com
> > Version: 9.0.707 / Virus Database: 270.14.60/2496 - Release Date:
> > 11/13/09 04:24:00
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=.
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 9.0.707 / Virus Database: 270.14.60/2496 - Release Date: 11/13/09
> 04:24:00
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=.
>
>
>

--

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




Re: CakeFest IV - America - Help us pick a location!

2009-11-13 Thread David Roda
USA East Coast.

Come visit us in Miami!!

On Fri, Nov 13, 2009 at 5:34 PM, Jeff Deroshia  wrote:

> If we are voing in the thread, I choose USA East Cost.
>
> If not, where do we vote?
>
> Jeff
>
>
>
> On Thu, Nov 12, 2009 at 10:43 PM, Graham Weldon 
> wrote:
>
>> Hi all,
>>
>> The CakePHP team has been considering the location for the next upcoming
>> CakeFest.
>> We've decided to bring it back home to the United Sates of America.
>> Thus far we haven't chosen a location for the event, but to ensure we
>> reach as many people as possible, we'd like your opinion on where we should
>> host the event.
>>
>> Essentially, our choices are:
>> - USA East Coast
>> - USA West Coast
>> - USA Central
>>
>> If I have missed another location that you feel might be more popular or
>> accessible to interested attendees, feel free to suggest it.
>> We're keen to hear peoples thoughts on it.
>>
>> Cheers,
>>
>> Graham Weldon (AKA: Predominant)
>>
>> e. gra...@grahamweldon.com
>> w. http://grahamweldon.com
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "CakePHP" group.
>> To post to this group, send email to cake-...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> cake-php+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=.
>

--

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




Re: CakeFest IV - America - Help us pick a location!

2009-11-13 Thread Jeff Deroshia
If we are voing in the thread, I choose USA East Cost.

If not, where do we vote?

Jeff


On Thu, Nov 12, 2009 at 10:43 PM, Graham Weldon wrote:

> Hi all,
>
> The CakePHP team has been considering the location for the next upcoming
> CakeFest.
> We've decided to bring it back home to the United Sates of America.
> Thus far we haven't chosen a location for the event, but to ensure we reach
> as many people as possible, we'd like your opinion on where we should host
> the event.
>
> Essentially, our choices are:
> - USA East Coast
> - USA West Coast
> - USA Central
>
> If I have missed another location that you feel might be more popular or
> accessible to interested attendees, feel free to suggest it.
> We're keen to hear peoples thoughts on it.
>
> Cheers,
>
> Graham Weldon (AKA: Predominant)
>
> e. gra...@grahamweldon.com
> w. http://grahamweldon.com
>
>  --
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=.
>

--

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




Re: Help! The page isn't redirecting properly

2009-11-13 Thread David Roda
Try with a trailing slash after upload $this->redirect('/files/upload/');

On Fri, Nov 13, 2009 at 2:57 PM, [ ramesh ]  wrote:

> No it's not working, and upload is not redirecting back to index, i suspect
> is there anything todo with routes?
>
> On Fri, Nov 13, 2009 at 10:09 PM, wfisk  wrote:
>
>> It sounds like its trying to redirect to the same url.
>>
>> Try
>> $this->redirect('/files/upload');
>>
>> Or is it possible that upload() is redirecting back to '/files/index'?
>>
>> On Nov 13, 9:49 am, "[ ramesh ]"  wrote:
>> >Hi John,
>> >
>> >  function index() {
>> > //$this->pageTitle('BetterApps » ');
>> > $this->redirect ( array ('action' => 'upload' ) );
>> > }
>> >
>> > function upload() {
>> > $this->pageTitle = 'Upload';
>> > $this->set ( 'uuid', uniqid () );
>> > }
>> >
>> > when i type files/index i am getting the error message
>> >
>> > On Thu, Nov 12, 2009 at 10:52 PM, John Andersen <
>> j.andersen...@gmail.com>wrote:
>> >
>> >
>> >
>> > > Please show the code that handles the first action together with the
>> > > redirect statement, so that we may better be able to help you.
>> > > Enjoy,
>> > >   John
>> >
>> > > On Nov 12, 7:04 pm, "[ ramesh ]"  wrote:
>> > > > Hi,
>> >
>> > > >i am getting started with cakephp, my application has one
>> controller
>> > > and
>> > > > 3 actions, submitting a form on first action takes user to second
>> action
>> > > and
>> > > > finally third action. after submitting the first form firefox is
>> showing
>> > > > this message - "The page isn't redirecting properly", i have tried
>> google
>> > > > but in vain. could you help me
>> >
>> > > > the full error is
>> >
>> > > > The page isn't redirecting properly
>> >
>> > > > Firefox has detected that the server is redirecting the request for
>> this
>> > > > address in a way that will never complete.
>> >
>> > > > Thanks
>> > > > /Ramesh Sakibanda/
>> >
>> > > --
>> >
>> > > You received this message because you are subscribed to the Google
>> Groups
>> > > "CakePHP" group.
>> > > To post to this group, send email to cake-...@googlegroups.com.
>> > > To unsubscribe from this group, send email to
>> > > cake-php+unsubscr...@googlegroups.com
>> 
>> >
>> > > .
>> > > For more options, visit this group at
>> > >http://groups.google.com/group/cake-php?hl=.
>> >
>> > --
>> > /Ramesh Sakibanda/
>>
>> --
>>
>> You received this message because you are subscribed to the Google Groups
>> "CakePHP" group.
>> To post to this group, send email to cake-...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> cake-php+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=.
>>
>>
>>
>
>
> --
> /Ramesh Sakibanda/
>
> --
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=.
>

--

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




Re: Hiding an element based on data returned in Ajax request

2009-11-13 Thread David Roda
I'm not sure what your $ajax->div tags are doing because I can't locate that
method in the documentation.

To expand on what John said, you will need to add a value to your $options
array in the AjaxHelper method which requests the function

without any other options it would look something like this

$options = array('complete'=>'if(CHECK IF AJAX RETURNED NULL)
$("style").hide();');

the placement of the $options array parameter depends on the Ajax method, so
check http://book.cakephp.org/view/212/Methods to find out where this value
goes.

Be sure to note the *double quotes* around the $("style") .  This is to keep
from breaking the single quotes around the PHP method.  You could also do
something like $(\'style\').hide();

I hope this helps,

Dave

On Fri, Nov 13, 2009 at 4:32 PM, John Andersen wrote:

> In your javascript which handles the ajax result, just find the node
> (your  element) and set the display property to none.
> Enjoy,
>John
>
> On Nov 13, 7:28 pm, lauraw  wrote:
> > I have a row that includes a form selection of product styles and is
> > being updated via an ajax->observeField. The update is working great,
> > but I would like to be able to hide the row if no styles are returned
> > by the Ajax request.
> >
> > My view code is:
> >
> > 
> > Product Style:
> > 
> >  > echo $ajax->div('pstyle_div');
> > echo
> $form->select('Product.product_style_id',
> >
> array($pstyle_options),
> > null,
> > array('id' =>
> 'pstyle_sel'),
> > null);
> > echo $ajax->divEnd('pstyle_div');
> > ?>
> > 
> > 
> >
> > I'd like to hide the  element above if $pstyle_options
> > is empty.
> >
> > Does anyone know a good way to do this?
> > Thanks!
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=.
>
>
>

--

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




Component cannot import vendor files

2009-11-13 Thread [ ramesh ]
I have a component like this

App::import('Vendor', 'Twitter', array('file' =>
'twitter'.DS.'EpiCurl.php'));
App::import('Vendor', 'Twitter', array('file' =>
'twitter'.DS.'EpiOAuth.php'));
App::import('Vendor', 'Twitter', array('file' =>
'twitter'.DS.'EpiTwitter.php'));

class TwitterComponent extends Component {
function getAuthenticationURL() {
$twitter = new EpiTwitter(Configure::read('twitter.consumerKey'),
Configure::read('twitter.consumerSecret'));
$authenticateURL = $twitter->getAuthenticateUrl();
return $authenticateURL;
}
}

i am getting the following error when i try to access this component
"*Fatal error*: Class 'EpiOAuth' not found in *
D:\wamp\www\fly\app\controllers\components\twitter.php* on line *14*"

thess files are located in /app/vendors/twitter folder


Thanks
/Ramesh Sakibanda/

--

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




Re: Auth + cache don't seem to work together

2009-11-13 Thread vlad
Yes! It works fine now. All I did was added 'index' => array
('callbacks' => true, 'duration' => 31000) to $cacheAction array.

Thank you very much,

Vlad

On Nov 13, 4:26 pm, calzone  wrote:
> it MIGHT be related to the problem I just posted about:
>
> http://groups.google.com/group/cake-php/browse_thread/thread/53dfabff...
>
> I logged a bug, which has since been closed due to the feature of
> enabling callbacks as part of the cache configuration:
>
> http://code.cakephp.org/tickets/view/298
>
> "You need to enable the 'callbacks' => true option for the cache
> helper.
> var $cacheAction = array(
>     'index' => array('callbacks' => true, 'duration' => 31000)
> );
> With callbacks enabled, constructClasses(), beforeFilter(), and
> component, initialize() and startup() callbacks will be fired in the
> correct order. I'll add this to the documentation as its currently
> missing. Callbacks need to be manually enabled as they slow down
> cached pages."
>
> On Nov 13, 12:51 pm, vlad  wrote:
>
> > I am a newbie in CakePHP and hope somebody knows what I'm doing wrong.
> > I have a simple database (MySQL) with a few tables. Each table has a
> > corresponding model in CakePHP. Everything is scaffolded and that's
> > all I'm using for now. It all works fine. I can add cache
> > (uncommenting the line in core+casheaction in controller) and it works
> > fine as well. I can separately (no cache) add auth and it all works
> > fine: I can login and logout when nedded and get redirected to
> > appropriate pages.
> > But, what doesn't work is when I try to use both cache and auth. What
> > happens in this case is I get the login page when trying to use an
> > action that is only allowed for loggedin users and then I cannot
> > login. Meaning it stays on the login page whatever I do. It doesn't
> > complain or anything about the password, but doesn't let me to go to,
> > say, edit page.
>
> > Thanks

--

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




Re: Hiding an element based on data returned in Ajax request

2009-11-13 Thread John Andersen
In your javascript which handles the ajax result, just find the node
(your  element) and set the display property to none.
Enjoy,
   John

On Nov 13, 7:28 pm, lauraw  wrote:
> I have a row that includes a form selection of product styles and is
> being updated via an ajax->observeField. The update is working great,
> but I would like to be able to hide the row if no styles are returned
> by the Ajax request.
>
> My view code is:
>
> 
>         Product Style:
>         
>                                                          echo $ajax->div('pstyle_div');
>                                         echo 
> $form->select('Product.product_style_id',
>                                                         
> array($pstyle_options),
>                                                         null,
>                                                         array('id' => 
> 'pstyle_sel'),
>                                                         null);
>                                         echo $ajax->divEnd('pstyle_div');
>                 ?>
>         
> 
>
> I'd like to hide the  element above if $pstyle_options
> is empty.
>
> Does anyone know a good way to do this?
> Thanks!

--

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




Re: Caching and requireSecure

2009-11-13 Thread calzone
For closure within this forum, here is the resolution to the bug
filing:

"You need to enable the 'callbacks' => true option for the cache
helper.
var $cacheAction = array(
'index' => array('callbacks' => true, 'duration' => 31000)
);
With callbacks enabled, constructClasses(), beforeFilter(), and
component, initialize() and startup() callbacks will be fired in the
correct order. I'll add this to the documentation as its currently
missing. Callbacks need to be manually enabled as they slow down
cached pages."


On Nov 13, 10:06 am, calzone  wrote:
> bug reported
>
> http://code.cakephp.org/tickets/view/298
>
> On Nov 12, 11:08 pm, calzone  wrote:
>
>
>
> > I should add that the same problem exists in the opposite direction,
> > meaning if you have code that forces http in the app_controller, it
> > will fail if the page is cached.
>
> > This is a problem if you have a site where most of it is http and only
> > one or two pages need to be https.  You either live with people
> > staying on https after they've visited the secure page, and robbing
> > you of performance, or else you need to code a whole new layout just
> > for the ssl page so that all outbound links have full paths with http
> > in them.  Or else you have to make your regular layout use only
> > absolute paths in the first place.  None of these is ideal.
>
> > Surely someone has run into this problem and figured a clever
> > workaround?
>
> > On Nov 12, 8:04 pm, calzone  wrote:
>
> > > So it looks like if you use this well documented method:
>
> > > $this->Security->blackHoleCallback = 'forceSSL';
> > > $this->Security->requireSecure();
>
> > > And then implement caching on the page. People can access the cached
> > > page through regular http.
>
> > > Is this by design? If not has anyone else run into this and found a
> > > workaround that doesn't involve turning off caching for the page?

--

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




Re: Auth + cache don't seem to work together

2009-11-13 Thread calzone
it MIGHT be related to the problem I just posted about:

http://groups.google.com/group/cake-php/browse_thread/thread/53dfabff727dda78#

I logged a bug, which has since been closed due to the feature of
enabling callbacks as part of the cache configuration:

http://code.cakephp.org/tickets/view/298

"You need to enable the 'callbacks' => true option for the cache
helper.
var $cacheAction = array(
'index' => array('callbacks' => true, 'duration' => 31000)
);
With callbacks enabled, constructClasses(), beforeFilter(), and
component, initialize() and startup() callbacks will be fired in the
correct order. I'll add this to the documentation as its currently
missing. Callbacks need to be manually enabled as they slow down
cached pages."



On Nov 13, 12:51 pm, vlad  wrote:
> I am a newbie in CakePHP and hope somebody knows what I'm doing wrong.
> I have a simple database (MySQL) with a few tables. Each table has a
> corresponding model in CakePHP. Everything is scaffolded and that's
> all I'm using for now. It all works fine. I can add cache
> (uncommenting the line in core+casheaction in controller) and it works
> fine as well. I can separately (no cache) add auth and it all works
> fine: I can login and logout when nedded and get redirected to
> appropriate pages.
> But, what doesn't work is when I try to use both cache and auth. What
> happens in this case is I get the login page when trying to use an
> action that is only allowed for loggedin users and then I cannot
> login. Meaning it stays on the login page whatever I do. It doesn't
> complain or anything about the password, but doesn't let me to go to,
> say, edit page.
>
> Thanks

--

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




Re: Displaying data from unrelated models

2009-11-13 Thread John Andersen
I would consider using elements for presenting the "system
preferences" and the "navigation", then use requestAction to retrieve
the data to present in each element. I would then consider turning on
the cache for these elements, depending on how long their content
stays the same.
Enjoy,
   John

On Nov 13, 9:17 am, jburns  wrote:
> What is the general recommendation if you want to access and show data
> from completely unrelated models from the current model - for example
> system preferences or navigation information - and show that data
> based on passed parameters so that it is dynamic?

--

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




Auth + cache don't seem to work together

2009-11-13 Thread vlad
I am a newbie in CakePHP and hope somebody knows what I'm doing wrong.
I have a simple database (MySQL) with a few tables. Each table has a
corresponding model in CakePHP. Everything is scaffolded and that's
all I'm using for now. It all works fine. I can add cache
(uncommenting the line in core+casheaction in controller) and it works
fine as well. I can separately (no cache) add auth and it all works
fine: I can login and logout when nedded and get redirected to
appropriate pages.
But, what doesn't work is when I try to use both cache and auth. What
happens in this case is I get the login page when trying to use an
action that is only allowed for loggedin users and then I cannot
login. Meaning it stays on the login page whatever I do. It doesn't
complain or anything about the password, but doesn't let me to go to,
say, edit page.

Thanks

--

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




Re: Upload a file using cakePHP

2009-11-13 Thread Ashu
Ok,

I guess once i have the path to the file, I can open/read it the
controller.

Thanks,

On Nov 12, 9:47 am, Miles J  wrote:
> No it doesn't have the image data itself, it just gives you a path to
> where your image was uploaded.
>
> On Nov 11, 8:47 pm, Ashu  wrote:
>
>
>
> > Reading your link I noticed
>
> > 
> > On a successfulupload, the $data variable will be a populated array
> > with the values for the uploaded files filesize, name, extension, mime
> > group, destination path,uploadtime and width/height (if an image).
> > You can use this data to output text on the frontend, or save data to
> > a database.
> > 
>
> > So, will $data also contain the contents of the File being uploaded,
> > so I can start parsing it. Sorry if I am being dense here.
>
> > On Nov 9, 3:09 pm, Miles J  wrote:
>
> > > You cannot do that if you do theuploadmodel behavior, but you can
> > > manually do it with theuploadcomponent.
>
> > > On Nov 9, 2:31 pm, Ashu  wrote:
>
> > > > Miles thanks for the link.
>
> > > > Will I be able touploada File(Bookmarks.xml) and parse the data as
> > > > "Title","Url", from the file before I canuploadmy Bookmarks Model.
>
> > > > On Nov 9, 9:34 am, Miles J  wrote:
>
> > > > > My uploader plugin allows you to attach uploads to a model, so its
> > > > > automatically done through a behavior.
>
> > > > >http://www.milesj.me/resources/script/uploader-plugin#Attaching-Files...
>
> > > > > On Nov 9, 9:03 am, Ashu  wrote:
>
> > > > > > Hello guys,
>
> > > > > > I have a model for Bookmarks, that a user can add/edit/delete from 
> > > > > > the
> > > > > > web UI. Now, I want to add the functionality to be able touploada
> > > > > > file(bookmarks from FF, Chrome) that is in html format. I have see a
> > > > > > couple of implementations/examples online for uploading a file.
>
> > > > > > In my case, I would like toupload, parse and then populate my
> > > > > > existing Bookmark model. What do you guys suggest ? Create a new
> > > > > >uploadmodel, or . i am looking for suggestion 
>
> > > > > > Thanks

--

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




Re: Displaying data from unrelated models

2009-11-13 Thread Marcelo Andrade
On Fri, Nov 13, 2009 at 3:06 PM, Scott Dahl  wrote:
> $this->loadModel('ModelName');
> $results = $this->ModelName->find('list');

"loadModel" is deprecated.  Use
App::import('model', 'ModelName');
instead.

Best regards.

--
MARCELO DE F. ANDRADE
Belem, PA, Amazonia, Brazil
Linux User #221105

--

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




Re: Help! The page isn't redirecting properly

2009-11-13 Thread [ ramesh ]
No it's not working, and upload is not redirecting back to index, i suspect
is there anything todo with routes?

On Fri, Nov 13, 2009 at 10:09 PM, wfisk  wrote:

> It sounds like its trying to redirect to the same url.
>
> Try
> $this->redirect('/files/upload');
>
> Or is it possible that upload() is redirecting back to '/files/index'?
>
> On Nov 13, 9:49 am, "[ ramesh ]"  wrote:
> >Hi John,
> >
> >  function index() {
> > //$this->pageTitle('BetterApps » ');
> > $this->redirect ( array ('action' => 'upload' ) );
> > }
> >
> > function upload() {
> > $this->pageTitle = 'Upload';
> > $this->set ( 'uuid', uniqid () );
> > }
> >
> > when i type files/index i am getting the error message
> >
> > On Thu, Nov 12, 2009 at 10:52 PM, John Andersen  >wrote:
> >
> >
> >
> > > Please show the code that handles the first action together with the
> > > redirect statement, so that we may better be able to help you.
> > > Enjoy,
> > >   John
> >
> > > On Nov 12, 7:04 pm, "[ ramesh ]"  wrote:
> > > > Hi,
> >
> > > >i am getting started with cakephp, my application has one
> controller
> > > and
> > > > 3 actions, submitting a form on first action takes user to second
> action
> > > and
> > > > finally third action. after submitting the first form firefox is
> showing
> > > > this message - "The page isn't redirecting properly", i have tried
> google
> > > > but in vain. could you help me
> >
> > > > the full error is
> >
> > > > The page isn't redirecting properly
> >
> > > > Firefox has detected that the server is redirecting the request for
> this
> > > > address in a way that will never complete.
> >
> > > > Thanks
> > > > /Ramesh Sakibanda/
> >
> > > --
> >
> > > You received this message because you are subscribed to the Google
> Groups
> > > "CakePHP" group.
> > > To post to this group, send email to cake-...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > cake-php+unsubscr...@googlegroups.com
> 
> >
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/cake-php?hl=.
> >
> > --
> > /Ramesh Sakibanda/
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=.
>
>
>


-- 
/Ramesh Sakibanda/

--

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




Re: **Various** issues with extended characters.

2009-11-13 Thread Julia
Thanks John, this solved my problem.
Many thanks to taking time and hepling me out, my pilot is now
complete.

Many many many thanks!

Ju-

--

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




Re: cookie data corrupted

2009-11-13 Thread Larry E. Masters aka PhpNut
I am curious if you are using Suhosin php extension?

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Fri, Nov 13, 2009 at 12:25 PM, Quess  wrote:

> I have exactly the same problem. On developing server everything works
> like a charm but on production encrypted cookies return values quite
> different than has been written.
> Any help would be very appreciate. :)
>
> Cheers,
> Quess
>
> On Nov 2, 1:17 pm, tobi_one  wrote:
> > Hi,
> >
> > I played around with this a little more. It turned out that the
> > problem is tied to the standard encryption of the cookie.
> > If I turn encryption off, it works. I didn't notice that in the first
> > place, because the old cookies were not deleted...
> >
> > I encrypt the values now myself, as a work-around, but still
> > interested in finding out what causes this problem in the first place!
> >
> > Cheers,
> > tobi_one
> >
> > On 2 Nov., 08:59, tobi_one  wrote:
> >
> >
> >
> > > Hi John,
> >
> > > thanks for your response!
> >
> > > I tried just a single key and it does not work either. I tried various
> > > cookie settings, but none of them seem to have an influence on this
> > > issue. The current cookie settings I'm using is just
> >
> > > $this->Cookie->name = 'somename';
> > > $this->Cookie->time = '2 weeks'; // or '1 hour'
> >
> > > Maybe something on the serverside that could lead to this strange
> > > behaviour?
> >
> > > Cheers,tobi_one
> >
> > > On 30 Okt., 21:18, John Andersen  wrote:
> >
> > > > How is the cookie settings?
> > > > Have you tried with a simple test, using not Auth.User, but another
> > > > key?
> > > > Enjoy,
> > > >John
> >
> > > > On Oct 30, 6:32 pm,tobi_one wrote:
> >
> > > > > Hi,
> >
> > > > > I try to get cookies to work. I try to store data the usual way
> >
> > > > > $cookie['username'] = $this->data['User']['username'];
> > > > > $cookie['password'] = $this->data['User']['password'];
> > > > > $this->Cookie->write('Auth.User',$cookie,true, '+2 weeks');
> >
> > > > > when I retrieve the cookie data with
> >
> > > > > $cookie = $this->Cookie->read('Auth.User');
> > > > > debug($cookie);
> >
> > > > > the data is always corrupted.
> >
> > > > > Array
> > > > > (
> > > > > [Auth] => Array
> > > > > (
> > > > > [User] =>
> > > > > )
> >
> > > > > )
> >
> > > > > There is no difference whether I switch off encryption of the
> cookie
> > > > > data, by setting the third value of Cookie->write to false. Any
> ideas,
> > > > > what I am missing?
> >
> > > > > Cheers,
> > > > >tobi_one- Hide quoted text -
> >
> > - Show quoted text -
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=.
>
>
>

--

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




Re: Help! The page isn't redirecting properly

2009-11-13 Thread wfisk
It sounds like its trying to redirect to the same url.

Try
$this->redirect('/files/upload');

Or is it possible that upload() is redirecting back to '/files/index'?

On Nov 13, 9:49 am, "[ ramesh ]"  wrote:
>    Hi John,
>
>  function index() {
>         //$this->pageTitle('BetterApps » ');
>         $this->redirect ( array ('action' => 'upload' ) );
>     }
>
>     function upload() {
>         $this->pageTitle = 'Upload';
>         $this->set ( 'uuid', uniqid () );
>     }
>
> when i type files/index i am getting the error message
>
> On Thu, Nov 12, 2009 at 10:52 PM, John Andersen 
> wrote:
>
>
>
> > Please show the code that handles the first action together with the
> > redirect statement, so that we may better be able to help you.
> > Enjoy,
> >   John
>
> > On Nov 12, 7:04 pm, "[ ramesh ]"  wrote:
> > > Hi,
>
> > >    i am getting started with cakephp, my application has one controller
> > and
> > > 3 actions, submitting a form on first action takes user to second action
> > and
> > > finally third action. after submitting the first form firefox is showing
> > > this message - "The page isn't redirecting properly", i have tried google
> > > but in vain. could you help me
>
> > > the full error is
>
> > > The page isn't redirecting properly
>
> > > Firefox has detected that the server is redirecting the request for this
> > > address in a way that will never complete.
>
> > > Thanks
> > > /Ramesh Sakibanda/
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "CakePHP" group.
> > To post to this group, send email to cake-...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=.
>
> --
> /Ramesh Sakibanda/

--

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




Re: cookie data corrupted

2009-11-13 Thread Quess
I have exactly the same problem. On developing server everything works
like a charm but on production encrypted cookies return values quite
different than has been written.
Any help would be very appreciate. :)

Cheers,
Quess

On Nov 2, 1:17 pm, tobi_one  wrote:
> Hi,
>
> I played around with this a little more. It turned out that the
> problem is tied to the standard encryption of the cookie.
> If I turn encryption off, it works. I didn't notice that in the first
> place, because the old cookies were not deleted...
>
> I encrypt the values now myself, as a work-around, but still
> interested in finding out what causes this problem in the first place!
>
> Cheers,
> tobi_one
>
> On 2 Nov., 08:59, tobi_one  wrote:
>
>
>
> > Hi John,
>
> > thanks for your response!
>
> > I tried just a single key and it does not work either. I tried various
> > cookie settings, but none of them seem to have an influence on this
> > issue. The current cookie settings I'm using is just
>
> > $this->Cookie->name = 'somename';
> > $this->Cookie->time = '2 weeks'; // or '1 hour'
>
> > Maybe something on the serverside that could lead to this strange
> > behaviour?
>
> > Cheers,tobi_one
>
> > On 30 Okt., 21:18, John Andersen  wrote:
>
> > > How is the cookie settings?
> > > Have you tried with a simple test, using not Auth.User, but another
> > > key?
> > > Enjoy,
> > >    John
>
> > > On Oct 30, 6:32 pm,tobi_one wrote:
>
> > > > Hi,
>
> > > > I try to get cookies to work. I try to store data the usual way
>
> > > > $cookie['username'] = $this->data['User']['username'];
> > > > $cookie['password'] = $this->data['User']['password'];
> > > > $this->Cookie->write('Auth.User',$cookie,true, '+2 weeks');
>
> > > > when I retrieve the cookie data with
>
> > > > $cookie = $this->Cookie->read('Auth.User');
> > > > debug($cookie);
>
> > > > the data is always corrupted.
>
> > > > Array
> > > > (
> > > >     [Auth] => Array
> > > >         (
> > > >             [User] =>
> > > >         )
>
> > > > )
>
> > > > There is no difference whether I switch off encryption of the cookie
> > > > data, by setting the third value of Cookie->write to false. Any ideas,
> > > > what I am missing?
>
> > > > Cheers,
> > > >tobi_one- Hide quoted text -
>
> - Show quoted text -

--

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




Re: **Various** issues with extended characters.

2009-11-13 Thread John Andersen
Having tested my proposed solution, it works!
The only issue was that first test I had not saved the .po file in
UTF-8, so it didn't show the text at all including the  part of
the link.
Saving the .po file as UTF-8 solved the issue for me.
Please check that your .po files are UTF-8.
Enjoy,
   John

On Nov 13, 8:13 pm, Julia  wrote:
> I ran the debgger and you are right. But I don't know where to take it
> from here.
> Would it be the default charset in my editor?
> Would it be the encoding of the page in my HTML rendition?
> Would it be Configure::write('App.encoding', 'utf-8'); in
> bootstrap.php?
> Would it be a limitiation of my OS?
> I am lost here, I thing I tried pretty much everything ...
>
> Maybe you have pointers to some other forum posts I did not read, a
> step by step checklist ...
>
> I did not mean to I-will-switch "blackmail", really, I am just on a
> deadline and feel hopeless. And I am not talking about data conversion
> it-out of DB with different charsets, just displaying static hard-
> codded strings :-(
>
> Thanks.

--

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




Re: **Various** issues with extended characters.

2009-11-13 Thread Julia
I ran the debgger and you are right. But I don't know where to take it
from here.
Would it be the default charset in my editor?
Would it be the encoding of the page in my HTML rendition?
Would it be Configure::write('App.encoding', 'utf-8'); in
bootstrap.php?
Would it be a limitiation of my OS?
I am lost here, I thing I tried pretty much everything ...

Maybe you have pointers to some other forum posts I did not read, a
step by step checklist ...

I did not mean to I-will-switch "blackmail", really, I am just on a
deadline and feel hopeless. And I am not talking about data conversion
it-out of DB with different charsets, just displaying static hard-
codded strings :-(

Thanks.

--

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




Re: Caching and requireSecure

2009-11-13 Thread calzone
bug reported

http://code.cakephp.org/tickets/view/298

On Nov 12, 11:08 pm, calzone  wrote:
> I should add that the same problem exists in the opposite direction,
> meaning if you have code that forces http in the app_controller, it
> will fail if the page is cached.
>
> This is a problem if you have a site where most of it is http and only
> one or two pages need to be https.  You either live with people
> staying on https after they've visited the secure page, and robbing
> you of performance, or else you need to code a whole new layout just
> for the ssl page so that all outbound links have full paths with http
> in them.  Or else you have to make your regular layout use only
> absolute paths in the first place.  None of these is ideal.
>
> Surely someone has run into this problem and figured a clever
> workaround?
>
> On Nov 12, 8:04 pm, calzone  wrote:
>
>
>
> > So it looks like if you use this well documented method:
>
> > $this->Security->blackHoleCallback = 'forceSSL';
> > $this->Security->requireSecure();
>
> > And then implement caching on the page. People can access the cached
> > page through regular http.
>
> > Is this by design? If not has anyone else run into this and found a
> > workaround that doesn't involve turning off caching for the page?

--

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




Re: Displaying data from unrelated models

2009-11-13 Thread Scott Dahl
$this->loadModel('ModelName');
$results = $this->ModelName->find('list');

On Thu, Nov 12, 2009 at 11:17 PM, jburns  wrote:

> What is the general recommendation if you want to access and show data
> from completely unrelated models from the current model - for example
> system preferences or navigation information - and show that data
> based on passed parameters so that it is dynamic?
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=.
>
>
>

--

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




RE: Blank line before views rendering

2009-11-13 Thread Dave
Ok...I just read it wrong.

I thought you were saying remove "?>" entirely, not "?>(space)" 

My bad.

Dave

-Original Message-
From: calzone [mailto:calz...@gmail.com] 
Sent: November-13-09 1:47 PM
To: CakePHP
Subject: Re: Blank line before views rendering

I have found this problem crops up with carriage returns after the closing
?> in any model file.

Go through all your model files and make sure there is no more than 1
carriage returning following the last ?>

On Nov 13, 8:31 am, "Dave"  wrote:
> What do you mean by remove ?>
>
> I have never heard of this before. Can you explain a little more or a 
> link where I can read more about this?
>
> Thanks,
>
> Dave
>
>   _
>
> From: Pablo Viojo [mailto:pvi...@gmail.com]
> Sent: November-13-09 11:40 AM
> To: cake-php@googlegroups.com
> Subject: Re: Blank line before views rendering
>
> Anyway, it's recommended to remove ?> in controllers, models and any 
> other .php file
>
> Regards,
>
> Pablo Viojo
> pvi...@gmail.comhttp://pviojo.net
>
> ¿Que necesitas?http://needish.com
>
> On Fri, Nov 13, 2009 at 4:28 AM, PDEagle  wrote:
>
> Hi guys,
>
> I'm creating a blog system with cake, and now I encounted a problem 
> which has puzzled me for days. When the views rendering, there is 
> sometimes a blank line at the top, e.g. the layout looks like:
>
> 
>         
>
> and the view file looks like:
>
> ...
>
> There would be a blank line inserting before eg2. The odd thing is, 
> sometimes there is such a line, and sometimes there is no. I have 
> checked out that in all controller files and model files, there are no 
> space before . In fact, I doubt that the problem 
> arises because of the encoding way of the ctp file. Take my posts/ 
> admin_add.ctp as an example, when saves it as UTF-8, the secrect blank 
> line appears, while saves it as ANSI, the line disappears. However, 
> there is another ctp file, it is also encoded as UTF-8 and it can 
> render in the right way.
>
> Has anyone encounted the same problem? Or can anyone give me some 
> hint? 3x~
>
> --
>
> You received this message because you are subscribed to the Google 
> Groups "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com
>  .
> For more options, visit this group
athttp://groups.google.com/group/cake-php?hl=.
>
> --
>
> You received this message because you are subscribed to the Google 
> Groups "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> For more options, visit this group
athttp://groups.google.com/group/cake-php?hl=.
>
> No virus found in this incoming message.
> Checked by AVG -www.avg.com
> Version: 9.0.707 / Virus Database: 270.14.60/2496 - Release Date: 
> 11/13/09 04:24:00

--

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


No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.707 / Virus Database: 270.14.60/2496 - Release Date: 11/13/09
04:24:00

--

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




Hiding an element based on data returned in Ajax request

2009-11-13 Thread lauraw
I have a row that includes a form selection of product styles and is
being updated via an ajax->observeField. The update is working great,
but I would like to be able to hide the row if no styles are returned
by the Ajax request.

My view code is:


Product Style:

div('pstyle_div');
echo 
$form->select('Product.product_style_id',
array($pstyle_options),
null,
array('id' => 
'pstyle_sel'),
null);
echo $ajax->divEnd('pstyle_div');
?>



I'd like to hide the  element above if $pstyle_options
is empty.

Does anyone know a good way to do this?
Thanks!

--

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




Re: Blank line before views rendering

2009-11-13 Thread calzone
I have found this problem crops up with carriage returns after the
closing ?> in any model file.

Go through all your model files and make sure there is no more than 1
carriage returning following the last ?>

On Nov 13, 8:31 am, "Dave"  wrote:
> What do you mean by remove ?>
>
> I have never heard of this before. Can you explain a little more or a link
> where I can read more about this?
>
> Thanks,
>
> Dave
>
>   _  
>
> From: Pablo Viojo [mailto:pvi...@gmail.com]
> Sent: November-13-09 11:40 AM
> To: cake-php@googlegroups.com
> Subject: Re: Blank line before views rendering
>
> Anyway, it's recommended to remove ?> in controllers, models and any other
> .php file
>
> Regards,
>
> Pablo Viojo
> pvi...@gmail.comhttp://pviojo.net
>
> ¿Que necesitas?http://needish.com
>
> On Fri, Nov 13, 2009 at 4:28 AM, PDEagle  wrote:
>
> Hi guys,
>
> I'm creating a blog system with cake, and now I encounted a problem
> which has puzzled me for days. When the views rendering, there is
> sometimes a blank line at the top, e.g. the layout looks like:
>
> 
>        
> 
>
> and the view file looks like:
>
> ...
>
> There would be a blank line inserting before eg2. The odd thing is,
> sometimes there is such a line, and sometimes there is no. I have
> checked out that in all controller files and model files, there are no
> space before . In fact, I doubt that the problem
> arises because of the encoding way of the ctp file. Take my posts/
> admin_add.ctp as an example, when saves it as UTF-8, the secrect blank
> line appears, while saves it as ANSI, the line disappears. However,
> there is another ctp file, it is also encoded as UTF-8 and it can
> render in the right way.
>
> Has anyone encounted the same problem? Or can anyone give me some
> hint? 3x~
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com
>  .
> For more options, visit this group 
> athttp://groups.google.com/group/cake-php?hl=.
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/cake-php?hl=.
>
> No virus found in this incoming message.
> Checked by AVG -www.avg.com
> Version: 9.0.707 / Virus Database: 270.14.60/2496 - Release Date: 11/13/09
> 04:24:00

--

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




RE: Blank line before views rendering

2009-11-13 Thread Dave
What do you mean by remove ?>
 
I have never heard of this before. Can you explain a little more or a link
where I can read more about this?
 
Thanks,
 
Dave

  _  

From: Pablo Viojo [mailto:pvi...@gmail.com] 
Sent: November-13-09 11:40 AM
To: cake-php@googlegroups.com
Subject: Re: Blank line before views rendering



Anyway, it's recommended to remove ?> in controllers, models and any other
.php file



Regards,

Pablo Viojo
pvi...@gmail.com
http://pviojo.net

¿Que necesitas?
http://needish.com



On Fri, Nov 13, 2009 at 4:28 AM, PDEagle  wrote:


Hi guys,

I'm creating a blog system with cake, and now I encounted a problem
which has puzzled me for days. When the views rendering, there is
sometimes a blank line at the top, e.g. the layout looks like:


   


and the view file looks like:

...

There would be a blank line inserting before eg2. The odd thing is,
sometimes there is such a line, and sometimes there is no. I have
checked out that in all controller files and model files, there are no
space before . In fact, I doubt that the problem
arises because of the encoding way of the ctp file. Take my posts/
admin_add.ctp as an example, when saves it as UTF-8, the secrect blank
line appears, while saves it as ANSI, the line disappears. However,
there is another ctp file, it is also encoded as UTF-8 and it can
render in the right way.

Has anyone encounted the same problem? Or can anyone give me some
hint? 3x~

--

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





--

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


No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.707 / Virus Database: 270.14.60/2496 - Release Date: 11/13/09
04:24:00


--

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




Re: Where should this code go?

2009-11-13 Thread Sam Sherlock
I think its in two parts a component & then with the views the helper

and you make these two work in tandem; since these are coupled a plugin with
a comp & helper might be the way

- S


2009/11/13 Jeremy Burns 

> Yup - I've got that, but the data I want to access is outside of the
> current MVC - it's navigation based so data so system wide. I'd call this
> function from just about every MVC, so want to put it in one place (DRY).
>
> Jeremy Burns
> jeremybu...@me.com
>
> On 13 Nov 2009, at 15:47, Marcelo Andrade wrote:
>
> > On Fri, Nov 13, 2009 at 12:38 PM, Jeremy Burns 
> wrote:
> >> Thanks - can a helper interrogate the database (which is a key
> requirement)?
> >
> > According to MVC, this is extremelly not recommended.
> > You should query the database in your controller and just
> > pass the fetched results to your view.
> >
> > Best regards.
> >
> > --
> > MARCELO DE F. ANDRADE
> > Belem, PA, Amazonia, Brazil
> > Linux User #221105
> >
> > --
> >
> > You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> > To post to this group, send email to cake-...@googlegroups.com.
> > To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com
> .
> > For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=.
> >
> >
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=.
>
>
>

--

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




Re: How set other fieldname for "parent_id" in Tree Behavior

2009-11-13 Thread Aldo
Thanks!
That's what I was looking for.

On 13 Nov., 16:19, AD7six  wrote:
> On 13 nov, 16:12, Aldo  wrote:
>
> > I already did, but was not able to find an answer to my question.
> > In the Tree behavior documentation there is only mentioned tu use the
> > filed name "parent_id", but not how to change this setting.
>
> Too fast..
>
> Maybe I'm misunderstanding your question a bit.
>
> You want to know how to configure a behavior, they're all configured
> the same way:
>
> var $actsAs = array('Behavior' => array('option' => 'override'),
> 'NoOverridesNeeded', etc.);
>
> the key you're talking about is parent, and you can override it. if
> hte docs don't convey this meaning - please edit the page so it's
> clear to you (and therefore, hopefully anyone else).
>
> hth,
>
> AD

--

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




Re: Delete confirm

2009-11-13 Thread Jeremy Burns
Thanks - good approach.

Jeremy Burns
jeremybu...@me.com
(Skype) +44 208 123 3822 (jeremy_burns)
(m) +44 7973 481949
(h) +44 208 530 7573

On 13 Nov 2009, at 15:44, Marcelo Andrade wrote:

> On Fri, Nov 13, 2009 at 4:14 AM, jburns  wrote:
>> I am not happy with the javascript delete confirm method, as it
>> doesn't appear if javascript is disabled and the delete happens with
>> no checking. I want to ask the user to confirm that he wants to delete
>> a record, and would like to do something like this:
>> 
>> 1. User clicks a delete link, which points at the delete action.
>> 2. The delete action redirects the user to the view screen for the
>> record with a flash message asking him to confirm the delete, and
>> links to confirm or reject the deletion.
>> 3. If the user clicks the confirm link they are redirected back to the
>> delete action but this time with a parameter that shows the action has
>> been confirmed, and the deletion takes place.
>> 4. The parameter identified in (3) is not present in stage (2), which
>> is how (2) knows to direct to the view screen and ask for
>> confirmation, rather than just processing the delete.
>> 5. I am reusing the view screen and action in (2) so that I don't have
>> to build new confirm_delete screens and actions (I would need to build
>> about 60 of them).
> 
> It's not so hard to do it with ordinary $html->link.
> Point the delete link to a question action that do what
> you want (a link to the real delete action and another
> to go back).
> 
> If you can realize how to do it this way, so you could
> encapsulate the all stuff creating your own helper,
> overriding the $html->link method.
> 
> Best regards.
> 
> --
> MARCELO DE F. ANDRADE
> Belem, PA, Amazonia, Brazil
> Linux User #221105
> 
> --
> 
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to 
> cake-php+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=.
> 
> 

--

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




Re: Delete confirm

2009-11-13 Thread Jeremy Burns
Thanks very much - I'll do some reading.

Jeremy Burns
jeremybu...@me.com
(Skype) +44 208 123 3822 (jeremy_burns)
(m) +44 7973 481949
(h) +44 208 530 7573

On 13 Nov 2009, at 15:44, AD7six wrote:

> 
> 
> On 13 nov, 16:30, jburns  wrote:
>> No responses on this - any takers?
> 
> Try this for background: http://www.ad7six.com/e/67
> This (the component is in the mi_plugin branch) for a ~pnp solution,
> but probably a bit too integrated/dependent:
> http://code.assembla.com/mi/subversion/nodes/branches/mi_plugin/controllers/components/swiss_army.php#ln302
> 
> or simply:
> 
> function delete($id) {
> if (!$this->data) {
>  $this->set('referer', $this->referer()); // pick this up in the
> view, and add it to the form
>  return $this->render('/elements/confirm_delete');
> }
> ... actually delete ..
> $this->redirect($this->data[$this->modelAlias]['referer']); // where
> they came from
> }
> 
> hth,
> 
> AD
> 
> --
> 
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to 
> cake-php+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=.
> 
> 

--

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




Re: Delete confirm

2009-11-13 Thread Marcelo Andrade
On Fri, Nov 13, 2009 at 4:14 AM, jburns  wrote:
> I am not happy with the javascript delete confirm method, as it
> doesn't appear if javascript is disabled and the delete happens with
> no checking. I want to ask the user to confirm that he wants to delete
> a record, and would like to do something like this:
>
> 1. User clicks a delete link, which points at the delete action.
> 2. The delete action redirects the user to the view screen for the
> record with a flash message asking him to confirm the delete, and
> links to confirm or reject the deletion.
> 3. If the user clicks the confirm link they are redirected back to the
> delete action but this time with a parameter that shows the action has
> been confirmed, and the deletion takes place.
> 4. The parameter identified in (3) is not present in stage (2), which
> is how (2) knows to direct to the view screen and ask for
> confirmation, rather than just processing the delete.
> 5. I am reusing the view screen and action in (2) so that I don't have
> to build new confirm_delete screens and actions (I would need to build
> about 60 of them).

It's not so hard to do it with ordinary $html->link.
Point the delete link to a question action that do what
you want (a link to the real delete action and another
to go back).

If you can realize how to do it this way, so you could
encapsulate the all stuff creating your own helper,
overriding the $html->link method.

Best regards.

--
MARCELO DE F. ANDRADE
Belem, PA, Amazonia, Brazil
Linux User #221105

--

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




Re: Where should this code go?

2009-11-13 Thread Jeremy Burns
Yup - I've got that, but the data I want to access is outside of the current 
MVC - it's navigation based so data so system wide. I'd call this function from 
just about every MVC, so want to put it in one place (DRY).

Jeremy Burns
jeremybu...@me.com

On 13 Nov 2009, at 15:47, Marcelo Andrade wrote:

> On Fri, Nov 13, 2009 at 12:38 PM, Jeremy Burns  wrote:
>> Thanks - can a helper interrogate the database (which is a key requirement)?
> 
> According to MVC, this is extremelly not recommended.
> You should query the database in your controller and just
> pass the fetched results to your view.
> 
> Best regards.
> 
> --
> MARCELO DE F. ANDRADE
> Belem, PA, Amazonia, Brazil
> Linux User #221105
> 
> --
> 
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to 
> cake-php+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=.
> 
> 

--

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




Re: Where should this code go?

2009-11-13 Thread Marcelo Andrade
On Fri, Nov 13, 2009 at 12:38 PM, Jeremy Burns  wrote:
> Thanks - can a helper interrogate the database (which is a key requirement)?

According to MVC, this is extremelly not recommended.
You should query the database in your controller and just
pass the fetched results to your view.

Best regards.

--
MARCELO DE F. ANDRADE
Belem, PA, Amazonia, Brazil
Linux User #221105

--

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




Re: Delete confirm

2009-11-13 Thread AD7six


On 13 nov, 16:30, jburns  wrote:
> No responses on this - any takers?

Try this for background: http://www.ad7six.com/e/67
This (the component is in the mi_plugin branch) for a ~pnp solution,
but probably a bit too integrated/dependent:
http://code.assembla.com/mi/subversion/nodes/branches/mi_plugin/controllers/components/swiss_army.php#ln302

or simply:

function delete($id) {
 if (!$this->data) {
  $this->set('referer', $this->referer()); // pick this up in the
view, and add it to the form
  return $this->render('/elements/confirm_delete');
 }
 ... actually delete ..
 $this->redirect($this->data[$this->modelAlias]['referer']); // where
they came from
}

hth,

AD

--

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




Re: Delete confirm

2009-11-13 Thread AD7six


On 13 nov, 16:30, jburns  wrote:
> No responses on this - any takers?

ps no response in 8 hours - I'll remember that the next time I ask you
for something for free ;)

--

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




Re: Where should this code go?

2009-11-13 Thread Jeremy Burns
Thanks - can a helper interrogate the database (which is a key requirement)?

Jeremy Burns
jeremybu...@me.com
(Skype) +44 208 123 3822 (jeremy_burns)
(m) +44 7973 481949
(h) +44 208 530 7573

On 13 Nov 2009, at 15:37, Marcelo Andrade wrote:

> On Fri, Nov 13, 2009 at 12:25 PM, jburns  wrote:
>> No responses to this yet - any ideas please?
>> 
>> On Nov 11, 8:44 am, jburns  wrote:
>>> I want to write somecodethat can be passed some variables, then
>>> reads data from a table (menus) and produces some html (one or more
>>> ULs) to display as a dynamic and context sensitive navigation bar. The
>>> ULs will most probably be displayed in an element as they will appear
>>> on every view.
>>> 
>>> I'm not sure if thisshouldbe a plugin, a component or a helper. Some
>>> advice would be much appreciated.
> 
> I think if it outputs html code, it should be in a helper.
> 
> Best regards.
> 
> --
> MARCELO DE F. ANDRADE
> Belem, PA, Amazonia, Brazil
> Linux User #221105
> 
> --
> 
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to 
> cake-php+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=.
> 
> 

--

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




Re: Where should this code go?

2009-11-13 Thread Marcelo Andrade
On Fri, Nov 13, 2009 at 12:25 PM, jburns  wrote:
> No responses to this yet - any ideas please?
>
> On Nov 11, 8:44 am, jburns  wrote:
>> I want to write somecodethat can be passed some variables, then
>> reads data from a table (menus) and produces some html (one or more
>> ULs) to display as a dynamic and context sensitive navigation bar. The
>> ULs will most probably be displayed in an element as they will appear
>> on every view.
>>
>> I'm not sure if thisshouldbe a plugin, a component or a helper. Some
>> advice would be much appreciated.

I think if it outputs html code, it should be in a helper.

Best regards.

--
MARCELO DE F. ANDRADE
Belem, PA, Amazonia, Brazil
Linux User #221105

--

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




Re: Delete confirm

2009-11-13 Thread jburns
No responses on this - any takers?

On Nov 13, 7:14 am, jburns  wrote:
> I am not happy with the javascript delete confirm method, as it
> doesn't appear if javascript is disabled and the delete happens with
> no checking. I want to ask the user to confirm that he wants to delete
> a record, and would like to do something like this:
>
> 1. User clicks a delete link, which points at the delete action.
> 2. The delete action redirects the user to the view screen for the
> record with a flash message asking him to confirm the delete, and
> links to confirm or reject the deletion.
> 3. If the user clicks the confirm link they are redirected back to the
> delete action but this time with a parameter that shows the action has
> been confirmed, and the deletion takes place.
> 4. The parameter identified in (3) is not present in stage (2), which
> is how (2) knows to direct to the view screen and ask for
> confirmation, rather than just processing the delete.
> 5. I am reusing the view screen and action in (2) so that I don't have
> to build new confirm_delete screens and actions (I would need to build
> about 60 of them).
>
> I have looked for help on adding a parameter to the redirect action,
> but can't find an answer. I'd be grateful for some advice and
> recommendations, please.

--

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




Re: Where should this code go?

2009-11-13 Thread jburns
No responses to this yet - any ideas please?

On Nov 11, 8:44 am, jburns  wrote:
> I want to write somecodethat can be passed some variables, then
> reads data from a table (menus) and produces some html (one or more
> ULs) to display as a dynamic and context sensitive navigation bar. The
> ULs will most probably be displayed in an element as they will appear
> on every view.
>
> I'm not sure if thisshouldbe a plugin, a component or a helper. Some
> advice would be much appreciated.

--

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




Re: How set other fieldname for "parent_id" in Tree Behavior

2009-11-13 Thread Jeremy Burns
Try this:

var $actAs = array('Tree' => array('parent_id' => '[new_field_name]'));

Jeremy Burns
jeremybu...@me.com
(Skype) +44 208 123 3822 (jeremy_burns)
(m) +44 7973 481949
(h) +44 208 530 7573

On 13 Nov 2009, at 15:12, Aldo wrote:

> I already did, but was not able to find an answer to my question.
> In the Tree behavior documentation there is only mentioned tu use the
> filed name "parent_id", but not how to change this setting.
> 
> 
> On 13 Nov., 15:56, AD7six  wrote:
>> On 13 nov, 13:46, Aldo  wrote:
>> 
>>> Hello,
>> 
>>> I have already a table structure for a tree, where the field
>>> "parent_id" has another name. As other functions depend on this name I
>>> need to tell Cakes's Tree Behavior in which field it has to look for
>>> the parend ID.
>> 
>>> Any idea how I can achive this?
>> 
>>> Thanks!
>>> Aldo
>> 
>> I'd recommend reading about the Tree behavior 
>> here:http://book.cakephp.org/view/91/Tree
>> 
>> hth,
>> 
>> AD
> 
> --
> 
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to 
> cake-php+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=.
> 
> 

--

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




Re: How set other fieldname for "parent_id" in Tree Behavior

2009-11-13 Thread AD7six


On 13 nov, 16:12, Aldo  wrote:
> I already did, but was not able to find an answer to my question.
> In the Tree behavior documentation there is only mentioned tu use the
> filed name "parent_id", but not how to change this setting.

Too fast..

Maybe I'm misunderstanding your question a bit.

You want to know how to configure a behavior, they're all configured
the same way:

var $actsAs = array('Behavior' => array('option' => 'override'),
'NoOverridesNeeded', etc.);

the key you're talking about is parent, and you can override it. if
hte docs don't convey this meaning - please edit the page so it's
clear to you (and therefore, hopefully anyone else).

hth,

AD

--

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




Re: How set other fieldname for "parent_id" in Tree Behavior

2009-11-13 Thread AD7six


On 13 nov, 16:12, Aldo  wrote:
> I already did, but was not able to find an answer to my question.
> In the Tree behavior documentation there is only mentioned tu use the
> filed name "parent_id", but not how to change this setting.
>
http://book.cakephp.org/view/227/Requirements

--

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




Re: How set other fieldname for "parent_id" in Tree Behavior

2009-11-13 Thread Aldo
I already did, but was not able to find an answer to my question.
In the Tree behavior documentation there is only mentioned tu use the
filed name "parent_id", but not how to change this setting.


On 13 Nov., 15:56, AD7six  wrote:
> On 13 nov, 13:46, Aldo  wrote:
>
> > Hello,
>
> > I have already a table structure for a tree, where the field
> > "parent_id" has another name. As other functions depend on this name I
> > need to tell Cakes's Tree Behavior in which field it has to look for
> > the parend ID.
>
> > Any idea how I can achive this?
>
> > Thanks!
> > Aldo
>
> I'd recommend reading about the Tree behavior 
> here:http://book.cakephp.org/view/91/Tree
>
> hth,
>
> AD

--

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




Re: Blank line before views rendering

2009-11-13 Thread Pablo Viojo
Anyway, it's recommended to remove ?> in controllers, models and any other
.php file


Regards,

Pablo Viojo
pvi...@gmail.com
http://pviojo.net

¿Que necesitas?
http://needish.com


On Fri, Nov 13, 2009 at 4:28 AM, PDEagle  wrote:

> Hi guys,
>
> I'm creating a blog system with cake, and now I encounted a problem
> which has puzzled me for days. When the views rendering, there is
> sometimes a blank line at the top, e.g. the layout looks like:
>
> 
>
> 
>
> and the view file looks like:
>
> ...
>
> There would be a blank line inserting before eg2. The odd thing is,
> sometimes there is such a line, and sometimes there is no. I have
> checked out that in all controller files and model files, there are no
> space before . In fact, I doubt that the problem
> arises because of the encoding way of the ctp file. Take my posts/
> admin_add.ctp as an example, when saves it as UTF-8, the secrect blank
> line appears, while saves it as ANSI, the line disappears. However,
> there is another ctp file, it is also encoded as UTF-8 and it can
> render in the right way.
>
> Has anyone encounted the same problem? Or can anyone give me some
> hint? 3x~
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=.
>
>
>

--

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




Blank line before views rendering

2009-11-13 Thread PDEagle
Hi guys,

I'm creating a blog system with cake, and now I encounted a problem
which has puzzled me for days. When the views rendering, there is
sometimes a blank line at the top, e.g. the layout looks like:





and the view file looks like:

...

There would be a blank line inserting before eg2. The odd thing is,
sometimes there is such a line, and sometimes there is no. I have
checked out that in all controller files and model files, there are no
space before . In fact, I doubt that the problem
arises because of the encoding way of the ctp file. Take my posts/
admin_add.ctp as an example, when saves it as UTF-8, the secrect blank
line appears, while saves it as ANSI, the line disappears. However,
there is another ctp file, it is also encoded as UTF-8 and it can
render in the right way.

Has anyone encounted the same problem? Or can anyone give me some
hint? 3x~

--

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




Re: How set other fieldname for "parent_id" in Tree Behavior

2009-11-13 Thread AD7six


On 13 nov, 13:46, Aldo  wrote:
> Hello,
>
> I have already a table structure for a tree, where the field
> "parent_id" has another name. As other functions depend on this name I
> need to tell Cakes's Tree Behavior in which field it has to look for
> the parend ID.
>
> Any idea how I can achive this?
>
> Thanks!
> Aldo

I'd recommend reading about the Tree behavior here: 
http://book.cakephp.org/view/91/Tree

hth,

AD

--

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




Re: **Various** issues with extended characters.

2009-11-13 Thread AD7six


On 13 nov, 13:38, Julia  wrote:
> Thanks to all for your answers, however:-
>
> @John Andersen: I know the CakePHP book, section about
> Internationalizing your application (http://book.cakephp.org/view/162/
> Internationalizing-Your-Application):-
> I use __() function, .po files .etc...   I did not mention it to keep
> my initial post short. The wierd behaviour is the same either I use
> "direct" strings of use __()).

That's inevitable because it's functionally identical.
>
> @AD7six: Thanks but I am now familiar with this I am convinced the
> issue is not there, the pages are in the right encoding.
>
> After some more digging I did not resolve the issue but found out
> something even less reinsuring about the level of maturity of CakePHP
> code ...
> Look:-
>
> // Following displays "éàôù" OK
> echo $form->input('username', array('label' => "éàôù" ) );
>
> // Following displays "éàôù" OK
> echo $form->label("éàôù");
>
> // This does not display anything at all :-(
> link( "éàôù", array('controller' => 'users',
> 'action' => 'passwordreset'));
>
> // This does not display anything at all :-(
> echo $form->end("éàôù");

Invalid characters will cause that sort of problem.

>
> // Also as stated in my initial post none of my validations containing
> accented characters display at all which made me waist a lot of time
> thinking the issue was related to logic / codding  as opposed to silly
> "cosmetic" of a string simply refusing to display for unexplainable
> reasons.
>
> I guess I can show my demo on monday by removing any accented
> charcters, it should work OK but is not correct in Fench language and
> it will be noticed :-(
>
> Can you take a few minutes and try this on one of your existing forms
> to see if you have a spontanuous rational explanation?

I'd still suggest you start from: You're using none-UTF-8 chars in a
function expecting UTF-8 or vice versa.

As with many other users, I write internationalized (be it single
language but not English, or translated) apps in cake every day.

If you want to work in reverse find where in your call to $html->link
the title goes "missing" by following which functions get called until
you arrive at a PHP function. I.e. start here
http://code.cakephp.org/source/cake/libs/view/helpers/html.php#279

It will be no surprise if you end up here:
http://api.cakephp.org/view_source/basics.php/#l-197

> To be frank I am not that sure about Cake anymore, I fear other wierd
> similar issues make my team's life a nightmare if we go for it...

Ah the I-will-switch blackmail philosophy. I hear CI has a smiley
helper that's pretty hot.

hth,

AD

--

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




Re: Help on custom validator using preg_match

2009-11-13 Thread Julia
Sorry, you are right, I misspelt it.

Here is the way I call my rule

'rule' => array('latin9AlphaNumeric', false, array( '-', '\'' ) )
Results in the regexp "/[^A-Z¦¨´¸-\']/i".

The validation method is as follows:-

static function latin9AlphaNumeric($data, $digits, $chars = array( ) )
{

 // $data should contain a single element, the field being
validated.
 $target = array_pop($data);

 // Compile the regexp.
 $regex = '/[^A-Z' . $GLOBALS['LATIN_9_EXTCHARS_STRING'];//
LATIN_9_EXTCHARS_STRING  defined in startup.php bootstrap
 if ($digits === true) $regex .= '\\d';

 foreach ($chars as $char) {
 $regex .= $char;
 }

 $regex .= ']/i';

 // If preg_match returns 0 no offending chars were found, return
true.
 // In any other case return false.
 return preg_match($regex, $target) == 0 ? true : false;

   }


still "d'ocy" will return a validation error ...

If I run 'rule' => array('latin9AlphaNumeric', false, array( '-') )
Results in the regexp "/[^A-Z¦¨´¸-]/i".

(without '\'' ) the validation rule works, thus "d-ocy" works.

I suspect that ' is a very, very "special" character that must be
handled with more care, the escape character is not enough ...

Your thoughts? I am really stuck and not a regexp expert :-(

--

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




Re: saveAll - fieldList question

2009-11-13 Thread mattalexx
Any luck figuring this one out?

On Nov 5, 3:15 am, Raph  wrote:
> Hello,
>
> Let's say I have a model Model1 with fields 'name' and 'date' and I
> have a Model2 with field 'name'. Model1 is in relation 'hasMany' with
> Model2. How should I use saveAll() method with "fieldList" parameter
> if I only want to save all 'date' from Model1 and 'name' from Model2?
> It looks like in "fieldList" array only fields' names without models'
> names allowed i.e.
>
> This will work:
> $this->saveAll($data, array('fieldList' => array('date')));
>
> but this won't:
> $this->saveAll($data, array('fieldList' => array('date',
> 'Model2.0.name')));
>
> this won't either:
> $this->saveAll($data, array('fieldList' => array('date',
> 'Model2.name')));
>
> Any suggestions?
>
> --
> Raph

--

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




How set other fieldname for "parent_id" in Tree Behavior

2009-11-13 Thread Aldo
Hello,

I have already a table structure for a tree, where the field
"parent_id" has another name. As other functions depend on this name I
need to tell Cakes's Tree Behavior in which field it has to look for
the parend ID.

Any idea how I can achive this?

Thanks!
Aldo

--

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




Re: **Various** issues with extended characters.

2009-11-13 Thread Julia
Thanks to all for your answers, however:-

@John Andersen: I know the CakePHP book, section about
Internationalizing your application (http://book.cakephp.org/view/162/
Internationalizing-Your-Application):-
I use __() function, .po files .etc...   I did not mention it to keep
my initial post short. The wierd behaviour is the same either I use
"direct" strings of use __()).


@AD7six: Thanks but I am now familiar with this I am convinced the
issue is not there, the pages are in the right encoding.

After some more digging I did not resolve the issue but found out
something even less reinsuring about the level of maturity of CakePHP
code ...
Look:-

// Following displays "éàôù" OK
echo $form->input('username', array('label' => "éàôù" ) );

// Following displays "éàôù" OK
echo $form->label("éàôù");

// This does not display anything at all :-(
link( "éàôù", array('controller' => 'users',
'action' => 'passwordreset'));

// This does not display anything at all :-(
echo $form->end("éàôù");

// Also as stated in my initial post none of my validations containing
accented characters display at all which made me waist a lot of time
thinking the issue was related to logic / codding  as opposed to silly
"cosmetic" of a string simply refusing to display for unexplainable
reasons.

I guess I can show my demo on monday by removing any accented
charcters, it should work OK but is not correct in Fench language and
it will be noticed :-(

Can you take a few minutes and try this on one of your existing forms
to see if you have a spontanuous rational explanation?
To be frank I am not that sure about Cake anymore, I fear other wierd
similar issues make my team's life a nightmare if we go for it...

Thanks.

--

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




Re: sql query in model

2009-11-13 Thread Amit Rawat
may be this might help you:-

$result = $this->LibraryItem->find('all',array('joins'=>array(
array(
'table'=>'issue_library_items',
'alias'=>'IssueLibraryItem',
'conditions'=>array('IssueLibraryItem.library_item_id=LibraryItem.id')
)),

'fields'=>array('LibraryItem.id','LibraryItem.title'),'conditions'=>array('LibraryItem
is NOT NULL',
'IssueLibraryItem.return_date is null')));

--

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




  1   2   >