Re: How to output UTF-8 sign?

2010-04-19 Thread John Andersen
As far as the PHP manual states, you use #nnn; so your arrow becomes
#2191;
Enjoy,
   John

On Apr 19, 8:21 am, sebb86 kahlc...@googlemail.com wrote:
 Hello,
 my charset is set to UTF-8.
 But how do i output a UTF-8 sign inside PHP?

 For example an arrow (U+2191) in a table cell:
 [code]
 th?php echo $paginator-sort(array('asc' ='id U+2193', 'desc'
 ='id U+2191'), 'id');  ?/th
 [/code]

 regards and thanks!

 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


hasMany relationship with underscore named table

2010-04-19 Thread xiaohouzi79
Hi,

I have one table metrics and another table metric_levels. In the
Metric model I have $hasMany = 'MetricLevels' but anything inside the
MetricLevels model is totally ignored.

But, if I rename the model to 'Metric' and have $useTable =
'metric_levels' it works fine. I've tried all combinations, but none
seem to work. I've tried plurals, singulars, underscores, nothing
seems to work. The model is simply ignored and it just takes the value
from the database.

Any help is 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


Re: View (form-input) - Disable word wrap?

2010-04-19 Thread sebb86
John

Hello,
thank you. I had a similar idea. But how do i code this?

[my css code]
#input
{
  float:left;
}
[/code]

[view code]
echo $form-input('db_field', array('label' = 'Label', 'maxLength' =
'20%', 'div' = array('id' = 'input')));
[/code]

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: How to output UTF-8 sign?

2010-04-19 Thread sebb86
Hello again John,

this outputs a strange sign: ࢏
Seems like its the arrows hex code.

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: mac users, which ide are you using to develop cakephp?

2010-04-19 Thread Jeremy Burns
My preference is Coda - www.panic.com - overdue for a new version, but still 
good.

Or there's espresso or Komodo.

Jeremy Burns
jeremybu...@me.com


On 19 Apr 2010, at 05:14, Bryan Lim wrote:

 Hi all,
 
 
 mac users, which ide are you using to develop cakephp? to compile and
 to debug?
 
 I search the group here and realised this discussion is dated back to
 2009. So, I want to know if there's any changes?
 
 
 thanks,
 Bryan
 
 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 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: How to output UTF-8 sign?

2010-04-19 Thread John Andersen
I now see that your code was the hex code, not the decimal code, so
use #x2191; for your arrow.
Enjoy,
   John

On Apr 19, 9:18 am, sebb86 kahlc...@googlemail.com wrote:
 Hello again John,

 this outputs a strange sign: ࢏
 Seems like its the arrows hex code.

 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


Re: mac users, which ide are you using to develop cakephp?

2010-04-19 Thread Martin Westin
No ide, just Textmate for me.



On Apr 19, 6:14 am, Bryan Lim ytbr...@gmail.com wrote:
 Hi all,

 mac users, which ide are you using to develop cakephp? to compile and
 to debug?

 I search the group here and realised this discussion is dated back to
 2009. So, I want to know if there's any changes?

 thanks,
 Bryan

 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


HOW to use find() to EXCLUDE some datasets?

2010-04-19 Thread mivogt-LU
HI there,

I want to use find() to exlude some data on a few conditions.

My app is built like this

customer-request-booking-bookingposition-lodging

with request fields: Id NameCustomerDate1/Date2 (date1,2
arrival,leave requested)
with booking fields: Id NameCustomerMealclass   Request
with bookingpositionfields: Id  Booking Date1/Date2 Lodging
(date1,2 arrival,leave booked)
*) I use 2 times a date fieldset if a customer might ask for a period
he want to visit but do booking only a part of it (i.e. wants to visit
in april staying 1 week...)


Now if I do add a booking position to a customers booking the usual
way is getting full the lodgings list from conroller by find(list).
My goal is to exclude those that are already in use (should be easy to
agree I need to do so..)

With mysql I found 'NOT IN' syntax to fit my needs if I do something
like this
1.) select * from bookingpositions, bookings, lodgings .. fittinng ore
close the time of the new booking
2.) select * from lodgings not in result of 1.)

Is there a way to do similar using the cake built in find function?
Some syntax help would be great as I am not realy advanced with the
conditions array

Thanks in advance

Michael

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: View (form-input) - Disable word wrap?

2010-04-19 Thread John Andersen
I would use the forms standard DIV class instead of giving it an id.
For example:

[css code]
.input{
   width:40em;
   float:left;
}
.input label{
   width:20%;
   float:left;
}
.input input{
   width:75%;
   float:left;
}
[/css code]

If you have more than one input field, then you can use the input
fields id to define different width to those that may require a longer
or shorter input field.
Enjoy,
   John

On Apr 19, 9:09 am, sebb86 kahlc...@googlemail.com wrote:
 John

 Hello,
 thank you. I had a similar idea. But how do i code this?

 [my css code]
 #input
 {
   float:left;}

 [/code]

 [view code]
 echo $form-input('db_field', array('label' = 'Label', 'maxLength' =
 '20%', 'div' = array('id' = 'input')));
 [/code]

[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: How to validate HABTM extra fields

2010-04-19 Thread WebbedIT
The HABTM association is really just a convenience wrapper for when
you want a basic many-to-many join, as soon as you want to do anything
else with the join model/table I would reccomend switching to the more
reliable and predictable:

ModelA hasMany JoinModel
ModelB hasMany JoinModel
JoinModel belongsTo array(ModelA, ModelB)

The join model then acts as any other model and gives you the ability
to save extra fields along with validation.

HTH

Paul

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: HOW to use find() to EXCLUDE some datasets?

2010-04-19 Thread John Andersen
The CakePHP book describes the NOT IN usage at:
http://book.cakephp.org/view/74/Complex-Find-Conditions

You are correct in what you want to do, first find all the lodgings,
which have bookings that overlaps the requested booking. Secondly find
all the lodgings which are not in the first list of lodgings.
Enjoy,
   John

On Apr 19, 9:42 am, mivogt-LU c...@mivogt.net wrote:
 HI there,

 I want to use find() to exlude some data on a few conditions.

 My app is built like this

 customer-request-booking-bookingposition-lodging

 with request fields: Id         Name    Customer        Date1/Date2 (date1,2
 arrival,leave requested)
 with booking fields: Id         Name    Customer        Mealclass       
 Request
 with bookingpositionfields: Id          Booking         Date1/Date2 Lodging
 (date1,2 arrival,leave booked)
 *) I use 2 times a date fieldset if a customer might ask for a period
 he want to visit but do booking only a part of it (i.e. wants to visit
 in april staying 1 week...)

 Now if I do add a booking position to a customers booking the usual
 way is getting full the lodgings list from conroller by find(list).
 My goal is to exclude those that are already in use (should be easy to
 agree I need to do so..)

 With mysql I found 'NOT IN' syntax to fit my needs if I do something
 like this
 1.) select * from bookingpositions, bookings, lodgings .. fittinng ore
 close the time of the new booking
 2.) select * from lodgings not in result of 1.)

 Is there a way to do similar using the cake built in find function?
 Some syntax help would be great as I am not realy advanced with the
 conditions array

 Thanks in advance

 Michael

 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


Re: hasMany relationship with underscore named table

2010-04-19 Thread John Andersen
You model should be in singular form, which mean that is should be
named MetricLevel not MetricLevels, then CakePHP will ensure that
the correct table will be used.
Enjoy,
   John

On Apr 19, 9:08 am, xiaohouzi79 xiaohouz...@gmail.com wrote:
 Hi,

 I have one table metrics and another table metric_levels. In the
 Metric model I have $hasMany = 'MetricLevels' but anything inside the
 MetricLevels model is totally ignored.

 But, if I rename the model to 'Metric' and have $useTable =
 'metric_levels' it works fine. I've tried all combinations, but none
 seem to work. I've tried plurals, singulars, underscores, nothing
 seems to work. The model is simply ignored and it just takes the value
 from the database.

 Any help is appreciated.

 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


Re: Model and Controller aliases

2010-04-19 Thread WebbedIT
Do you really have a model named Warehousetorontomapleavenue, with a
table of warehousetorontomapleavenues?

Surely this should be a Warehouse model with a record for
TorontoMapleAvenue?

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: composite keys to identify a record

2010-04-19 Thread Martin Westin
In conclusion @Renan:
Composite keys are a very normal part of database design but not in
any way supported or very compatible with CakePHP.

Either you have to access that data via your own queris (no find and
save), not use the core Schema Shell to dump the schema ,and a bunch
of other things you loose.

Or, as suggested, you complicate your schema a tiny bit by adding an
extra id field and get to use all the cake stuff.


Just my 2¢
I have only once found it preferable to stick to a multi-key (or zero-
key in that case) table. That table is a WORM table for reporting data
containing only a single data field and about 10 foreign keys. Since
the object is to pull stats you will never ever find a single
record. You will group on the various keys in different combinations
to get graph data. Cake can be forgiven for not supporting that kind
of table.

Personally I think the classic HABTM joining table would haven been
more worthy of support, seeing as there are so many of them in any
given app. But I feel the topic has been discussed to death before. I
don't want to start another discussion about database-religion.

/Martin


On Apr 18, 12:07 pm, Jeremy Burns jeremybu...@me.com wrote:
 And Cake will just 'deal with it', without you having to do any work.

 Jeremy Burns
 jeremybu...@me.com

 On 18 Apr 2010, at 11:04, j0n4s.h4rtm...@googlemail.com wrote:





  Hello,

  for instance you could have Post, Tag, PostTag, Post HABTM Tag / Post
  HasMany PostTag, Tag HasMany PostTag.
  why this example? because it shows the most common place where you
  would - outside of Active Record - use a combined primary key -
  PostTag would have PrimaryKey(post_id, tag_id) - but as Jeremy Burns
  pointed out: besides the very tiny data overhead, what is the issue
  with one additional field as a primary and setting Unique(post_id,
  tag_id)?

  On Apr 17, 12:50 am, Jeremy Burns jeremybu...@me.com wrote:
  I absolutely endorse a single, incremental, non-intelligent primary key, 
  enriched with multi-field unique indexes and the adoption of convention. 
  Why make life any more difficult than it is already?

  Jeremy Burns
  jeremybu...@me.com

  On 16 Apr 2010, at 21:29, Renan Augusto wrote:

  Dear,

  Someone must have encountered a situation where a table had
  with composite key.
  what did you do? Since CakePHP recognizes only one field to
  primaryKey!

  In my opinion I see two possibilities:

  1 - not create tables with composite keys. When you need to use
  composite keys to identify a record, create one more field with the
  name ID and put it as primary key.

  2 - forget standardization. Choose one of the fields to put in
  $ primaryKey attribute of the model and when you need to make a
  relationship (or hasMany belongsTo), use to specify the conditions
  other fields that make up the key of the table.

  That's my opinion, please tell her!

  Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp 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 sitehttp://cakeqs.organdhelp 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 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 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

Re: Multi-level Models in CakePHP

2010-04-19 Thread WebbedIT
Recursive may do the trick, but you should be getting your head around
containable here and if your associations are correct the code Walther
provided should have worked.

Problem with recursive is if ModelA or ModelB are associated to other
models it will go fetch them too as there is no way with recursive to
select exactly the models you want.

Spend some time with containable till you get your head around it, it
is very much worth it!

HTH

Paul

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 Button to submit the form

2010-04-19 Thread WebbedIT
Alternatives would be

1. Apply javascript to the buttons so you could send to whatever url
you want
2. Replace the buttons with images (which is possibly a nice idea for
site wide Previous/Next buttons) and create the links as standard
links with images or text replacement.

(You'll find that the pagination helper creates all links as a tags
so it's perfectly normal to do so yourself.)

HTH

Paul.

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: Auth Component: Allow action in a controller but disallow it in another

2010-04-19 Thread WebbedIT
Can we assume you have set $this-Auth-allow('referrals'), at an
application level (/app/app_controller.php)

If so add $this-Auth-deny('referrals') in your User and Staff
controllers.

HTH

Paul.

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: News with Comments - how to sort by comments count?

2010-04-19 Thread WebbedIT
Have your added the comment_count field to the news table and have you
ran a query to update the counts as Cake only updates those counts
using afterSave afterDelete?

HTH

Paul.

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: Problem with Auth Component hashes

2010-04-19 Thread WebbedIT
If wanting to compare your hashed password with a salt inflected
hashed string use

if ($password == $this-Auth-password($password_confirm))

or

if ($password == Security::hash(Configure::read('Security.salt') .
$password_confirm)

HTH

Paul

On Apr 18, 5:24 pm, Zaky Katalan-Ezra procsh...@gmail.com wrote:
  I think the Auth uses a salt.

 On Sun, Apr 18, 2010 at 6:43 PM, Stefano Martins xstefa...@gmail.comwrote:



  Hello folks,

  As I was studying CakePHP and the Auth Component, I've found out that
  it's not using sha1 hashes - or at least it doesn't seems to - by
  default. I had to manually set it to use md5 hashes, following the
  instructions given by the Cookbook. For the string stefano, Cake's
  generating the 35b914b05db99937e255f0eaebd3ac89f804a1cc, while the
  sha1() function generates the
  80980fcaf2ab3f243874695f57b2ed065d8e67e4 hash for the stefano
  string.

  Am I doing something wrong?

  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.comcake-php%2bunsubscr...@googlegroups.comFor
   more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en

 --
 Regards,
 Zaky Katalan-Ezra
 QA Administratorwww.IGeneriX.com
 Sites.IGeneriX.com
 054-7762312

 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


Using condiotion in find()

2010-04-19 Thread Ambika Kulkarni
Hi all,

i am using the following find() function to get the data in a list. I
have put the conditions but still its taking all values.

$maincategories = $this-MainCategory-find('list', array(
'fields' = 
array(

'main_category_id','main_category','type'
)
),
array(
'conditions' = 
array(

'MainCategory.type' = ''
 )
),
array(
'order' = 
'MainCategory.main_category ASC'
),
array(
'group' = 
'MainCategory.type'
)
   );

O/P is
select id=maincategories name=data[Campaigns]
[maincategory_mainCategoryId]

option value=11Wrap amp; pack exp  store/option
option value=10Groceries amp; toiletries /option
option value=9Fruit amp; vegetables /option
option value=8Deli /option
option value=7Perishables /option
option value=6Fresh meat/option
option value=5Major household appliances /option
option value=4Non Foods /option
option value=3Delicatessen dept./option
option value=2Wet fish /option
option value=1Bakery /option

optgroup label=deprecated
option value=25Petfood/option
option value=24Wine/option
option value=23Stationary/option
option value=22Toys/option
option value=21Non Foods/option
option value=20Freezers/option
option value=19Fridges/option
option value=18Prepacked Fresh Vegetables/option
option value=17Prepacked Fresh Fruit/option
option value=16Groceries/option
option value=15Household/option
option value=14Baby Care/option
option value=13Self Medication/option
option value=12Toiletries/option
/optgroup/select
i want the data till the that line.
Thanks
Ambika

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: How to output UTF-8 sign?

2010-04-19 Thread sebb86
Thanks. It works when i write:
[code]
?php echo '#x2191;' ?
[/code]

But _NOT_ with paginate:
[code]
?php echo $paginator-sort(array('asc' ='id v', 'desc' ='id
#x2191'), 'id');
[/code]

What's wrong there?

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: CakePHP Auth Component cannot remember url before authentication

2010-04-19 Thread Prof. No Time
Thanks for the response Cricket, I have dumped my codes below. Please
assist me. Regards.

My AppController::beforeFilter()

function beforeFilter(){
  $this-Auth-fields = array('username' = 'username', 'password' =
'passkey');
  $this-Auth-allow($this-allowedActions);
  $this-Auth-authorize = 'controller';
  $this-Auth-loginAction = array('controller' = 'users', 'action'
= 'login');
  $this-Auth-loginRedirect = array('controller' = 'pages', 'action'
= 'display', 'home');
  $this-Auth-logoutRedirect = '/';
  $this-Auth-autoRedirect = false;
}

My UsersController::login()

if ($this-Auth-user()) {
if (!empty($this-data)) {
  $this-Session-setFlash('You have been logged in
successfully');
  $this-_postLoginOperations(); //This method redirects the user
based on role
  $this-data = array();
}
$this-redirect($this-Auth-redirect());
}



On Apr 16, 11:55 am, cricket zijn.digi...@gmail.com wrote:
 On Apr 16, 1:40 am, Prof. No Time libertylivingst...@gmail.com
 wrote:

  In the cook book, we are told that theauthcomponentuses the session
 componenttoremembertheurlthe user intended to visit and hence
  when authenticated, automatically takes the user there. However, this
  DOES NOT WORK for me (cake 1.2.5). What could be the problem?

 What does your AppController::beforeFilter() look like? Specifically,
 do you have $this-Auth-autoRedirect = false? Do you have any code in
 UsersController::login() or is it empty?

 Check out the newCakePHPQuestions sitehttp://cakeqs.organd help others with 
 theirCakePHPrelated 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


need

2010-04-19 Thread chandrasekhar reddy
A HREF=?=$PHP_SELF;??intAction=2MODE=1IMG
SRC=../images/wizard/new_profile.png BORDER=0 onMouseDown=this.src =
'../images/wizard/new_profile_down.png'; onMouseUp=this.src =
'../images/wizard/new_profile.png';/A



How can i write this phpcode into cakephp

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: View (form-input) - Disable word wrap?

2010-04-19 Thread sebb86
Hello John,

thank you very much!

With this code, it looks like in the following screenshot:
[code]
.input
{
  width:45em;
  float:left;
}

.input label
{
  width:25%;
  float:left;
}

.input input
{
  width:75%;
  float:left;
}

.input input[type=checkbox]
{
float: none;
width: 0em;
}
[/code]

Screenshot: http://www.zshare.net/image/751380505863bb50/

So my last question is, how can i make a word-wrap for common input
fields?

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 1.2 Manual for print out (in pdf format)

2010-04-19 Thread zonery
I compiled cakephp 1.2 manual for print out from online book.

if you need, you can get it here;
http://www.ibonette.com/cakephp-1-2-manual-for-print-out/


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 Auth Component cannot remember url before authentication

2010-04-19 Thread cricket
On Apr 19, 6:19 am, Prof. No Time libertylivingst...@gmail.com
wrote:
 Thanks for the response Cricket, I have dumped my codes below. Please
 assist me. Regards.

 My AppController::beforeFilter()

 function beforeFilter(){
   $this-Auth-fields = array('username' = 'username', 'password' =
 'passkey');
   $this-Auth-allow($this-allowedActions);

The above line is unnecessary.

   $this-Auth-authorize = 'controller';
   $this-Auth-loginAction = array('controller' = 'users', 'action'
 = 'login');
   $this-Auth-loginRedirect = array('controller' = 'pages', 'action'
 = 'display', 'home');
   $this-Auth-logoutRedirect = '/';
   $this-Auth-autoRedirect = false;

The above line tells Auth not to call its own redirect() method, even
though the redirect var is set.


 }

 My UsersController::login()

 if ($this-Auth-user()) {
     if (!empty($this-data)) {
       $this-Session-setFlash('You have been logged in
 successfully');
       $this-_postLoginOperations(); //This method redirects the user
 based on role
       $this-data = array();
     }
     $this-redirect($this-Auth-redirect());

This is maybe a problem. You're instructing Auth to redirect if
there's no submitted data. IOW, the first time the login view is
displayed. That's what it looks like, anyway.

But I can't say more without knowing what _postLoginOperations() does.

When you say it doesn't work, do you mean that Auth is sending you
somewhere other than pages-display-home? Or that you're seeing an
endless loop? Something else?

Believe me--I know that Auth can be pretty darned confusing.

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 1.2 manual for print out (in pdf format)

2010-04-19 Thread zonery
if you need you can get it here;
http://www.ibonette.com/cakephp-1-2-manual-for-print-out/

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

2010-04-19 Thread John Andersen
In your view file, use the html helper for the link part!
Use the html helper for the image part with additional information to
support your onMouseDown/Up options.
When you have done that, please show us the code, so that we may
assist you further.
Enjoy,
   John

On Apr 19, 1:26 pm, chandrasekhar reddy chanduc...@gmail.com wrote:
 A HREF=?=$PHP_SELF;??intAction=2MODE=1IMG
 SRC=../images/wizard/new_profile.png BORDER=0 onMouseDown=this.src =
 '../images/wizard/new_profile_down.png'; onMouseUp=this.src =
 '../images/wizard/new_profile.png';/A

 How can i write this phpcode into cakephp

 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


Re: need

2010-04-19 Thread chandrasekhar reddy
?php
 echo $html-link($html-image('new_profile.png' , array('border' = '0',
'onMouseDown' = 'new_profile_down.png',
 'onMouseUp' = 'new_profile.png')), 'shownewprofile1', '?' =
array('intAction' = '2', 'MODE' = '1'), null);
?



On Mon, Apr 19, 2010 at 5:15 PM, John Andersen j.andersen...@gmail.comwrote:

 In your view file, use the html helper for the link part!
 Use the html helper for the image part with additional information to
 support your onMouseDown/Up options.
 When you have done that, please show us the code, so that we may
 assist you further.
 Enjoy,
   John

 On Apr 19, 1:26 pm, chandrasekhar reddy chanduc...@gmail.com wrote:
  A HREF=?=$PHP_SELF;??intAction=2MODE=1IMG
  SRC=../images/wizard/new_profile.png BORDER=0 onMouseDown=this.src =
  '../images/wizard/new_profile_down.png'; onMouseUp=this.src =
  '../images/wizard/new_profile.png';/A
 
  How can i write this phpcode into cakephp
 
  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.comcake-php%2bunsubscr...@googlegroups.comFor
   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.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://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


Re: Blank page when CakePHP is uploaded to the server

2010-04-19 Thread WhyNotSmile
Thanks John, I see what you mean.  I've no idea what causes that
though, or how to fix it :s - but at least I'm closer to the problem!

Thanks again,
Sharon

On 17 Apr, 17:18, John Andersen j.andersen...@gmail.com wrote:
 I have just been looking at your site with FF and Firebug. The
 interesting information I can see, is that your CSS, JS, and IMG
 directories are not accessable, they all return 404 errors.
 Hope this helps you on the way or other may be able to provide better
 information.
 Enjoy,
    John

 On Apr 17, 6:29 pm, WhyNotSmile sharongilmor...@googlemail.com
 wrote: Hi Andras, thanks for that.  I changed it as you suggested, and it's
  now looking a bit better, but it's as if CSS is disabled or it's not
  picking it up for some reason.  Nothing new is showing up in the error
  logs and there are no on-screen messages - it's got all the content
  now, but still none of the styling.

  Any ideas what I should try next?

  Thanks!
  Sharon

 [snip]

 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


Running Cake in subfolder

2010-04-19 Thread Andrei Mita
Hello,

I'm probably the 1000th guy who asks this question but I didn't manage to
find the answer on the group. I found some, but didn't apply to me.

I'm developing small apps using cake in order to get my head around it.
Every single time I start with a fresh copy by putting and renaming the
downloaded folder in my www root dir.

I have /var/www/blog, /var/www/tasks, /var/www/todo etc. Some of this copies
don't render the css files. I've tried altering the .htaccess to no result.

Any idea why and how to solve this? The official manual says it should work
right away.

Thanks,
Andrei

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: Running Cake in subfolder

2010-04-19 Thread Andrei Mita
I am ashamed to say I was editing apache setting on the production server
while running the cake app on the dev one.
My bad, mod-rewrite was the issue.



On Mon, Apr 19, 2010 at 11:01 AM, Andrei Mita andrei.m...@gmail.com wrote:

 Hello,

 I'm probably the 1000th guy who asks this question but I didn't manage to
 find the answer on the group. I found some, but didn't apply to me.

 I'm developing small apps using cake in order to get my head around it.
 Every single time I start with a fresh copy by putting and renaming the
 downloaded folder in my www root dir.

 I have /var/www/blog, /var/www/tasks, /var/www/todo etc. Some of this
 copies don't render the css files. I've tried altering the .htaccess to no
 result.

 Any idea why and how to solve this? The official manual says it should work
 right away.

 Thanks,
 Andrei


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: Running Cake in subfolder

2010-04-19 Thread chandrasekhar reddy
Whts the erroe its getting.tell me clearly then i will try to solve ur
query.

On Mon, Apr 19, 2010 at 1:31 PM, Andrei Mita andrei.m...@gmail.com wrote:

 Hello,

 I'm probably the 1000th guy who asks this question but I didn't manage to
 find the answer on the group. I found some, but didn't apply to me.

 I'm developing small apps using cake in order to get my head around it.
 Every single time I start with a fresh copy by putting and renaming the
 downloaded folder in my www root dir.

 I have /var/www/blog, /var/www/tasks, /var/www/todo etc. Some of this
 copies don't render the css files. I've tried altering the .htaccess to no
 result.

 Any idea why and how to solve this? The official manual says it should work
 right away.

 Thanks,
 Andrei

 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.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://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


cookbook for CAKEPHP

2010-04-19 Thread chandrasekhar reddy
if anybody want to download the cookbook of cake php

plz click on below link then u can download easily.

http://www.ibonette.com/cakephp-1-2-manual-for-print-out/

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


How do I modify date-TIME from datetime?

2010-04-19 Thread mivogt-LU
Hi there,

I would like to know if there is (and if then how to do) a way to
manipulate data from datetimefields.
I am doing a bookingsystem. Arrival is ment to be at 13:00, leave at
10 :00.

I use datetime fields in the views and database.
Now before saving I would like to always set the arrival to 12 and the
leave to 10 o clock.

This for I know I ll need to split up the datetime, manip it and
rejoin it.
Shure this might be done by stringmanipulation and concatenation, too.

I am looking for a more well-done way like any extract function inside
cake or php itselfe.

Suggest?

TIA

Michael

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

2010-04-19 Thread chandrasekhar reddy
?php
 echo $html-link($html-image('new_
profile.png' , array('border' = '0',  'onMouseDown' =
'new_profile_down.png',
 'onMouseUp' = 'new_profile.png')), 'shownewprofile1', '?' =
array('intAction' = '2', 'MODE' = '1'), null);
?


i tryed this one but its getting error


On Mon, Apr 19, 2010 at 5:15 PM, John Andersen j.andersen...@gmail.comwrote:

 In your view file, use the html helper for the link part!
 Use the html helper for the image part with additional information to
 support your onMouseDown/Up options.
 When you have done that, please show us the code, so that we may
 assist you further.
 Enjoy,
   John

 On Apr 19, 1:26 pm, chandrasekhar reddy chanduc...@gmail.com wrote:
  A HREF=?=$PHP_SELF;??intAction=2MODE=1IMG
  SRC=../images/wizard/new_profile.png BORDER=0 onMouseDown=this.src =
  '../images/wizard/new_profile_down.png'; onMouseUp=this.src =
  '../images/wizard/new_profile.png';/A
 
  How can i write this phpcode into cakephp
 
  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.comcake-php%2bunsubscr...@googlegroups.comFor
   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.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://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


Re: need

2010-04-19 Thread John Andersen
To me it looks like you are trying to have a link with an image, which
is to work like a button, that is, the image must change on mouse down
and up.

I would assume that the onMouseDown/Up events should either contain a
reference to a javascript function or javascript itself, not just the
filename of the image to use.

Also the last parameter to the html-link method should be false, so
that the html helper will not convert the image html into html
entities!

When you try to run the code, does it give any errors or surprises?
Enjoy,
   John

On Apr 19, 2:50 pm, chandrasekhar reddy chanduc...@gmail.com wrote:
 ?php
  echo $html-link($html-image('new_profile.png' , array('border' = '0',
 'onMouseDown' = 'new_profile_down.png',
  'onMouseUp' = 'new_profile.png')), 'shownewprofile1', '?' =
 array('intAction' = '2', 'MODE' = '1'), null);
 ?

 On Mon, Apr 19, 2010 at 5:15 PM, John Andersen j.andersen...@gmail.comwrote:



  In your view file, use the html helper for the link part!
  Use the html helper for the image part with additional information to
  support your onMouseDown/Up options.
  When you have done that, please show us the code, so that we may
  assist you further.
  Enjoy,
    John

  On Apr 19, 1:26 pm, chandrasekhar reddy chanduc...@gmail.com wrote:
   A HREF=?=$PHP_SELF;??intAction=2MODE=1IMG
   SRC=../images/wizard/new_profile.png BORDER=0 onMouseDown=this.src =
   '../images/wizard/new_profile_down.png'; onMouseUp=this.src =
   '../images/wizard/new_profile.png';/A

   How can i write this phpcode into cakephp

   Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp 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.comcake-php%2bunsubscr...@googlegroups.comFor
more options, visit this group athttp://
  groups.google.com/group/cake-php?hl=en

  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.comcake-php%2bunsubscr...@googlegroups.comFor
   more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en

 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


Re: need

2010-04-19 Thread chandrasekhar reddy
?php echo $html-
   image(
'new_profile_down.png',
 array(
'border' = 0,
'width'=56,
'height'=52,
'url' =
 array(
  'action' =
  'profiles', '?' =
array('intAction' = '2', 'MODE' = '1')
 )
 )
   );
?

i tryed this one its working i dontknow its working correct or not.

On Mon, Apr 19, 2010 at 6:05 PM, John Andersen j.andersen...@gmail.comwrote:

 To me it looks like you are trying to have a link with an image, which
 is to work like a button, that is, the image must change on mouse down
 and up.

 I would assume that the onMouseDown/Up events should either contain a
 reference to a javascript function or javascript itself, not just the
 filename of the image to use.

 Also the last parameter to the html-link method should be false, so
 that the html helper will not convert the image html into html
 entities!

 When you try to run the code, does it give any errors or surprises?
 Enjoy,
   John

 On Apr 19, 2:50 pm, chandrasekhar reddy chanduc...@gmail.com wrote:
  ?php
   echo $html-link($html-image('new_profile.png' , array('border' = '0',
  'onMouseDown' = 'new_profile_down.png',
   'onMouseUp' = 'new_profile.png')), 'shownewprofile1', '?' =
  array('intAction' = '2', 'MODE' = '1'), null);
  ?
 
  On Mon, Apr 19, 2010 at 5:15 PM, John Andersen j.andersen...@gmail.com
 wrote:
 
 
 
   In your view file, use the html helper for the link part!
   Use the html helper for the image part with additional information to
   support your onMouseDown/Up options.
   When you have done that, please show us the code, so that we may
   assist you further.
   Enjoy,
 John
 
   On Apr 19, 1:26 pm, chandrasekhar reddy chanduc...@gmail.com wrote:
A HREF=?=$PHP_SELF;??intAction=2MODE=1IMG
SRC=../images/wizard/new_profile.png BORDER=0
 onMouseDown=this.src =
'../images/wizard/new_profile_down.png'; onMouseUp=this.src =
'../images/wizard/new_profile.png';/A
 
How can i write this phpcode into cakephp
 
Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp
 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.comcake-php%2bunsubscr...@googlegroups.com
 cake-php%2bunsubscr...@googlegroups.comcake-php%252bunsubscr...@googlegroups.comFor
 more options, visit this group athttp://
   groups.google.com/group/cake-php?hl=en
 
   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.comcake-php%2bunsubscr...@googlegroups.com
 cake-php%2bunsubscr...@googlegroups.comcake-php%252bunsubscr...@googlegroups.comFor
 more options, visit this group at
  http://groups.google.com/group/cake-php?hl=en
 
  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.comcake-php%2bunsubscr...@googlegroups.comFor
   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.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://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 

Re: Using condiotion in find()

2010-04-19 Thread Lucca Mordente
Hi Ambika,

All of 'fields', 'conditions', 'order' and 'group' arrays must be
inside the same array which is the second parameter of find()
function. Like the following:

$maincategories = $this-MainCategory-find('list', array(
'fields' = 
array(

'main_category_id','main_category','type'
),
'conditions' = 
array(

'MainCategory.type' = ''
 ),
'order' = 
'MainCategory.main_category ASC',
'group' = 
'MainCategory.type'
   );






Ambika Kulkarni wrote:
 Hi all,

 i am using the following find() function to get the data in a list. I
 have put the conditions but still its taking all values.

 $maincategories = $this-MainCategory-find('list', array(
   'fields' = 
 array(
   
 'main_category_id','main_category','type'
   )
   ),
   array(
   'conditions' = 
 array(
   
 'MainCategory.type' = ''
)
   ),
   array(
   'order' = 
 'MainCategory.main_category ASC'
   ),
   array(
   'group' = 
 'MainCategory.type'
   )
  );

 O/P is
 select id=maincategories name=data[Campaigns]
 [maincategory_mainCategoryId]

 option value=11Wrap amp; pack exp  store/option
 option value=10Groceries amp; toiletries /option
 option value=9Fruit amp; vegetables /option
 option value=8Deli /option
 option value=7Perishables /option
 option value=6Fresh meat/option
 option value=5Major household appliances /option
 option value=4Non Foods /option
 option value=3Delicatessen dept./option
 option value=2Wet fish /option
 option value=1Bakery /option
 
 optgroup label=deprecated
 option value=25Petfood/option
 option value=24Wine/option
 option value=23Stationary/option
 option value=22Toys/option
 option value=21Non Foods/option
 option value=20Freezers/option
 option value=19Fridges/option
 option value=18Prepacked Fresh Vegetables/option
 option value=17Prepacked Fresh Fruit/option
 option value=16Groceries/option
 option value=15Household/option
 option value=14Baby Care/option
 option value=13Self Medication/option
 option value=12Toiletries/option
 /optgroup/select
 i want the data till the that line.
 Thanks
 Ambika

 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 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: Running Cake in subfolder

2010-04-19 Thread Andrei Mita
Solved it, mod_rewrite was the issue. Thanks.


On Mon, Apr 19, 2010 at 3:05 PM, chandrasekhar reddy
chanduc...@gmail.comwrote:

 Whts the erroe its getting.tell me clearly then i will try to solve ur
 query.

 On Mon, Apr 19, 2010 at 1:31 PM, Andrei Mita andrei.m...@gmail.comwrote:

 Hello,

 I'm probably the 1000th guy who asks this question but I didn't manage to
 find the answer on the group. I found some, but didn't apply to me.

 I'm developing small apps using cake in order to get my head around it.
 Every single time I start with a fresh copy by putting and renaming the
 downloaded folder in my www root dir.

 I have /var/www/blog, /var/www/tasks, /var/www/todo etc. Some of this
 copies don't render the css files. I've tried altering the .htaccess to no
 result.

 Any idea why and how to solve this? The official manual says it should
 work right away.

 Thanks,
 Andrei

 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.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://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.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://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


Re: mac users, which ide are you using to develop cakephp?

2010-04-19 Thread Renato de Freitas Freire
im using aptana studio...
really good... based on eclipse..


--
Renato de Freitas Freire
ren...@morfer.org


On Mon, Apr 19, 2010 at 3:42 AM, Martin Westin
martin.westin...@gmail.comwrote:

 No ide, just Textmate for me.



 On Apr 19, 6:14 am, Bryan Lim ytbr...@gmail.com wrote:
  Hi all,
 
  mac users, which ide are you using to develop cakephp? to compile and
  to debug?
 
  I search the group here and realised this discussion is dated back to
  2009. So, I want to know if there's any changes?
 
  thanks,
  Bryan
 
  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.comcake-php%2bunsubscr...@googlegroups.comFor
   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.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://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


is it advisable to use jquery on cakephp?

2010-04-19 Thread Bryan Lim
question as above.
I also want to ask if there's an official jquery helper for cakephp?
The one at the bakery is kinda outdated.


thanks!
Bryan

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: is it advisable to use jquery on cakephp?

2010-04-19 Thread Andy Dirnberger
Check out JsHelper in 1.3 
http://book.cakephp.org/view/1594/Using-a-specific-Javascript-engine

On Apr 19, 10:17 am, Bryan Lim ytbr...@gmail.com wrote:
 question as above.
 I also want to ask if there's an official jquery helper for cakephp?
 The one at the bakery is kinda outdated.

 thanks!
 Bryan

 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


Re: mac users, which ide are you using to develop cakephp?

2010-04-19 Thread MST
Coda

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: mac users, which ide are you using to develop cakephp?

2010-04-19 Thread Jon Bennett
 No ide, just Textmate for me.

+1

though reckon it's also due for an update...

j

-- 
jon bennett - www.jben.net - blog.jben.net

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: mac users, which ide are you using to develop cakephp?

2010-04-19 Thread Pablo Viojo
Eclipse PDT

Regards,

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

http://twitter.com/tiopaul (@tiopaul) | LinkedIn profile:
http://cl.linkedin.com/in/pviojo

¿Que necesitas?
http://www.needish.com


On Mon, Apr 19, 2010 at 11:29 AM, Jon Bennett jmbenn...@gmail.com wrote:

  No ide, just Textmate for me.

 +1

 though reckon it's also due for an update...

 j

 --
 jon bennett - www.jben.net - blog.jben.net

 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.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://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


Re: Bookmarkable AJAX URLs

2010-04-19 Thread Dmitry Shevchenko
Hi!
Thank you Bert Van den Brande for answer.

I have added a js script for modify browser address string:
echo location.hash=\$this-here\;;

What do you mean - I don't need to modify any Cake's urls?
if I didn't modify it - I will get a very funny urls - like:
domain.com/profiles/view/48229#/profiles/view/31460

to solve this problem I have create a url like:

domain.com/#/controller/action/..
for that I have modified a ajax helper

function link ($title, $link, $options = array(), $confirm = null,
$escapeTitle = true)
   {
  $options = $this-_addOptions($options);
   return parent::link($title,#.$link,$options,$confirm,
$escapeTitle);
   }

BUT how to write a correct route, to explain cake to ignore # and use
all what goes after  # in url.

please help




On 16 апр, 19:14, Bert Van den Brande cyr...@gmail.com wrote:
 Afaik using # is the way to go.

 Changing any other aspect of the url besides what comes after the # will
 result in a load of the changed url by the browser.

 You don't need Cake to change the url's, just some javascript code that you
 execute every time the user navigates using your ajax links.

 On Fri, Apr 16, 2010 at 5:41 PM, Dmitry Shevchenko dmitr...@gmail.comwrote:



  Hi!
  I use ajax link (by ajax helper) in my current app almost everywhere.
  I
  now, when user navigate throw the site, URLs in the browser address
  line didn't changed.
  That's why user can't create bookmarks.
  Does anyone knew, how to push browser change address line, or some
  other workaround.

  p.s. I knew one way - add # to each url. Browser will automatically
  add  this parameter to address line. But seems that this is too ugly
  workaround. (And I don't know how to implement it by using Cake)

  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.comcake-php%2bunsubscr...@googlegroups.comFor
   more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en

 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


Re: need

2010-04-19 Thread John Andersen
How does the HTML code look like, that your html-image code
generates?
What do you expect the generated HTML code to look like? And how do
you expect it to behave?
Enjoy,
   John

On Apr 19, 3:41 pm, chandrasekhar reddy chanduc...@gmail.com wrote:
                                     ?php echo $html-
                                                image(
                                                     'new_profile_down.png',
                                                      array(
                                                     'border' = 0,
                                                     'width'=56,
                                                     'height'=52,
                                                     'url' =
                                                      array(
                                                           'action' =
                                                           'profiles', '?' =
 array('intAction' = '2', 'MODE' = '1')
                                                      )
                                                      )
                                                );
                                     ?

 i tryed this one its working i dontknow its working correct or not.

[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: Blog Tutorial: Link doesn't work

2010-04-19 Thread Cake-it
I have my cake folder at the same hierarchy as the app folder. But the
entire project is located in a subfolder, which has the same name:
cake because I have also other projects running on this server. My
hierarchy looks like this:
...htdocs/cake
...htdocs/cake/app
...htdocs/cake/cake

Does cake have a problem with this directory structure? What do I have
to do in order to get the project running?

Thanks and best regards

Cake-it

On 19 Apr., 07:35, John Andersen j.andersen...@gmail.com wrote:
 Looks like your file structure in the web root is not as according 
 to:http://book.cakephp.org/view/329/Getting-Cake
 in which is written that cake and the app directory are on the same
 level in the directory hierachy. So in your case, it should be like
 this:
 ...htdocs/
 ...htdocs/app/
 ...htdocs/cake/

 Just for fun, try http://localhost:8000/cake/app/posts;
 Enjoy,
    John

 On Apr 18, 10:49 pm, Cake-it f.klammstei...@gmail.com wrote:





  Hi,
  In the blog tutorial at section 10.1.8, I followed all advices, but my
  link to http://localhost:8000/cake/posts/index; doesn't work. I tried
  also http://localhost:8000/cake/posts;.
  My blog application controllers is in the cake folder of my root: C:
  \Programme\Apache Software Foundation\Apache2.2\htdocs\cake\app
  \controllers
  Does anybody has an idea what could be wrong here?

  Thanks Cake-it

  Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp 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 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- 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: View (form-input) - Disable word wrap?

2010-04-19 Thread John Andersen
Do I understand you correctly, that you don't want the other fields
(name, index, status, etc.) to have the label aligned horizontally
with the input field?

Assuming that you do want them horizontally aligned, I usually never
use 100% in total for the label and the input field, as there usually
are some differences between browsers, so try to lower the input field
from 75% to 73% and see what happens.

Enjoy,
   John

On Apr 19, 1:50 pm, sebb86 kahlc...@googlemail.com wrote:
 Hello John,

 thank you very much!

 With this code, it looks like in the following screenshot:
 [code]
 .input
 {
   width:45em;
   float:left;

 }

 .input label
 {
   width:25%;
   float:left;

 }

 .input input
 {
   width:75%;
   float:left;

 }

 .input input[type=checkbox]
 {
         float: none;
         width: 0em;}

 [/code]

 Screenshot:http://www.zshare.net/image/751380505863bb50/

 So my last question is, how can i make a word-wrap for common input
 fields?
[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: Blog Tutorial: Link doesn't work

2010-04-19 Thread John Andersen
I can't tell you, as I have cake and my app at the root level and uses
apache virtual servers to ensure that the correct app is connected.

My hierarchy looks like:
...htdocs/cake
...htdocs/28871 = app 1
...htdocs/28872 = app 2
etc.

and my virtual servers points to /28871/webroot and /28872/webroot
respectively.

Hopefully someone else may be able to help you with this issue. Did
you try my last suggestion in my previous post?
Enjoy,
   John

On Apr 19, 7:14 pm, Cake-it f.klammstei...@gmail.com wrote:
 I have my cake folder at the same hierarchy as the app folder. But the
 entire project is located in a subfolder, which has the same name:
 cake because I have also other projects running on this server. My
 hierarchy looks like this:
 ...htdocs/cake
 ...htdocs/cake/app
 ...htdocs/cake/cake

 Does cake have a problem with this directory structure? What do I have
 to do in order to get the project running?

 Thanks and best regards

 Cake-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: Proper way to handle empty localization strings?

2010-04-19 Thread Vesa Jääskeläinen
Hi,

Well.. Lets make a better example. There are two examples in this email
and sorry for the length.

*** Example 1 ***

Lets say there is a customizable form element giving possibility to
select on case by case basis define how many edit field are present. In
some other place on web page there is 2 field and on some other 3 fields.

Lets have an interval (DateInterval) example.

User is asked to input interval when some event occures again. This data
is defined in human understandable format (ISO 8601) so that if user
defines every month then it really is every month and does not start to
slide.

Now user is presented three different fields to define it: years, months
and days.

[years] [months] [days]

To make it look a bit prettier to user (and to cover all known use
cases) in example in English it could be:

Event occurs every [years] years, [months] months and [days] days.

Then in some other page there could be:
Event occurs every [weeks] weeks.

Now how to define this programmatically then. The current idea is to
construct it in blocks:

{begin-message}{format[input1]}{in-between-delimeter}{format[input2]}{last-delimeter}{format[input2]}{end-message}

In the first case one can defined:

array(
begin-message = Event occurs every ,
end-message = .,
in-between-delimeter = , ,
last-delimeter =  and ,
format[input1] = {input} years,
format[input2] = {input} months,
format[input3] = {input} days
)

Now the localized version would be more like:

array(
begin message = ThisPlace.BeginMessageFormat,
end message = ThisPlace.EndMessageFormat,
...
)

Then in .po:

msgid ThisPlace.BeginMessageFormat
msgstr Event occurs every 

msgid ThisPlace.EndMessageFormat
msgstr .

With this mechanism one can create quite powerful tool.

Now lets say it has been decided that in some other locale it does not
need to be so verbose and user in that locale can easily guess what it
means or perhaps the just the writing style is just different.

Lets have example with less verbose to screen:

[years] years, [months] months and [days] days.

Now if one wants to hide the begin part obivious idea is to just define
empty string for begin-message.

Other example might be:
Event occurs every [years] years [months] months [days] days.

(delimeters went to empty strings)

When used with this kind of mechanism one cannot supply empty string
from localization file.

*** Example 2 ***

Another example could be that in some locale there is assumption that
some add-up-clauses are added because it has been custom for looong time.

Example, a hotel reservation page for non-smoking room:

Locale A: (it is custom that smoking is disallowed unless explicitly stated)

msgid Reservation.NonSmokingNotice
msgstr 

Locale B: (it is custom that smoking is allowed everywhere)

msgid Reservation.NonSmokingNotice
msgstr Please note that all our rooms are non-smoking rooms.

Now one could code that as following:

$nonSmokingNotice = __('Reservation.NonSmokingNotice', true);
if ($nonSmokingNotice != )
{
echo $html-tag('span', $nonSmokingNotice ...);
}

or simply:

__('Reservation.NonSmokingNotice');

***

From my point of view, both of these cases are valid and currently hard
to make without creating hacks in the helpers to catch for empty string
tag or to modify cake libs.

Thanks,
Vesa Jääskeläinen

On 19.4.2010 5:48, Miles J wrote:
 If there is no msgstr, it outputs the msgid.
 
 1 - Not a bug.
 
 2 - Why do you need to get an empty string?
 
 On Apr 18, 2:59 am, Vesa Jääskeläinen dach...@gmail.com wrote:
 Hi All,

 In some situations some localization entries in .po file can have
 empty strings defined in some languages and in some other languages
 there should be some text.

 So in example in locale A's .po file there would be:

 msgid Entry
 msgstr 

 And then in locale B's .po file:

 msgid Entry
 msgstr This local has special stuff here

 Now CakePHP seems to insist with __('Entry', true) giving Entry for
 locale A instead of defined empty string.

 So the questions:

 1) Can it be considered a bug that will be fixed in future release?
 Preferably in which :)

 2) If not, what is the way to get this empty string from localization
 file in proper CakePHP way?

 I can always hack CakePHP's libs to work in this way but I would like
 to keep it as close to original as possible.

 Thanks,
 Vesa Jääskeläinen

 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 

Re: is it advisable to use jquery on cakephp?

2010-04-19 Thread Matthew Powell
I use it, without the helper.  If using jQuery + Cake is wrong, I don't want
to be right.

Good luck,

Matt

On Mon, Apr 19, 2010 at 09:17, Bryan Lim ytbr...@gmail.com wrote:

 question as above.
 I also want to ask if there's an official jquery helper for cakephp?
 The one at the bakery is kinda outdated.


 thanks!
 Bryan

 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.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://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


Class Controller not found

2010-04-19 Thread AmitYadav
Hi,
My application is running fine on the development environment, but not
on production.
Its giving me this error

Fatal error: Class 'Controller' not found in D:\test\app
\app_controller.php  on line 5

I have cacke enabled on production.
I deleted the cache and still facing this problem

I am really in a fix with this.

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: Proper way to handle empty localization strings?

2010-04-19 Thread Vesa Jääskeläinen
Hi,

That can be the Cake's way but that is not a good way to make it.

Using msgid's (or keys if you prefer) to lookup the localization
database is much better way as then you have full power to differentiate
when needed the case when some specific case is only different in one of
the languages.

The key point here is to use common msgid's for most of the stuff and
when there is detected case where special handling is needed then
differentiate only for that case.

Using descriptive names does give enough information for developer to
pick up the correct stuff. And if something is wrong then localization
team (if you happen to have one) or the customer tells you what.

Also it helps for localization people to connect string to acutual usage
place.

Just using plain English in source code is bad. I think good example
here is with MS Word and referring numbered pictures.

In English (Picture is the category name):
In [Picture 1] you can see this and that.

In Finnish (Kuva is the category name):
[Kuvassa 1] näet sitä ja tätä.

But by default Word only provides:

[Kuva 1] näet sitä ja tätä.

Which is rather bad sounding and not proper.

Most probable reason is that English speaker who made the code have
never though that there might be a need to have only number as a
reference in the output and let user write proper terms around it. And
then localization team probably didn't pick it up as they only
translated a word.

Thanks,
Vesa Jääskeläinen

On 19.4.2010 8:00, Miles J wrote:
 The proper way in Cake to do l10n is to use full sentences. Not keys/
 slugs for the msgids.
 
 By doing so you can use Cakes l10n shell.
 
 On Apr 18, 9:38 pm, O.J. Tibi ojt...@gmail.com wrote:
 Localization strings in PO files should not be treated on a word-for-
 word basis. It is much more convenient to enter phrases (at the least)
 or paragraphs (at the most) that you want to translate. It might also
 be helpful that you do a page-by-page audit of your web app, and from
 there coordinate with your translator on how you would like to
 translate the content.

 On Apr 18, 1:59 pm, Vesa Jääskeläinen dach...@gmail.com wrote:



 Hi All,

 In some situations some localization entries in .po file can have
 empty strings defined in some languages and in some other languages
 there should be some text.

 So in example in locale A's .po file there would be:

 msgid Entry
 msgstr 

 And then in locale B's .po file:

 msgid Entry
 msgstr This local has special stuff here

 Now CakePHP seems to insist with __('Entry', true) giving Entry for
 locale A instead of defined empty string.

 So the questions:

 1) Can it be considered a bug that will be fixed in future release?
 Preferably in which :)

 2) If not, what is the way to get this empty string from localization
 file in proper CakePHP way?

 I can always hack CakePHP's libs to work in this way but I would like
 to keep it as close to original as possible.

 Thanks,
 Vesa Jääskeläinen

 Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp 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 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
 

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


Help please.... Postgres find() returns different array format as Mysql find()

2010-04-19 Thread Adam
Do I just have to re-write my application if I'm using Postgres? I
thought I could switch databases
and cake would handle it for me?

The array format for associated tables is different in Postgres than
it is in Mysql

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: Blank page when CakePHP is uploaded to the server

2010-04-19 Thread cricket
On Apr 19, 7:52 am, WhyNotSmile sharongilmor...@googlemail.com
wrote:
 Thanks John, I see what you mean.  I've no idea what causes that
 though, or how to fix it :s - but at least I'm closer to the problem!

It looks to me like your webroot is inaccessible. Try uploading a
simple page to webroot and then try seeing it. It might also be
instructive to make that a php file with phpinfo() in it.

But you're using ~shiver~ IIS so I don't know what else to suggest.

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: How do I modify date-TIME from datetime?

2010-04-19 Thread cricket
On Apr 19, 8:23 am, mivogt-LU c...@mivogt.net wrote:
 Hi there,

 I would like to know if there is (and if then how to do) a way to
 manipulate data from datetimefields.
 I am doing a bookingsystem. Arrival is ment to be at 13:00, leave at
 10 :00.

 I use datetime fields in the views and database.
 Now before saving I would like to always set the arrival to 12 and the
 leave to 10 o clock.

 This for I know I ll need to split up the datetime, manip it and
 rejoin it.
 Shure this might be done by stringmanipulation and concatenation, too.

Could you try explaining that again? Do you mean that you want to
change just the time portion of the datetime field? If so, look at
PHP's date/time functions:

http://www.php.net/manual/en/ref.datetime.php

Specifically, strtotime() will take your datetime field as input and
give you a timestamp. That can then be used with, eg. date() to output
in a different format. Or, you can use it to change portions of the
datetime field to something else.

$dt = '2010-04-19 01:19:32';

// change time to 4pm:

$dt = date('Y-m-d 16:00:00', strtotime($dt));

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: News with Comments - how to sort by comments count?

2010-04-19 Thread mpeshev
Yes, I did manually update all the fields and later tried to insert/
delete comments, but with no luck. Probably I have ruined the
automagic somewhere else in my add/delete code, but I doubt it.

I fixed the issue by adding two snippets to increment/decrement the
count on insert and delete. The magic didn't work for me. :)

On Apr 19, 10:33 am, WebbedIT p...@webbedit.co.uk wrote:
 Have your added the comment_count field to the news table and have you
 ran a query to update the counts as Cake only updates those counts
 using afterSave afterDelete?

 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


Re: View (form-input) - Disable word wrap?

2010-04-19 Thread sebb86
 Do I understand you correctly, that you don't want the other fields
 (name, index, status, etc.) to have the label aligned horizontally
 with the input field?

I want, that fields like Name or Duplex look equal to fields like
VLAN or Uplink.
That means, the i want the label on the left and next to it ( _not_
below the label) the input field.

When i change the value you mentioned, only the length of the input
field decreases.

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: mac users, which ide are you using to develop cakephp?

2010-04-19 Thread jacmoe
Disclaimer: I am not a Mac user, but..
I heartily recommend NetBeans. :)
Eclipse is nice, but NetBeans is faster, leaner and more productive,
IMO.
It's a very underrated IDE, and - like Eclipse - it has a PHP specific
edition.
Give it a try.

On Apr 19, 6:14 am, Bryan Lim ytbr...@gmail.com wrote:
 Hi all,

 mac users, which ide are you using to develop cakephp? to compile and
 to debug?

 I search the group here and realised this discussion is dated back to
 2009. So, I want to know if there's any changes?

 thanks,
 Bryan

 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


Re: News with Comments - how to sort by comments count?

2010-04-19 Thread cricket
On Apr 19, 1:23 pm, mpeshev nofear...@gmail.com wrote:
 Yes, I did manually update all the fields and later tried to insert/
 delete comments, but with no luck. Probably I have ruined the
 automagic somewhere else in my add/delete code, but I doubt it.

 I fixed the issue by adding two snippets to increment/decrement the
 count on insert and delete. The magic didn't work for me. :)

Try deleting contents of app/tmp/cache/models if you have caching
enabled.

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: View (form-input) - Disable word wrap?

2010-04-19 Thread John Andersen
With the given CSS it should do so!
Do you have FF and Firebug available? If you have, use them to verify
that the correct CSS applies to the label and input field.
Enjoy,
   John

On Apr 19, 8:40 pm, sebb86 kahlc...@googlemail.com wrote:
  Do I understand you correctly, that you don't want the other fields
  (name, index, status, etc.) to have the label aligned horizontally
  with the input field?

 I want, that fields like Name or Duplex look equal to fields like
 VLAN or Uplink.
 That means, the i want the label on the left and next to it ( _not_
 below the label) the input field.

 When i change the value you mentioned, only the length of the input
 field decreases.

[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: CakePHP 1.3 on ubuntu: white page, no error, no application

2010-04-19 Thread acl68



cricket-5 wrote:
 
 
 Ensure you have the following in php.ini:
 
 error_reporting = E_ALL
 display_errors = On
 
 Also, are you certain that the ww vhost doesn't have its own log?
 
 Also, try putting the following at top of webroot/index.php
 
 die('well, it works this far');
 
 

Thank you that helped. Error display_errors was set to Off and with the
error messages displayed I could easily fix it!

Thank you , you saved my desk from being bitten in frustration by me!

Anja

-- 
View this message in context: 
http://old.nabble.com/CakePHP-1.3-on-ubuntu%3A-white-page%2C-no-error%2C-no-application-tp28284886p28287737.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


Re: is it advisable to use jquery on cakephp?

2010-04-19 Thread Miles J
You use whatever you are comfortable with. I use jQuery without the
helpers, because the helpers just seem pointless.

On Apr 19, 7:39 am, Matthew Powell php...@gmail.com wrote:
 I use it, without the helper.  If using jQuery + Cake is wrong, I don't want
 to be right.

 Good luck,

 Matt



 On Mon, Apr 19, 2010 at 09:17, Bryan Lim ytbr...@gmail.com wrote:
  question as above.
  I also want to ask if there's an official jquery helper for cakephp?
  The one at the bakery is kinda outdated.

  thanks!
  Bryan

  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.comcake-php%2bunsubscr...@googlegroups.comFor
   more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en

 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


Re: Bookmarkable AJAX URLs

2010-04-19 Thread Miles J
Dont make everything AJAX. Its really pointless if you are loading the
whole content anyways.

It also breaks SEO and then you run into problems like this.

On Apr 19, 9:05 am, Dmitry Shevchenko dmitr...@gmail.com wrote:
 Hi!
 Thank you Bert Van den Brande for answer.

 I have added a js script for modify browser address string:
 echo location.hash=\$this-here\;;

 What do you mean - I don't need to modify any Cake's urls?
 if I didn't modify it - I will get a very funny urls - like:
 domain.com/profiles/view/48229#/profiles/view/31460

 to solve this problem I have create a url like:

 domain.com/#/controller/action/..
 for that I have modified a ajax helper

 function link ($title, $link, $options = array(), $confirm = null,
 $escapeTitle = true)
    {
       $options = $this-_addOptions($options);
    return parent::link($title,#.$link,$options,$confirm,
 $escapeTitle);
    }

 BUT how to write a correct route, to explain cake to ignore # and use
 all what goes after  # in url.

 please help

 On 16 апр, 19:14, Bert Van den Brande cyr...@gmail.com wrote:



  Afaik using # is the way to go.

  Changing any other aspect of the url besides what comes after the # will
  result in a load of the changed url by the browser.

  You don't need Cake to change the url's, just some javascript code that you
  execute every time the user navigates using your ajax links.

  On Fri, Apr 16, 2010 at 5:41 PM, Dmitry Shevchenko 
  dmitr...@gmail.comwrote:

   Hi!
   I use ajax link (by ajax helper) in my current app almost everywhere.
   I
   now, when user navigate throw the site, URLs in the browser address
   line didn't changed.
   That's why user can't create bookmarks.
   Does anyone knew, how to push browser change address line, or some
   other workaround.

   p.s. I knew one way - add # to each url. Browser will automatically
   add  this parameter to address line. But seems that this is too ugly
   workaround. (And I don't know how to implement it by using Cake)

   Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp 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.comcake-php%2bunsubscr...@googlegroups.comFor
more options, visit this group at
  http://groups.google.com/group/cake-php?hl=en

  Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp 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 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


Re: Blank page when CakePHP is uploaded to the server

2010-04-19 Thread WhyNotSmile
Thanks.

I can't view a page in webroot, but I did put phpinfo in a file which
is at www.softwaresolutionsni.co.uk/info.php.  I know this is no
longer really a PHP question, but I'd really appreciate if anyone
could either have a look and see whether it looks ok, or suggest a
group where I could ask about this... I really don't have much of a
clue when it comes to this kind of stuff - I can build sites ok, but I
hate all the hosting side of things!

Thanks,
Sharon



On 19 Apr, 18:08, cricket zijn.digi...@gmail.com wrote:
 On Apr 19, 7:52 am, WhyNotSmile sharongilmor...@googlemail.com
 wrote:

  Thanks John, I see what you mean.  I've no idea what causes that
  though, or how to fix it :s - but at least I'm closer to the problem!

 It looks to me like your webroot is inaccessible. Try uploading a
 simple page to webroot and then try seeing it. It might also be
 instructive to make that a php file with phpinfo() in it.

 But you're using ~shiver~ IIS so I don't know what else to suggest.

 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


Re: mac users, which ide are you using to develop cakephp?

2010-04-19 Thread kadanis
As a Mac user and a netbeans one, I agree.  Its a great app.  I can't
comment or compare against the others as I haven't really tried them
out, except Eclipse which I just didn't get on with.

Being a PHP and Python developer, Netbeans really works well for me
with good support for both language.  Fingers crossed they release a
Cake plugin at some point.

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: mac users, which ide are you using to develop cakephp?

2010-04-19 Thread Miles J
Netbeans user here too :]
Loving it.

On Apr 19, 1:24 pm, kadanis evad.ba...@gmail.com wrote:
 As a Mac user and a netbeans one, I agree.  Its a great app.  I can't
 comment or compare against the others as I haven't really tried them
 out, except Eclipse which I just didn't get on with.

 Being a PHP and Python developer, Netbeans really works well for me
 with good support for both language.  Fingers crossed they release a
 Cake plugin at some point.

 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


Print the AROS tree?

2010-04-19 Thread xtraorange
Howdy all..

Still not comfortable with cakephp yet.  What I'm looking to do here
is just print the AROS tree structure so I can verify everything is
where it should be (and so I can learn how to work with it later).
How would I go about doing this?

Thanks,
James

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


Special Cade for belongsTo association

2010-04-19 Thread MikeBates

I'm trying to limit an association between 2 models using the conditions key.
It works great in the 'parent' Model, but I can't work out how to get it
working properly in the 'child' Model.

Here's the relevant info from the models:
Product( 'id', 'name' );
ProductLoan( 'id', 'product_number', 'product_numbr_is_id' );

The hasMany association works fine in the Product Model:
var $hasMany = array(
'ProductLoan' = array(
'className' = 'ProductLoan',
'foreignKey' = 'product_number',
'dependent' = false,
'conditions' = array(
'ProductLoan.product_number_is_id' = 1
)
);

But I can't work out how to do the same thing in the belongsTo association
in ProductLoan Model:
var $belongsTo = array(
'Product' = array(
'className' = 'Product',
'foreignKey' = 'product_number',
'conditions' = array(
'ProductLoan.product_number_is_id' = 1
),
'fields' = '',
'order' = ''
)
);

If I leave the condition out cake tries to find matching products, which
will cause problems if a product_number is ever the same as an id in use
SELECT *
FROM `products` AS `Product` 
WHERE `Product`.`id` = 1234567890

If I put the condition in to belongsTo cake will try to use it by adding a
where to the sql
SELECT * 
FROM `products` AS `Product` 
WHERE `Product`.`id` = 1234567890 
AND `ProductLoan`.`product_number_is_id` = 1;

What I really need is something like this to be generated
SELECT * 
FROM `products` AS `Product`
INNER JOIN `product_loans` AS `ProductLoan`
ON `Product`.`id` = `ProductLoan`.`product_number`
AND `ProductLoan`.`product_number_is_id` = 1
WHERE `Product`.`id` = 1234567890;

That would ensure that a manually entered product number of 1234567890 would
never accidentally pick up the wrong product, which happened to have an id
of 1234567890.

Is there a way of setting up the association to use a more complicated sql
statement like that?

(NB I have no control over the product numbers used, and I have to allow for
data entry when the product number typed doesn't match a product that
already exists in the database)

Thanks for any insight on this.
Mike
-- 
View this message in context: 
http://old.nabble.com/Special-Cade-for-belongsTo-association-tp28287758p28287758.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


Re: hasMany relationship with underscore named table

2010-04-19 Thread xiaohouzi79
Hi John, thanks for the reply.

It's still not working:

In the /app/models folder I have two files:

Metric.php

?php
class Metric extends AppModel {
var $name = 'Metric';
var $recursive = 2;
var $hasMany = 'MetricLevel';
}
?

MetricLevel.php
?php
class MetricLevel extends AppModel {
var $name = 'MetricLevel';
var $useTable = 'metric_levels';
var $order = 'upper_value DESC';
}
?

I remove the cache files each time to make sure it's not using a
cached version. If I change either $useTable or $order it is
completely ignored, so I know it's not being picked up. But, if I
rename the MetricLevel.php file to a single name such as blah.php and
set Metric.php $hasMany = 'blah' and then $useTable = 'metric_levels'
it works. So for some reason when I set the name to the name of an
actual table it seems to be creating it's own model and ignoring mine?

Thanks,
Tim.




On Apr 19, 4:57 pm, John Andersen j.andersen...@gmail.com wrote:
 You model should be in singular form, which mean that is should be
 named MetricLevel not MetricLevels, then CakePHP will ensure that
 the correct table will be used.
 Enjoy,
    John

 On Apr 19, 9:08 am, xiaohouzi79 xiaohouz...@gmail.com wrote:



  Hi,

  I have one table metrics and another table metric_levels. In the
  Metric model I have $hasMany = 'MetricLevels' but anything inside the
  MetricLevels model is totally ignored.

  But, if I rename the model to 'Metric' and have $useTable =
  'metric_levels' it works fine. I've tried all combinations, but none
  seem to work. I've tried plurals, singulars, underscores, nothing
  seems to work. The model is simply ignored and it just takes the value
  from the database.

  Any help is appreciated.

  Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp 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 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


Re: hasMany relationship with underscore named table

2010-04-19 Thread xiaohouzi79
I've now managed to get it to work doing the following:

Here is how it is:

// metric.php
var $hasMany = 'MetricLevel'

// metric_level.php
?php
class MetricLevel extends AppModel {
var $name = 'MetricLevel';
var $useTable = 'metric_levels';
var $order = 'upper_value DESC';
var $belongsTo = 'colour';
}
?

The $order = 'upper_value DESC' is still being ignored, I don't know
why. But at least it's now using the correct model.


On Apr 20, 8:23 am, xiaohouzi79 xiaohouz...@gmail.com wrote:
 Hi John, thanks for the reply.

 It's still not working:

 In the /app/models folder I have two files:

 Metric.php

 ?php
 class Metric extends AppModel {
     var $name = 'Metric';
         var $recursive = 2;
     var $hasMany = 'MetricLevel';}

 ?

 MetricLevel.php
 ?php
 class MetricLevel extends AppModel {
     var $name = 'MetricLevel';
         var $useTable = 'metric_levels';
         var $order = 'upper_value DESC';}

 ?

 I remove the cache files each time to make sure it's not using a
 cached version. If I change either $useTable or $order it is
 completely ignored, so I know it's not being picked up. But, if I
 rename the MetricLevel.php file to a single name such as blah.php and
 set Metric.php $hasMany = 'blah' and then $useTable = 'metric_levels'
 it works. So for some reason when I set the name to the name of an
 actual table it seems to be creating it's own model and ignoring mine?

 Thanks,
 Tim.

 On Apr 19, 4:57 pm, John Andersen j.andersen...@gmail.com wrote:



  You model should be in singular form, which mean that is should be
  named MetricLevel not MetricLevels, then CakePHP will ensure that
  the correct table will be used.
  Enjoy,
     John

  On Apr 19, 9:08 am, xiaohouzi79 xiaohouz...@gmail.com wrote:

   Hi,

   I have one table metrics and another table metric_levels. In the
   Metric model I have $hasMany = 'MetricLevels' but anything inside the
   MetricLevels model is totally ignored.

   But, if I rename the model to 'Metric' and have $useTable =
   'metric_levels' it works fine. I've tried all combinations, but none
   seem to work. I've tried plurals, singulars, underscores, nothing
   seems to work. The model is simply ignored and it just takes the value
   from the database.

   Any help is appreciated.

   Check out the new CakePHP Questions sitehttp://cakeqs.organdhelpothers 
   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 sitehttp://cakeqs.organdhelp 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 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


drop-down list - displayed values

2010-04-19 Thread morficus
Hey guys,

I'm new to cakePHP and I love it. But I have ran in to a little snag
with the auto-baked views.

In them, I have a drop-down list which shows what group or client a
certain user is to be associated with (when creating new user
account). The issue... is that in on view the drop-down list box shows
the name of the items, but in other places it shows the ID's
How do I get it to show the names? I've looked at the model's and they
appear to be correct - so maybe I chose the wrong datatype when adding
data validation to the views? I've also made sure that my DB rows are
following the cakePHP naming conventions.

I could always manually re-write the particular view, but for the
future... I would like to no have to do this.
Thanks in advance :-)

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: mac users, which ide are you using to develop cakephp?

2010-04-19 Thread j...@lithophile.com

i use netbeans on mac and linux

i think its great!




On 04/19/2010 11:42 AM, jacmoe wrote:

Disclaimer: I am not a Mac user, but..
I heartily recommend NetBeans. :)
Eclipse is nice, but NetBeans is faster, leaner and more productive,
IMO.
It's a very underrated IDE, and - like Eclipse - it has a PHP specific
edition.
Give it a try.

On Apr 19, 6:14 am, Bryan Limytbr...@gmail.com  wrote:

Hi all,

mac users, which ide are you using to develop cakephp? to compile and
to debug?

I search the group here and realised this discussion is dated back to
2009. So, I want to know if there's any changes?

thanks,
Bryan

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



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


virtual fields in conditions

2010-04-19 Thread jharris
Hi everyone,

I've searched long and hard to find an answer to this but haven't had
luck. Tried IRC but didn't ever get a response from anyone.

Using the 1.3 branch, Is it possible to use a virtual field in a find
condition? Using the classic example,

var $virtualFields = array(
  'name' = 'CONCAT(Profile.first_name,  , Profile.last_name)'
);

$this-Profile-find('all', array(
  'conditions' = array(
'Profile.name LIKE' = 'har'
  )
));

You get the idea. The closest I've found is a forked cakephp version
on Git that supports this sort of thing (at least, it has commits that
say so). I've also done a little work where when parsing conditions I
use something like:
$conditions[$this-Profile-getVirtualField('name')] = 'har';

I don't like that above workaround for a ton of reasons. I've also
tried to directly refer to the generated alias (Profile__name) to no
avail. I'm no MySQL expert, so maybe there's a quirk with the double
underscore I'm not aware of.

If it's simply not supported as of yet, that's fine. I'll stop beating
myself up trying to figure out what I'm doing wrong ;)

-jharris

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: Multi-level Models in CakePHP

2010-04-19 Thread andy
Even with recursion, however, wouldn't one be able to use $this-Model-
unbindModel()  to take away any unwanted, extra associations?

http://book.cakephp.org/view/86/Creating-and-Destroying-Associations-on-the-Fly

It's all very likely that I didn't have correct associations
earlier... so that Walther's containable way didn't work with the
sample code.  But the A, B, and C associations listed above were the
same pattern as the full-name models.  So I couldn't find out why
containable wasn't including that third level (C) with the rest of the
results.

Thanks for the tip on containable...

Andy


On Apr 19, 12:04 am, WebbedIT p...@webbedit.co.uk wrote:
 Recursive may do the trick, but you should be getting your head around
 containable here and if your associations are correct the code Walther
 provided should have worked.

 Problem with recursive is if ModelA or ModelB are associated to other
 models it will go fetch them too as there is no way with recursive to
 select exactly the models you want.

 Spend some time with containable till you get your head around it, it
 is very much worth it!

 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


Re: Bookmarkable AJAX URLs

2010-04-19 Thread jacmoe
I agree with that.

Enter the phrase 'when to use ajax' in your search engine of choice
and read.

In my humble opinion, you need to re-think your application.

The URLs are probably the most important part of your site, almost as
important as your data.

In my own site I have a tabbed configuration page where I tried to use
jQuery for both the interface and the actions.
I failed.

Then, on my second round, I implemented the interface in php and the
actions in ajax, and got what I wanted:
a responsive interface with proper urls - in my case: 'projects/
project_name/settings?tab=members' and the members form is an ajax
form (because I don't need to reload the page, nor change the url for
that).
I then check for the url parameter tab in my projects/settings action
and set the class of the corresponding tab to active.
Works way better than jQuery for everything.
And search engines are happy too.

On Apr 19, 10:10 pm, Miles J mileswjohn...@gmail.com wrote:
 Dont make everything AJAX. Its really pointless if you are loading the
 whole content anyways.

 It also breaks SEO and then you run into problems like this.

 On Apr 19, 9:05 am, Dmitry Shevchenko dmitr...@gmail.com wrote:





  Hi!
  Thank you Bert Van den Brande for answer.

  I have added a js script for modify browser address string:
  echo location.hash=\$this-here\;;

  What do you mean - I don't need to modify any Cake's urls?
  if I didn't modify it - I will get a very funny urls - like:
  domain.com/profiles/view/48229#/profiles/view/31460

  to solve this problem I have create a url like:

  domain.com/#/controller/action/..
  for that I have modified a ajax helper

  function link ($title, $link, $options = array(), $confirm = null,
  $escapeTitle = true)
     {
        $options = $this-_addOptions($options);
     return parent::link($title,#.$link,$options,$confirm,
  $escapeTitle);
     }

  BUT how to write a correct route, to explain cake to ignore # and use
  all what goes after  # in url.

  please help

  On 16 апр, 19:14, Bert Van den Brande cyr...@gmail.com wrote:

   Afaik using # is the way to go.

   Changing any other aspect of the url besides what comes after the # will
   result in a load of the changed url by the browser.

   You don't need Cake to change the url's, just some javascript code that 
   you
   execute every time the user navigates using your ajax links.

   On Fri, Apr 16, 2010 at 5:41 PM, Dmitry Shevchenko 
   dmitr...@gmail.comwrote:

Hi!
I use ajax link (by ajax helper) in my current app almost everywhere.
I
now, when user navigate throw the site, URLs in the browser address
line didn't changed.
That's why user can't create bookmarks.
Does anyone knew, how to push browser change address line, or some
other workaround.

p.s. I knew one way - add # to each url. Browser will automatically
add  this parameter to address line. But seems that this is too ugly
workaround. (And I don't know how to implement it by using Cake)

Check out the new CakePHP Questions sitehttp://cakeqs.organdhelpothers
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.comcake-php%2bunsubscr...@googlegroups.c
 omFor more options, visit this group at
   http://groups.google.com/group/cake-php?hl=en

   Check out the new CakePHP Questions sitehttp://cakeqs.organdhelpothers 
   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 sitehttp://cakeqs.organdhelp 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 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 

Re: mac users, which ide are you using to develop cakephp?

2010-04-19 Thread Bryan Lim
Thanks for the reply guys... I will give netbean a try then :)



On Apr 20, 3:27 am, j...@lithophile.com j...@lithophile.com wrote:
 i use netbeans on mac and linux

 i think its great!

 On 04/19/2010 11:42 AM, jacmoe wrote:



  Disclaimer: I am not a Mac user, but..
  I heartily recommend NetBeans. :)
  Eclipse is nice, but NetBeans is faster, leaner and more productive,
  IMO.
  It's a very underrated IDE, and - like Eclipse - it has a PHP specific
  edition.
  Give it a try.

  On Apr 19, 6:14 am, Bryan Limytbr...@gmail.com  wrote:
  Hi all,

  mac users, which ide are you using to develop cakephp? to compile and
  to debug?

  I search the group here and realised this discussion is dated back to
  2009. So, I want to know if there's any changes?

  thanks,
  Bryan

  Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp 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 
  tocake-...@googlegroups.com
  To unsubscribe from this group, send email 
  tocake-php+unsubscr...@googlegroups.comfor more options, visit this 
  group athttp://groups.google.com/group/cake-php?hl=en

  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 
  tocake-...@googlegroups.com
  To unsubscribe from this group, send email 
  tocake-php+unsubscr...@googlegroups.comfor more options, visit this group 
  athttp://groups.google.com/group/cake-php?hl=en

 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 tocake-...@googlegroups.com
 To unsubscribe from this group, send email 
 tocake-php+unsubscr...@googlegroups.comfor 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


Fatal Error Class I18n not found

2010-04-19 Thread Amber Hill
Hello,
I am new to programming and my first assignment is on CAKE-PHP.  I have
created a table and ran bake. But it gave me this error Fatal Error Class
I18n not found. Can u plz help me as to how can I resolve the issue.

Thanks, Appreciate it.

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: how to get count of users for each event

2010-04-19 Thread mdb
Hello

Thanks for the reply.

I think i didnt explain properly. The sample you show is for view page
of each event.

But my requirement is for the event display grid where you wont have a
event id

we get all events and display in a grid. In that grid we add one more
column no. of registrations,
where we get the count of users registered.





On Apr 18, 10:49 pm, nurvzy nur...@gmail.com wrote:
 I agree with John Andersen, you should use the counterCache in this
 situation, but to answer your question -- how do you preform acount
 in CakePHP from a hasMany relationship -- you get acountlike this:

 //in a events_controller.php within
 function view($id){
   $attendants_count = $this-Event-EventRegistration-find('count',
 array('conditions' = 'EventRegistration.event_id' = $id));
   $this-set(compact('attendants_count'));}

 That's the easiest way to get acountof a hasMany relationship from a
 parent. However, I highly suggest using counterCache so you'll have
 thiscountdata within your parent table (events).

 HTH
 Nick

 On Apr 15, 4:05 pm, mdb meena.d...@gmail.com wrote:





  Hello,

  I have Events view.ctp where i display list of Events (Event Name ,
  Location and Date)

  In EventRegistration table i have the users registered for each event.
  (Event id , UserId)

  Now in my EventView.ctp i need to add no. of registered users for each
  event.

  the SQL query will be

  Select a.EventName,a.EventLocation,a.Date,
  (Selectcount(*) from EventRegistraion b where b.EventId = a.EventID)
  as userscount
   from Events a.

  How do i write the equivalent of this query in cakephp?

  Please Help

 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- Hide quoted text -

 - Show quoted text -

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: How To Use POST HTTP Method in REST cakePHP?

2010-04-19 Thread rijal.asep.nugr...@gmail.com
my problem has solved. I combine with post httpsocket
http://book.cakephp.org/view/803/post

in web service project, i work according 
http://book.cakephp.org/view/477/The-Simple-Setup

ex:
1. Make Recipes Controller
?php
// file : app/controllers/recipes_controller.php
class RecipesController extends AppController {
   var $data=array();
   var $components=array('RequestHandler');
   var $helpers=array('Html', 'Xml');

   function add(){
 if (isset($_POST[0])) $this-data['Recipe']=$_POST[0];

 if ($this-data){
   if ($this-Recipe-save($this-data)) {
   $data['result']=1;
   $data['message']='Recipe has been added';
   }
   else {
   $data['result']=0;
   $data['message']='Error. please try
again.';
}
 }
 $this-set(compact('data'));
 $this-RequestHandler-renderAs($this, 'xml');
 }
}
?

2. make file app/views/layout/xml/default.ctp
?php
// file : app/views/layout/xml/default.ctp
echo $xml-header();
echo $content_for_layout;
?

3. make file app/views/recipes/xml/add.ctp
container
?php echo $xml-serialize($data);?
/container

DONE for web service project.

then we need to make recipe project to consume web service.
1. Make Recipe model
?php
// file : app/models/recipe.php
class Recipe extends AppModel{
var $useTable=false;
}
?

2.  make Recipes Controller
?php
// file : app/controllers/recipes_controller.php
class RecipesController extends AppController{
var $components=array('Session');

function beforeFilter(){
App::import('Core', 'HttpSocket');
App::import('Core', 'Xml');
}

function add(){
if ($this-data){

$HttpSocket = new HttpSocket();
$data = 
$HttpSocket-post('http://localhost/recipeswebservice/
recipes/add', array($this-data['Recipe']));
$data = new Xml($data);
$data = $data-toArray();
if ($data['Container']['StdClass']['result']) {

$this-Session-setFlash($data['Container']['StdClass']
['message']);
$this-redirect('/');
die();
}
else {

$this-Session-setFlash($data['Container']['StdClass']
['message']);
}

}
}
}
?
3. Make view for add recipe
span?php $session-flash(); ?/spanbr/



?php echo $form-create('Recipe', array('url'='/recipes/add'));?

?php echo $form-input('recipe', array('type'='textarea'));?

?php echo $form-end('Add');?

ALL DONE


On Apr 6, 10:59 am, Rijal Asep Nugroho ri...@sam-design.net wrote:
 Dear all,

 I've tried to run step by step according to the manual about the REST
 cakePHP (Chapter 4.10.1)http://book. cakephp.org/ view/477/ The-Simple-
 Setup http://book.cakephp.org/view/477/The-Simple-Setup, had succeeded in
 displaying the xml for the index and view actions.

 But I have problem to Add, Edit, Delete cause not finding an adequate
 explanation about how to use POST, PUT, DELETE HTTP Method in the manual.

 please help me. thanks,

 regards,
 Rijal Asep Nugroho

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: where do i put the external library in cakephp

2010-04-19 Thread Bryan Lim
do i put it at vendors or app/vendors?

it is supposed to be used in one of the controller.

On Apr 19, 4:02 am, thatsgreat2345 thatsgreat2...@gmail.com wrote:
 Put it in vendors folder.
 Here is an example showing you how to import a vendor if it doesn't
 follow cake conventions naming 
 wise.http://book.cakephp.org/view/579/Loading-Files

 On Apr 18, 12:29 pm, Bryan Lim ytbr...@gmail.com wrote:



  hi all,

  if i am using the twitterlibphp library, where should i put this
  library in?

  so that require twitter.lib.php; will work?

  thanks,
  bryan

  Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp 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 
  tocake-...@googlegroups.com
  To unsubscribe from this group, send email 
  tocake-php+unsubscr...@googlegroups.comfor more options, visit this group 
  athttp://groups.google.com/group/cake-php?hl=en

 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 tocake-...@googlegroups.com
 To unsubscribe from this group, send email 
 tocake-php+unsubscr...@googlegroups.comfor 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


importing external library from vendors

2010-04-19 Thread Bryan Lim
I am using netbean on mac.

I place my external library on vendors ( not app/vendors)

then I created an object from the library. without

App::import('vendor', 'aUniqueIdentifier', array('file' ='path/
relative/to/vendor/file.php'));

as mentioned http://book.cakephp.org/view/579/Loading-Files

It seems to be able to detect the library without this import
statement.

why?

so do i really need to include this import statement?


thanks
bryan

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: mac users, which ide are you using to develop cakephp?

2010-04-19 Thread morficus
Same here. I'm using Aptana Studio as well.

I love that I can have it SFTP into my server and to dev locally (you
can also choose to mount a WebDav)


On Apr 19, 9:56 am, Renato de Freitas Freire renat...@gmail.com
wrote:
 im using aptana studio...
 really good... based on eclipse..

 --
 Renato de Freitas Freire
 ren...@morfer.org

 On Mon, Apr 19, 2010 at 3:42 AM, Martin Westin
 martin.westin...@gmail.comwrote:





  No ide, just Textmate for me.

  On Apr 19, 6:14 am, Bryan Lim ytbr...@gmail.com wrote:
   Hi all,

   mac users, which ide are you using to develop cakephp? to compile and
   to debug?

   I search the group here and realised this discussion is dated back to
   2009. So, I want to know if there's any changes?

   thanks,
   Bryan

   Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp 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.comcake-php%2bunsubscr...@googlegroups.c
omFor more options, visit this group athttp://
  groups.google.com/group/cake-php?hl=en

  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.comcake-php%2bunsubscr...@googlegroups.c 
  omFor more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en

 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


Re: Using condiotion in find()

2010-04-19 Thread Ambika Kulkarni
Hi It worked Thanks :)

On Mon, Apr 19, 2010 at 6:15 PM, Lucca Mordente luccamorde...@gmail.comwrote:

 Hi Ambika,

 All of 'fields', 'conditions', 'order' and 'group' arrays must be
 inside the same array which is the second parameter of find()
 function. Like the following:

 $maincategories = $this-MainCategory-find('list', array(
'fields' =
 array(

  'main_category_id','main_category','type'
 ),
'conditions'
 = array(

  'MainCategory.type' = ''
 ),
'order' =
 'MainCategory.main_category ASC',
'group' =
 'MainCategory.type'
   );






 Ambika Kulkarni wrote:
  Hi all,
 
  i am using the following find() function to get the data in a list. I
  have put the conditions but still its taking all values.
 
  $maincategories = $this-MainCategory-find('list', array(
'fields' =
 array(
 
 'main_category_id','main_category','type'
)
),
array(
 
 'conditions' = array(
 
 'MainCategory.type' = ''
 )
),
array(
'order' =
 'MainCategory.main_category ASC'
),
array(
'group' =
 'MainCategory.type'
)
   );
 
  O/P is
  select id=maincategories name=data[Campaigns]
  [maincategory_mainCategoryId]
 
  option value=11Wrap amp; pack exp  store/option
  option value=10Groceries amp; toiletries /option
  option value=9Fruit amp; vegetables /option
  option value=8Deli /option
  option value=7Perishables /option
  option value=6Fresh meat/option
  option value=5Major household appliances /option
  option value=4Non Foods /option
  option value=3Delicatessen dept./option
  option value=2Wet fish /option
  option value=1Bakery /option
 
 
  optgroup label=deprecated
  option value=25Petfood/option
  option value=24Wine/option
  option value=23Stationary/option
  option value=22Toys/option
  option value=21Non Foods/option
  option value=20Freezers/option
  option value=19Fridges/option
  option value=18Prepacked Fresh Vegetables/option
  option value=17Prepacked Fresh Fruit/option
  option value=16Groceries/option
  option value=15Household/option
  option value=14Baby Care/option
  option value=13Self Medication/option
  option value=12Toiletries/option
  /optgroup/select
  i want the data till the that line.
  Thanks
  Ambika
 
  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.comcake-php%2bunsubscr...@googlegroups.comFor
   more options, visit this group at
 http://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.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://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


_controller convention

2010-04-19 Thread Bryan Lim
Hi all,

according to the convention

why is only controller named by _controller ? while model and view
aren't following..

thanks
bryan

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


Embedded excel kills session with IE

2010-04-19 Thread weckmann
Hi everyone,

I've googled a lot but did not find any solution to this problem:

We are offering some CSV data export in our web application.
This will open a CSV file in a new browser window via javascript.

In that new browser window you usually get asked if you want to save
or open the file...

It works perfectly fine for all browsers, but on IE8 I have the
problem that if you choose to open the file directly, it will be
opened embedded in the new browser window as IE plugin, and when I go
back to the parent window, there my session is lost!

The session does not get touched if I just save the file. Only opening
it directly in the new browser window does spoil the session in the
original window.


I've seen quiet a lot problems with IE and sessions lost, and already
tried setting CakePHP security level to low and also opened the new
window with a JS object, but nothing helped.


Any more ideas, solutions?

Thanks a lot!

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 fbconnect login issue

2010-04-19 Thread devil_incarnated

i got a slight problem here folks...the login page logins with fbconnect but
it goes to the desired page in the pop-up window after logging in with
facebook username and password...i want it to go to that page in the main
window.and login link should change to logoutwhat am i missing?
-- 
View this message in context: 
http://old.nabble.com/cakePHP-fbconnect-login-issue-tp28287799p28287799.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


Re: mac users, which ide are you using to develop cakephp?

2010-04-19 Thread #2Will
coda. dosn't prompt you for cake functions etc but the ftp publishing,
terminal integration, svn  etc is ace. its just all very easy.

On Apr 20, 1:38 pm, morficus morfi...@gmail.com wrote:
 Same here. I'm using Aptana Studio as well.

 I love that I can have it SFTP into my server and to dev locally (you
 can also choose to mount a WebDav)

 On Apr 19, 9:56 am, Renato de Freitas Freire renat...@gmail.com
 wrote:



  im using aptana studio...
  really good... based on eclipse..

  --
  Renato de Freitas Freire
  ren...@morfer.org

  On Mon, Apr 19, 2010 at 3:42 AM, Martin Westin
  martin.westin...@gmail.comwrote:

   No ide, just Textmate for me.

   On Apr 19, 6:14 am, Bryan Lim ytbr...@gmail.com wrote:
Hi all,

mac users, which ide are you using to develop cakephp? to compile and
to debug?

I search the group here and realised this discussion is dated back to
2009. So, I want to know if there's any changes?

thanks,
Bryan

Check out the new CakePHP Questions sitehttp://cakeqs.organdhelpothers
   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.comcake-php%2bunsubscr...@googlegroups.c
 omFor more options, visit this group athttp://
   groups.google.com/group/cake-php?hl=en

   Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp 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.comcake-php%2bunsubscr...@googlegroups.c
omFor more options, visit this group at
  http://groups.google.com/group/cake-php?hl=en

  Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp 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 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


Re: Bookmarkable AJAX URLs

2010-04-19 Thread Dmitry Shevchenko
Thank you for you advices, but I can't stop using ajax on my site, I
have a chat window on my pages, so if page will reloaded - I have to
relogin user to chat - this will overload chat server.
I knew about SEO problems, but I think we could fix it by sitemap and
robots.txt

So I needed a solution, how to wrote correct route with using # ,
like- domain.com/#/controller/action/params
I need  to explaine route ignor first #

Something simmilar to facebook urls - where most of all urls have a #!/
url

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