How i decode md 5 in cake php

2010-06-24 Thread Dilip Godhani
Hello frd
Can any one tell me how i decode md5 in cakephp

Thanks

Dilip Godhani
Software Developer,
Entourage Solutions
e-mail: di...@entouragesolutions.com
  dilip.godh...@gmail.com
Web.: www.entouragesolutions.com
m. 9913822582

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


Hierarchy problem

2010-06-24 Thread Hugo M
Hi there! I have this structure:

Recommend hasOne Item
Item hasOne ItemFulltext

(ItemFulltext are fields from the item)

When I do a Recommend->find() I get:

Array
(
   [0] => Array
   (
   [Recommend] => Array(...)

   [Item] => Array (
[ItemFulltext] => Array(...)
...)
   )
)


I want one of two things:

1) Put ItemFulltext in the same level as Item

Array
(
   [0] => Array
   (
   [Recommend] => Array(...)

   [Item] => Array (...)

   [ItemFulltext] => Array(...)
   )
)

or mixing two tables in one model... (better)

Array
(
   [0] => Array
   (
   [Recommend] => Array(...)

   [Item] => Array ( here fields inside ItemFulltext...)
   )
)

There's a way to do any of this options?

Regardss

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


Array hierarchy problem

2010-06-24 Thread hugom
Hi! I have this structure:

Recommend hasOne Item
Item hasOne ItemFulltext

(ItemFulltext are fields from the item)

When I do a Recommend->find() I get:

Array
(
[0] => Array
(
[Recommend] => Array(...)

[Item] => Array (
 [ItemFulltext] => Array(...)
 ...)
)
)


I want one of two things:

1) Put ItemFulltext in the same level as Item

Array
(
[0] => Array
(
[Recommend] => Array(...)

[Item] => Array (...)

[ItemFulltext] => Array(...)
)
)

or mixing two tables in one model... (better)

Array
(
[0] => Array
(
[Recommend] => Array(...)

[Item] => Array ( here fields inside ItemFulltext...)
)
)

There's a way to do this?

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: Breadcrumbs

2010-06-24 Thread gremlin
I think something similar to the form input syntax would be good. Have
it return nothing but links, all in one string and allow some options
i.e. : around, before, first, between, last as keys to input html
around, before the first item, between all items ( meaning between
consecutive links - not the first or last ), and after the last would
be enough to generate an xhtml correct unordered list. You could also
do like the tableRows function and pass more parameters for
controlling the html attributes of the ul, and li elements.

At this point I might just write the damned thing since I half specced
it already and have easy reference code =)

On Jun 24, 4:30 am, euromark  wrote:
> i guess you can handle it..^^
> so i will shut up now^^
>
> On 24 Jun., 13:27, Leszek Stachowski  wrote:
>
> > As John wrote:
> > > maybe as
> > > an option, so those who for some reason don't want a list can request
> > > that :)
>
> > and then I
>
> > > I will submit a ticket with a change (as option) then
>
> > There will be both outputs possible ;)
>
> > On Jun 24, 1:24 pm, euromark  wrote:
>
> > > maybe we should allow both outputs - depending on the case both might
> > > be useful
>
> > > with a param "type" for example:
> > > - string
> > > - list (default)
>
> > > On 24 Jun., 13:11, Leszek Stachowski  wrote:
>
> > > > I will submit a ticket with a change (as option) then. Thanks for your
> > > > replies :)
>
> > > > On Jun 24, 1:05 pm, John Andersen  wrote:
>
> > > > > I will agree - for accessibility reason - as a list it will be
> > > > > understood better!
> > > > > So as Mark (euromark) says, submit a ticket and the change, maybe as
> > > > > an option, so those who for some reason don't want a list can request
> > > > > that :)
> > > > > Thank you for bringing the accessibility issue into the picture, that
> > > > > clarifies a lot - also for me :)
> > > > > Enjoy,
> > > > >    John
>
> > > > > On Jun 24, 12:54 pm, Leszek Stachowski  wrote:> I 
> > > > > didn't write it is not correct (x)html, because syntax of current
> > > > > > result is, indeed, correct. Providing a  or  element for
> > > > > > something which is de facto a list of elements (links, it this case)
> > > > > > is semantically correct and is a accessibility feature. You can see 
> > > > > > it
> > > > > > is a list, but what about someone using a screen reader? Consider 
> > > > > > it.
>
> > > > > [snip]- Zitierten Text ausblenden -
>
> > > > - Zitierten Text anzeigen -- Zitierten Text ausblenden -
>
> > - Zitierten Text anzeigen -

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: Building a 2-level relationship

2010-06-24 Thread stefano
On Thu, Jun 24, 2010 at 1:09 PM, WhyNotSmile  wrote:
> I have the following structure:
>
> Group - hasMany Users (user has foreign key called group_id)
> User - hasMany Children (child has foreign key called user_id)
>        - belongsTo Group (based on group_id)
> Child - belongsTo User (based on user_id)
>
> My question is this: is there a way to define the Child realtionship
> to the group?  E.g., when finding Children, I want to be able to loop
> over each Group and find all the Children in each one, but the Child
> model doesn't know that Group exists.
>
> I have looked at the Tree behaviour, but it looks like it's more
> complicated than I need.
>
> Any advice is appreciated.
>
> Thanks!
> Sharon
>
> 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
>

check containble

http://book.cakephp.org/view/474/Containable

s.

-- 
Stefano Salvatori M.
http://stefano.salvatori.cl/

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: single find query involving HABTM and hasOne

2010-06-24 Thread jason001

works like a charm! thanks for all your help! i'm really loving cakephp
-- 
View this message in context: 
http://old.nabble.com/single-find-query-involving-HABTM-and-hasOne-tp28940627p28986623.html
Sent from the CakePHP mailing list archive at Nabble.com.

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


Form Helper set class value of each in Drop down menu

2010-06-24 Thread Josh K
Using the form helper

 'status1',
'status2' => 'status2',
'status3' => 'status3'
);
print $form->select('Statuslist/statuscss', $colors, $this-
>data['Statuslist']['statuscss'], '', false);
?>

outputs


status1
status2
status3


How can I make the form helper output this?:


status1
status2
status3


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: CakePHP Ajax - Getting returned JSON code evaled and into variable

2010-06-24 Thread Mike
Just this exact thing this week There's a good example here:
http://api.jquery.com/jQuery.getJSON/... if your not using jquery you
can use eval() just the same.

On Jun 24, 9:56 am, Joakim  wrote:
> Hello,
>
> I have a ajax link that returns a json datastructure(writes out the
> json datastructure in the view) and i want to get this evaled and
> placed into a js datastructure that i can use. How do i manage this?
>
> All suggestions are really helpful!
>
> Best regards

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: Model Output as HTML

2010-06-24 Thread euromark
usually this doesnt happen
you must have something in the code there...

On 24 Jun., 19:48, DragonFlyEye  wrote:
> I'll bet this is obvious, but my Model data actually contains some
> HTML markup (I know, but you work with what you have) and that markup
> is being converted to entities before being displayed on the page. Is
> this something that CakePHP is doing? Is it happening in the Model or
> the Controller? How can I stop it.
>
> 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


Model Output as HTML

2010-06-24 Thread DragonFlyEye
I'll bet this is obvious, but my Model data actually contains some
HTML markup (I know, but you work with what you have) and that markup
is being converted to entities before being displayed on the page. Is
this something that CakePHP is doing? Is it happening in the Model or
the Controller? How can I stop it.

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


Re: CakePHP Ajax - Getting returned JSON code evaled and into variable

2010-06-24 Thread Miles J
This isnt a PHP question. Use JSON to parse it into a use able
Javascript object.

http://json.org/

On Jun 24, 8:17 am, DragonFlyEye  wrote:
> This isn't really a CakePHP question. Have a look at javascript's
> eval() function:
>
> http://www.w3schools.com/jsref/jsref_eval.asp
>
> On Jun 24, 10:56 am, Joakim  wrote:
>
> > Hello,
>
> > I have a ajax link that returns a json datastructure(writes out the
> > json datastructure in the view) and i want to get this evaled and
> > placed into a js datastructure that i can use. How do i manage this?
>
> > All suggestions are really helpful!
>
> > Best regards

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


Building a 2-level relationship

2010-06-24 Thread WhyNotSmile
I have the following structure:

Group - hasMany Users (user has foreign key called group_id)
User - hasMany Children (child has foreign key called user_id)
- belongsTo Group (based on group_id)
Child - belongsTo User (based on user_id)

My question is this: is there a way to define the Child realtionship
to the group?  E.g., when finding Children, I want to be able to loop
over each Group and find all the Children in each one, but the Child
model doesn't know that Group exists.

I have looked at the Tree behaviour, but it looks like it's more
complicated than I need.

Any advice is appreciated.

Thanks!
Sharon

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: Problems with AppController inheritance

2010-06-24 Thread rtconner
http://book.cakephp.org/view/37/Apache-and-mod_rewrite-and-htaccess

Also, really double check your database.php file.

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: CakePHP Ajax - Getting returned JSON code evaled and into variable

2010-06-24 Thread DragonFlyEye
This isn't really a CakePHP question. Have a look at javascript's
eval() function:

http://www.w3schools.com/jsref/jsref_eval.asp

On Jun 24, 10:56 am, Joakim  wrote:
> Hello,
>
> I have a ajax link that returns a json datastructure(writes out the
> json datastructure in the view) and i want to get this evaled and
> placed into a js datastructure that i can use. How do i manage this?
>
> All suggestions are really helpful!
>
> Best regards

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


CakePHP Ajax - Getting returned JSON code evaled and into variable

2010-06-24 Thread Joakim
Hello,

I have a ajax link that returns a json datastructure(writes out the
json datastructure in the view) and i want to get this evaled and
placed into a js datastructure that i can use. How do i manage this?

All suggestions are really helpful!

Best regards

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: validation errors

2010-06-24 Thread Melanie Sommer
Hello Mark,

thank you for your detailled explanation. It works :-)

Melanie

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


working cakephp-filter-plugin for CakePHP 1.3 ?

2010-06-24 Thread Charles Bueche
Hi,

I'm writing a small CakePHP front-end to a DB. I'm using CakePHP 1.3.x,
and would like to use some kind of filter on top of my views, so the
user can restrict the shown results.

I have tried http://github.com/jmroth/cakephp-filter-plugin, but it
apparently doesn't work with 1.3. Any other recommendation, or is J.M.
Roth on line to provide on a possible update / patch ?

Thanks,
Charles

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


Auth::authorize - controller -- How to handle guests?

2010-06-24 Thread Melanie Sommer
Hello,

I am using AuthComponent with authorization from the controller. Thus
my app_controller.php looks like

##
class AppController extends Controller {
var $components = array('Auth','RequestHandler');
var $uses = array('User');
public function beforeFilter(){
$this->User->contain('Group');
if(isset($this->Auth)){
parent::beforeFilter();
$this->Auth->authorize = 'controller';
}
}
function isAuthorized(){
$allowedActions = array(
'model'  => array(
'action' => array(id1,id2,id3)
...
...
)
$group_id = $this->Auth->user('group_id');
if(isset($allowedActions[low($this->name)])){
$controllerActions = $allowedActions[low($this->name)];
if(isset($controllerActions[$this->action]) &&
in_array($group_id,$controllerActions[$this->action])){
return true;
}
return false;
}
}
}
##


I would like to handle access of guests directly in the
$allowedActions array.

First I thought, I could simply check whether $this->Auth-
>user('group_id'); returns a value and if not, set $group_id to a
value that I use in the $allowedActions array for guest access.
isAuthorized would then return true if the guest tries to access an
allowed model/action and false if a prohibited model/action, just as
it does for logged-in users.

But the function isAuthorized() seems to be only called if a user is
logged in, so this approach does not help me at all.

I know that I can use
public function beforeFilter(){
parent::beforeFilter();
$this->Auth->allowedActions = array('action');
}
in every controller for which I want some actions to be accessible for
guests, but that is very inconvenient.

Is there a way that cake calls isAuthorized even if no user is logged
in (or set a parameter so that cake thinks a user is logged in)? (or
an other, better way to solve this problem)

Thank you for your help!
Melanie

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


CakeFest 2010 Schedule Announced!

2010-06-24 Thread Graham Weldon
Hey all,

Earlier today the schedule for CakeFest 2010 (http://cakefest.org) was
announced.
These represent the first round offers for talks, and will only change
if speakers offers are declined.

We had a HUGE submissions run this year, and it means we're delivering
a high quality set of talks, with some great new content!

New to this years schedule is the "Lightning Talks" session. This is
made up of 5 minute presentations made by you, the attendees.
Simply register on the day, and be randomly drawn from the pool of
registered users.
You will have exactly 5 minutes to setup, present and complete your
talk, and then shuffle out of the way to make room for the next
speaker!
Theres no experience required to do a lightning talk. Its designed to
be a fun, past paced and exciting way to learn about a huge range of
CalePHP topics and important people in the community.

Tickets are on sale, and we have secured a great combination price for
tickets combined with accommodation.

Don't forget the Workshops. These offer a great, cost effective way to
learn CakePHP, brush up on your existing knowledge, and pick the
brains of core developers on a whole range of topics including
advanced features, and help with your existing code. Don't miss out
this opportunity!

For full details on the schedule, see: http://cakefest.org/schedule

For full ticketing information, see http://cakefest.org/ticket-info

We hope to see you at CakeFest 2010, already the biggest CakePHP event yet!

Cheers,
Graham Weldon
CakeFest 2010 Event Organizer

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: Breadcrumbs

2010-06-24 Thread euromark
i guess you can handle it..^^
so i will shut up now^^

On 24 Jun., 13:27, Leszek Stachowski  wrote:
> As John wrote:
> > maybe as
> > an option, so those who for some reason don't want a list can request
> > that :)
>
> and then I
>
> > I will submit a ticket with a change (as option) then
>
> There will be both outputs possible ;)
>
> On Jun 24, 1:24 pm, euromark  wrote:
>
>
>
> > maybe we should allow both outputs - depending on the case both might
> > be useful
>
> > with a param "type" for example:
> > - string
> > - list (default)
>
> > On 24 Jun., 13:11, Leszek Stachowski  wrote:
>
> > > I will submit a ticket with a change (as option) then. Thanks for your
> > > replies :)
>
> > > On Jun 24, 1:05 pm, John Andersen  wrote:
>
> > > > I will agree - for accessibility reason - as a list it will be
> > > > understood better!
> > > > So as Mark (euromark) says, submit a ticket and the change, maybe as
> > > > an option, so those who for some reason don't want a list can request
> > > > that :)
> > > > Thank you for bringing the accessibility issue into the picture, that
> > > > clarifies a lot - also for me :)
> > > > Enjoy,
> > > >    John
>
> > > > On Jun 24, 12:54 pm, Leszek Stachowski  wrote:> I 
> > > > didn't write it is not correct (x)html, because syntax of current
> > > > > result is, indeed, correct. Providing a  or  element for
> > > > > something which is de facto a list of elements (links, it this case)
> > > > > is semantically correct and is a accessibility feature. You can see it
> > > > > is a list, but what about someone using a screen reader? Consider it.
>
> > > > [snip]- Zitierten Text ausblenden -
>
> > > - Zitierten Text anzeigen -- Zitierten Text ausblenden -
>
> - Zitierten Text anzeigen -

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: Breadcrumbs

2010-06-24 Thread Leszek Stachowski
As John wrote:

> maybe as
> an option, so those who for some reason don't want a list can request
> that :)

and then I

> I will submit a ticket with a change (as option) then

There will be both outputs possible ;)

On Jun 24, 1:24 pm, euromark  wrote:
> maybe we should allow both outputs - depending on the case both might
> be useful
>
> with a param "type" for example:
> - string
> - list (default)
>
> On 24 Jun., 13:11, Leszek Stachowski  wrote:
>
>
>
> > I will submit a ticket with a change (as option) then. Thanks for your
> > replies :)
>
> > On Jun 24, 1:05 pm, John Andersen  wrote:
>
> > > I will agree - for accessibility reason - as a list it will be
> > > understood better!
> > > So as Mark (euromark) says, submit a ticket and the change, maybe as
> > > an option, so those who for some reason don't want a list can request
> > > that :)
> > > Thank you for bringing the accessibility issue into the picture, that
> > > clarifies a lot - also for me :)
> > > Enjoy,
> > >    John
>
> > > On Jun 24, 12:54 pm, Leszek Stachowski  wrote:> I 
> > > didn't write it is not correct (x)html, because syntax of current
> > > > result is, indeed, correct. Providing a  or  element for
> > > > something which is de facto a list of elements (links, it this case)
> > > > is semantically correct and is a accessibility feature. You can see it
> > > > is a list, but what about someone using a screen reader? Consider it.
>
> > > [snip]- Zitierten Text ausblenden -
>
> > - Zitierten Text anzeigen -

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: Breadcrumbs

2010-06-24 Thread euromark
maybe we should allow both outputs - depending on the case both might
be useful

with a param "type" for example:
- string
- list (default)

On 24 Jun., 13:11, Leszek Stachowski  wrote:
> I will submit a ticket with a change (as option) then. Thanks for your
> replies :)
>
> On Jun 24, 1:05 pm, John Andersen  wrote:
>
>
>
> > I will agree - for accessibility reason - as a list it will be
> > understood better!
> > So as Mark (euromark) says, submit a ticket and the change, maybe as
> > an option, so those who for some reason don't want a list can request
> > that :)
> > Thank you for bringing the accessibility issue into the picture, that
> > clarifies a lot - also for me :)
> > Enjoy,
> >    John
>
> > On Jun 24, 12:54 pm, Leszek Stachowski  wrote:> I 
> > didn't write it is not correct (x)html, because syntax of current
> > > result is, indeed, correct. Providing a  or  element for
> > > something which is de facto a list of elements (links, it this case)
> > > is semantically correct and is a accessibility feature. You can see it
> > > is a list, but what about someone using a screen reader? Consider it.
>
> > [snip]- Zitierten Text ausblenden -
>
> - Zitierten Text anzeigen -

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: Breadcrumbs

2010-06-24 Thread Leszek Stachowski
I will submit a ticket with a change (as option) then. Thanks for your
replies :)

On Jun 24, 1:05 pm, John Andersen  wrote:
> I will agree - for accessibility reason - as a list it will be
> understood better!
> So as Mark (euromark) says, submit a ticket and the change, maybe as
> an option, so those who for some reason don't want a list can request
> that :)
> Thank you for bringing the accessibility issue into the picture, that
> clarifies a lot - also for me :)
> Enjoy,
>    John
>
> On Jun 24, 12:54 pm, Leszek Stachowski  wrote:> I didn't 
> write it is not correct (x)html, because syntax of current
> > result is, indeed, correct. Providing a  or  element for
> > something which is de facto a list of elements (links, it this case)
> > is semantically correct and is a accessibility feature. You can see it
> > is a list, but what about someone using a screen reader? Consider it.
>
> [snip]

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: Breadcrumbs

2010-06-24 Thread John Andersen
I will agree - for accessibility reason - as a list it will be
understood better!
So as Mark (euromark) says, submit a ticket and the change, maybe as
an option, so those who for some reason don't want a list can request
that :)
Thank you for bringing the accessibility issue into the picture, that
clarifies a lot - also for me :)
Enjoy,
   John


On Jun 24, 12:54 pm, Leszek Stachowski  wrote:
> I didn't write it is not correct (x)html, because syntax of current
> result is, indeed, correct. Providing a  or  element for
> something which is de facto a list of elements (links, it this case)
> is semantically correct and is a accessibility feature. You can see it
> is a list, but what about someone using a screen reader? Consider it.
>
[snip]

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: Breadcrumbs

2010-06-24 Thread Leszek Stachowski
I didn't write it is not correct (x)html, because syntax of current
result is, indeed, correct. Providing a  or  element for
something which is de facto a list of elements (links, it this case)
is semantically correct and is a accessibility feature. You can see it
is a list, but what about someone using a screen reader? Consider it.

On Jun 24, 12:24 pm, John Andersen  wrote:
> Ok, got it!
> I don't see an issue here! There are no statement in the XHTML
> specification which states that an unordered list must be used as a
> bread crumb list, sorry! It is correct that they state that it is
> common usage to do that. So in my opinion, there is nothing wrong with
> the result from the getCrumbs method.
>
> Should you wish to have the unordered list, I can suggest you inherit
> from the HtmlHelper and implements your own getCrumbs method.
>
> There is not more I can say :) Hopefully somebody else can provide
> more information.
> Enjoy,
>    John
>
> On 24 Jun., 12:11, Leszek Stachowski  wrote:
>
>
>
> > We still don't understand each other clearly ;)
>
> > I get the correct result, as you wrote:
>
> > [code]
> > Crumb location
> > ...
> > Crumb location
> > [/code]
>
> > But, I think that HtmlHelper SHOULD (in order to produce (x)html
> > semantically correct result) return:
>
> > [code]
> > 
> >    Crumb location
> >    ...
> >    Crumb location
> > 
> > [/code]
>
> > Hope it is clear enough now ;)
>
> > On Jun 24, 11:46 am, John Andersen  wrote:
>
> > > Ok, I will rephrase my statement :)
> > > The HtmlHelper getCrumbs method returns a set of:
> > > [code]
> > > Crumb location
> > > ...
> > > Crumb location
> > > [/code]
>
> > > If you receive another result, please copy/paste the resulting html
> > > into a post and show us.
> > > Also show how you add to the crumb trail - using the addCrumb method,
> > > so that we may understand more.
> > > Enjoy,
> > >    John
>
> > > On 24 Jun., 11:40, Leszek Stachowski  wrote:> Yes, it 
> > > returns a set of separated linksand it's not semantically
> > > > correct. For navigation elements such as breadcrumbs, an (x)html list
> > > > should be used.
>
> > > > On Jun 24, 11:37 am, John Andersen  wrote:
>
> > > [snip]- Skjul tekst i anførselstegn -
>
> > - Vis tekst i anførselstegn -

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: Breadcrumbs

2010-06-24 Thread euromark
i agree with you, leszek
but this has not yet been implented
its still this string of elements, separated by a custom element

maybe you could change the function and post a ticket


On 24 Jun., 12:11, Leszek Stachowski  wrote:
> We still don't understand each other clearly ;)
>
> I get the correct result, as you wrote:
>
> [code]
> Crumb location
> ...
> Crumb location
> [/code]
>
> But, I think that HtmlHelper SHOULD (in order to produce (x)html
> semantically correct result) return:
>
> [code]
> 
>    Crumb location
>    ...
>    Crumb location
> 
> [/code]
>
> Hope it is clear enough now ;)
>
> On Jun 24, 11:46 am, John Andersen  wrote:
>
>
>
> > Ok, I will rephrase my statement :)
> > The HtmlHelper getCrumbs method returns a set of:
> > [code]
> > Crumb location
> > ...
> > Crumb location
> > [/code]
>
> > If you receive another result, please copy/paste the resulting html
> > into a post and show us.
> > Also show how you add to the crumb trail - using the addCrumb method,
> > so that we may understand more.
> > Enjoy,
> >    John
>
> > On 24 Jun., 11:40, Leszek Stachowski  wrote:> Yes, it 
> > returns a set of separated linksand it's not semantically
> > > correct. For navigation elements such as breadcrumbs, an (x)html list
> > > should be used.
>
> > > On Jun 24, 11:37 am, John Andersen  wrote:
>
> > [snip]- Zitierten Text ausblenden -
>
> - Zitierten Text anzeigen -

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: Breadcrumbs

2010-06-24 Thread John Andersen
Ok, got it!
I don't see an issue here! There are no statement in the XHTML
specification which states that an unordered list must be used as a
bread crumb list, sorry! It is correct that they state that it is
common usage to do that. So in my opinion, there is nothing wrong with
the result from the getCrumbs method.

Should you wish to have the unordered list, I can suggest you inherit
from the HtmlHelper and implements your own getCrumbs method.

There is not more I can say :) Hopefully somebody else can provide
more information.
Enjoy,
   John

On 24 Jun., 12:11, Leszek Stachowski  wrote:
> We still don't understand each other clearly ;)
>
> I get the correct result, as you wrote:
>
> [code]
> Crumb location
> ...
> Crumb location
> [/code]
>
> But, I think that HtmlHelper SHOULD (in order to produce (x)html
> semantically correct result) return:
>
> [code]
> 
>    Crumb location
>    ...
>    Crumb location
> 
> [/code]
>
> Hope it is clear enough now ;)
>
> On Jun 24, 11:46 am, John Andersen  wrote:
>
>
>
> > Ok, I will rephrase my statement :)
> > The HtmlHelper getCrumbs method returns a set of:
> > [code]
> > Crumb location
> > ...
> > Crumb location
> > [/code]
>
> > If you receive another result, please copy/paste the resulting html
> > into a post and show us.
> > Also show how you add to the crumb trail - using the addCrumb method,
> > so that we may understand more.
> > Enjoy,
> >    John
>
> > On 24 Jun., 11:40, Leszek Stachowski  wrote:> Yes, it 
> > returns a set of separated linksand it's not semantically
> > > correct. For navigation elements such as breadcrumbs, an (x)html list
> > > should be used.
>
> > > On Jun 24, 11:37 am, John Andersen  wrote:
>
> > [snip]- Skjul tekst i anførselstegn -
>
> - Vis tekst i anførselstegn -

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: Putting a component in a subdirectory?

2010-06-24 Thread euromark
the only important thing is, that you nead debug > 0 (for the first
time)
so that cake can add the subdirectory to the paths

after that it will remember this sub-path and it will work with debug
= 0 as well


On 24 Jun., 11:52, Rick Dane  wrote:
> thanks.. well i had tried it but i think i made some other error so
> thats why it wasn't working, so thats why i just posted here to double
> check.. thanks
>
> On Jun 24, 1:38 am, euromark  wrote:
>
>
>
> > yeah
> > just try it
>
> > you will see that it works! :)
>
> > On 24 Jun., 09:11, AD7six  wrote:
>
> > > On Jun 24, 5:15 am, Rick Dane  wrote:
>
> > > > I've been searching around about this and can't find an answer... can
> > > > I put a component in a subdirectory (within the components director)?
>
> > > Try it and find out.
>
> > > hth,
>
> > > AD- Zitierten Text ausblenden -
>
> - Zitierten Text anzeigen -

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: Breadcrumbs

2010-06-24 Thread Leszek Stachowski
We still don't understand each other clearly ;)

I get the correct result, as you wrote:

[code]
Crumb location
...
Crumb location
[/code]

But, I think that HtmlHelper SHOULD (in order to produce (x)html
semantically correct result) return:

[code]

   Crumb location
   ...
   Crumb location

[/code]

Hope it is clear enough now ;)

On Jun 24, 11:46 am, John Andersen  wrote:
> Ok, I will rephrase my statement :)
> The HtmlHelper getCrumbs method returns a set of:
> [code]
> Crumb location
> ...
> Crumb location
> [/code]
>
> If you receive another result, please copy/paste the resulting html
> into a post and show us.
> Also show how you add to the crumb trail - using the addCrumb method,
> so that we may understand more.
> Enjoy,
>    John
>
> On 24 Jun., 11:40, Leszek Stachowski  wrote:> Yes, it 
> returns a set of separated linksand it's not semantically
> > correct. For navigation elements such as breadcrumbs, an (x)html list
> > should be used.
>
> > On Jun 24, 11:37 am, John Andersen  wrote:
>
> [snip]

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: xml not rendering in REST cakephp

2010-06-24 Thread John Andersen
You have to tell CakePHP to render as XML, for example by using the
requestHandler to set the respond type. See:
http://book.cakephp.org/view/1295/Responding-To-Requests

That should mean that CakePHP will use the default XML layout defined
in the /views/layouts/xml folder.

The above is my assumption only, I have not used XML requests/
responses in my application - yet :)
Enjoy,
   John

On 23 Jun., 06:40, ytbryan  wrote:
> Hi thanks for your advice.
>
> I included
>
> $this->layout='xml';
>
> into my controller::index();
>
> I place header() ?> into the index.ctp.
>
> But it is still not rendered as xml. I am using firefox and chrome.
>
> any more idea why? or does anybody has a sample cakephp project with
> REST.
>
[snip]

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: Putting a component in a subdirectory?

2010-06-24 Thread Rick Dane
thanks.. well i had tried it but i think i made some other error so
thats why it wasn't working, so thats why i just posted here to double
check.. thanks



On Jun 24, 1:38 am, euromark  wrote:
> yeah
> just try it
>
> you will see that it works! :)
>
> On 24 Jun., 09:11, AD7six  wrote:
>
> > On Jun 24, 5:15 am, Rick Dane  wrote:
>
> > > I've been searching around about this and can't find an answer... can
> > > I put a component in a subdirectory (within the components director)?
>
> > Try it and find out.
>
> > hth,
>
> > AD

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: Breadcrumbs

2010-06-24 Thread John Andersen
Ok, I will rephrase my statement :)
The HtmlHelper getCrumbs method returns a set of:
[code]
Crumb location
...
Crumb location
[/code]

If you receive another result, please copy/paste the resulting html
into a post and show us.
Also show how you add to the crumb trail - using the addCrumb method,
so that we may understand more.
Enjoy,
   John

On 24 Jun., 11:40, Leszek Stachowski  wrote:
> Yes, it returns a set of separated linksand it's not semantically
> correct. For navigation elements such as breadcrumbs, an (x)html list
> should be used.
>
> On Jun 24, 11:37 am, John Andersen  wrote:
>
>
>
[snip]

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: Breadcrumbs

2010-06-24 Thread Leszek Stachowski
Yes, it returns a set of separated linksand it's not semantically
correct. For navigation elements such as breadcrumbs, an (x)html list
should be used.

On Jun 24, 11:37 am, John Andersen  wrote:
> Please provide more information!
> How do you use the getCrumbs method?
> As far as I can see from the HtmlHelper api, the method should return
> a set of links only!
> Enjoy,
>    John
>
> On 23 Jun., 19:17, Leszek Stachowski  wrote:
>
>
>
> > Hi,
>
> > is there any specific reason why HtmlHelper::getCrumbs() does not
> > generate semantically correct list of links? I mean:
>
> > 
> >     (...)
> >     (...)
> > 
>
> > If there isn't, I can contribute to cakephp and change it.
>
> > Greetings,
> > Leszek Stachowski

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: Breadcrumbs

2010-06-24 Thread John Andersen
Please provide more information!
How do you use the getCrumbs method?
As far as I can see from the HtmlHelper api, the method should return
a set of links only!
Enjoy,
   John

On 23 Jun., 19:17, Leszek Stachowski  wrote:
> Hi,
>
> is there any specific reason why HtmlHelper::getCrumbs() does not
> generate semantically correct list of links? I mean:
>
> 
>     (...)
>     (...)
> 
>
> If there isn't, I can contribute to cakephp and change it.
>
> Greetings,
> Leszek Stachowski

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


cakephp code snippets

2010-06-24 Thread euromark
i wrote some cake related articles.
maybe they are useful for some of you.
feel free to comment.

http://www.dereuromark.de/

if someone wants to join in go ahead and contact me.

cheers
mark

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: Putting a component in a subdirectory?

2010-06-24 Thread euromark
yeah
just try it

you will see that it works! :)


On 24 Jun., 09:11, AD7six  wrote:
> On Jun 24, 5:15 am, Rick Dane  wrote:
>
> > I've been searching around about this and can't find an answer... can
> > I put a component in a subdirectory (within the components director)?
>
> Try it and find out.
>
> hth,
>
> AD

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: Putting a component in a subdirectory?

2010-06-24 Thread AD7six


On Jun 24, 5:15 am, Rick Dane  wrote:
> I've been searching around about this and can't find an answer... can
> I put a component in a subdirectory (within the components director)?

Try it and find out.

hth,

AD

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: Possible bug in Tree, recover

2010-06-24 Thread AD7six


On Jun 23, 6:26 pm, cricket  wrote:
> On Wed, Jun 23, 2010 at 4:12 AM, AD7six  wrote:
>
> > On Jun 23, 9:38 am, Erik Starck  wrote:
> >> On Tue, Jun 22, 2010 at 6:56 PM, cricket  wrote:
> >> > Interesting. You should post a ticket here:
>
> >> >http://cakephp.lighthouseapp.com/dashboard
>
> >> Ok, I added 
> >> it:http://cakephp.lighthouseapp.com/projects/42648-cakephp/tickets/848-s...
>
> >> Erik S.http://twitter.com/erikstarck
>
> > Cricket: I think you've misled Erik to think he has a bug.
>
> The point was that's the place to report bugs.

Based on what are you saying it's a bug?

> As in: more likely to
> get the attention of someone who can do something about it (or in a
> position to know whether it really is one).

Reproducible problems do need reporting at tickets. You can't use
"I've got an unexpected result" as "It's a bug" - most threads on this
group would be classified as bugs that way and the project would drown
in pointless tickets.

>
> Andy, you're beginning to remind me of Chris H.

I'm sure Chris is proud to be among such pedigree.

;)

AD
PS This problem could well be a bug, who knows, but look at the
evidence.

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