Re: using the auth information outside of cakephp

2010-06-25 Thread mrnnn
thanks a million cricket!

On Jun 21, 7:08 pm, cricket zijn.digi...@gmail.com wrote:
 On Mon, Jun 21, 2010 at 9:33 AM, mrnnn marijn.vandevoo...@gmail.com wrote:
  sorry for bumping, but nobody? really?

  On Jun 10, 4:09 pm, mrnnn marijn.vandevoo...@gmail.com wrote:
  A rather unusual question maybe, but I'd like to use cake's auth in a
  seperate php file. I tried checking what's in the session, but that
  one seems to be empty?

  Here's what i want to do: I have a simple file manager and when the
  user is logged in (no matter what group, so basically i only need a
  yes/no answer, doesn't matter who), he should be allowed to see the
  entire file structure. if not, only a part.

  important to notice i guess: file manager and cakephp site run on the
  same domain (and same subdomain).

  I've tried using the cookie and session components in cakephp and then
  printing the $_SESSION (after a session_start() of course) and
  $_COOKIE arrays, but those seemed empty except for a CAKEPHP value.

 Have a look at this:

 http://www.flickspin.com/en/software_development/cakephp_session_webroot

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Re: using the auth information outside of cakephp

2010-06-21 Thread mrnnn
sorry for bumping, but nobody? really?

On Jun 10, 4:09 pm, mrnnn marijn.vandevoo...@gmail.com wrote:
 A rather unusual question maybe, but I'd like to use cake's auth in a
 seperate php file. I tried checking what's in the session, but that
 one seems to be empty?

 Here's what i want to do: I have a simple file manager and when the
 user is logged in (no matter what group, so basically i only need a
 yes/no answer, doesn't matter who), he should be allowed to see the
 entire file structure. if not, only a part.

 important to notice i guess: file manager and cakephp site run on the
 same domain (and same subdomain).

 I've tried using the cookie and session components in cakephp and then
 printing the $_SESSION (after a session_start() of course) and
 $_COOKIE arrays, but those seemed empty except for a CAKEPHP value.

 Any help appreciated!

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


using the auth information outside of cakephp

2010-06-10 Thread mrnnn
A rather unusual question maybe, but I'd like to use cake's auth in a
seperate php file. I tried checking what's in the session, but that
one seems to be empty?

Here's what i want to do: I have a simple file manager and when the
user is logged in (no matter what group, so basically i only need a
yes/no answer, doesn't matter who), he should be allowed to see the
entire file structure. if not, only a part.

important to notice i guess: file manager and cakephp site run on the
same domain (and same subdomain).

I've tried using the cookie and session components in cakephp and then
printing the $_SESSION (after a session_start() of course) and
$_COOKIE arrays, but those seemed empty except for a CAKEPHP value.

Any help appreciated!

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


AjaxHelper::editor + ckeditor

2010-05-12 Thread mrnnn
Hi all.

Well, I think the title says it all. If I could just call a javascript
method after the div has been converted to a textarea, that would be
enough! but i can't find any option that does this.

could anybody give me some pointers on how to allow in-place editing
with ckeditor or any wysiwyg editor.


Thank you so much.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Re: automagic select boxes for belongsto relations

2010-04-27 Thread mrnnn
Thanks to both of you, you've been of great help! Really appreciate
it!

On Apr 27, 10:39 am, WebbedIT p...@webbedit.co.uk wrote:
 If concatenating or calculating fields etc. you will then need to use
 Set::combine to reformat the array so the form helper can use it.

 $data = $this-Artist-find(
    'all',
    array(
      'fields' = array(
         concat(Artist.first_name,' ',Artist.last_name) as name
      )
    )
 );

 Would then need the following to set the array in the right format:

 $this-set('artists', Set::combine($data, '{n}.Artist.id', '{n}.
 0.name'));

 HTH

 Paul

 Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with 
 their CakePHP related questions.

 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 
 athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


automagic select boxes for belongsto relations

2010-04-26 Thread mrnnn
hi all!

i'm merely beginning with cakephp and i've tried the two examples and
all worked fine.

but now i'm trying to convert my own sql scheme to a cake application
using the bake all command.

in short, the fields that matter:

artitsts {
 auto_increment int id
 first_name varchar(100)
 last_name varchar(100)
}

work {
 auto_increment id
 int artist_id
}

basically, what i'd like is that, when editing/adding a work, you'd
get a select box to select the artist. now, when i bake, it either:
-gives me no select box, just an input field
-sometimes i get to select the artist id

what i want: a select box with a combination of the first and last
name.

is there magic to this or should i just do it manually? fill an array
in the controller, push it to the view and then make a $form-select
element? or is there a way to obtain the behaviour of the example,
where creating a user shows a select box for the group, even though
the view says $form-input?

the only difference i see so far is that the group name is unique.
should i make my lastname column unique maybe? or can i make the
combination unique? that probably won't work, will it?

or is it the name of the column? does cakephp automatically pick the
name field if present?

thanks!

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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