i18n broken in 1.3.2?

2010-06-08 Thread Aaron Shafovaloff
I get this when I run my shells in 1.3.2:

Call to undefined method App::path() in /var/www/cake/libs/i18n.php
on line 264

The 1.2 to 1.3 migration guide says:

Configure::read('modelPaths') replaced by App::path('models')

... but i18n.php is a core file. Any ideas?

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: i18n broken in 1.3.2?

2010-06-08 Thread Aaron Shafovaloff
If I set core.php to have

Configure::write('debug', 1);

Trouble is, I need this set to 0 for a number of reasons.

On Jun 8, 12:26 pm, Aaron  Shafovaloff aarons...@gmail.com wrote:
 I get this when I run my shells in 1.3.2:

 Call to undefined method App::path() in /var/www/cake/libs/i18n.php
 on line 264

 The 1.2 to 1.3 migration guide says:

 Configure::read('modelPaths') replaced by App::path('models')

 ... but i18n.php is a core file. Any ideas?

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: i18n broken in 1.3.2?

2010-06-08 Thread Aaron Shafovaloff
I discovered the problem was calls to __(...) etc, so it's definitely
a problem with i18n

On Jun 8, 1:04 pm, Aaron  Shafovaloff aarons...@gmail.com wrote:
 If I set core.php to have

 Configure::write('debug', 1);

 Trouble is, I need this set to 0 for a number of reasons.

 On Jun 8, 12:26 pm, Aaron  Shafovaloff aarons...@gmail.com wrote:



  I get this when I run my shells in 1.3.2:

  Call to undefined method App::path() in /var/www/cake/libs/i18n.php
  on line 264

  The 1.2 to 1.3 migration guide says:

  Configure::read('modelPaths') replaced by App::path('models')

  ... but i18n.php is a core file. Any ideas?

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


Heads up: UUID pimary field can now be stored as binary instead of char

2009-05-21 Thread Aaron Shafovaloff

Just a heads up: CakePHP, as of about 2 months ago I think, supports
UUIDs as a binary primary field type instead of just char.

See:

https://trac.cakephp.org/ticket/4119

I believe the field length still has to be 36.

From this:

http://www.mysqlperformanceblog.com/2007/03/13/to-uuid-or-not-to-uuid/

I think I gather that using the binary field type brings it down to 16
bytes instead of 36 bytes (even though the field length is left at
36?).

Take care,

Aaron
--~--~-~--~~~---~--~~
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: Heads up: UUID pimary field can now be stored as binary instead of char

2009-05-21 Thread Aaron Shafovaloff

Hrmm, actually from this:

http://kekoav.com/blog/36-computers/58-uuids-as-primary-keys-in-mysql.html

and this:

http://www.mydatabasesupport.com/forums/mysql/246972-uuid-datatype.html

... it seems one really does need to use binary(16) and then perform a
hex conversion, otherwise there isn't a performance increase. But
CakePHP requires the length of 36 with a binary type.

Any thoughts?

On May 21, 5:09 pm, Aaron  Shafovaloff aarons...@gmail.com wrote:
 Just a heads up: CakePHP, as of about 2 months ago I think, supports
 UUIDs as a binary primary field type instead of just char.

 See:

 https://trac.cakephp.org/ticket/4119

 I believe the field length still has to be 36.

 From this:

 http://www.mysqlperformanceblog.com/2007/03/13/to-uuid-or-not-to-uuid/

 I think I gather that using the binary field type brings it down to 16
 bytes instead of 36 bytes (even though the field length is left at
 36?).

 Take care,

 Aaron
--~--~-~--~~~---~--~~
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: Master / Slave Support

2009-01-19 Thread Aaron Shafovaloff

Thanks much. I didn't realize the old (and easy) method of doing this
was deprecated.

On Jan 19, 10:04 am, Andreas Hofmann
andreas.hofman...@googlemail.com wrote:
 Hi all,

 we have discovered a way how to realize master/slave support with cake
 (also with multiple slaves).
 This old post is completely 
 depricated:http://groups.google.com/group/cake-php/browse_thread/thread/58ea010f...
 Because Model::find() and Model::save() create the $db-handle lines
 before it calles the callbacks 'beforeFind' and 'beforeSave'.

 The way we realized is to overwrite the save() and updateAll()
 methodes and to set the default db-config in the AppModel::__construct
 ().

 Note: One thing remains: It's not possible to do a bindModel in the
 'beforeSave' and 'afterSave' callbacks, because they get the wrong db-
 config... If you find a way to do it, please let us know!

 1. Define your Database-Configs in app/config/database.php. You should
 have master and as much slaves you want to have:

 class DATABASE_CONFIG {

   var $master = array(
     driver' = 'mysql',
     'persistent' = false,
     'host' = 'localhost',
     'login' = 'login',
     'password' = 'password',
     'database' = 'database',
     'encoding' = 'utf8'
   );

   // Config for Slave #1
   var $slave1 = array(
     driver' = 'mysql',
     'persistent' = false,
     'host' = 'slave1',
     'login' = 'login',
     'password' = 'password',
     'database' = 'database',
     'encoding' = 'utf8'
   );

   // Config for Slave #2
   var $slave2 = array(
     driver' = 'mysql',
     'persistent' = false,
     'host' = 'slave2',
     'login' = 'login',
     'password' = 'password',
     'database' = 'database',
     'encoding' = 'utf8'
   );
 ...

 }

 2. Create/Alter app/models/app_model.php and create/alter the
 constructor '__construct' of it like the following:

 class AppModel extends Model {

   public function __construct($id = false, $table = null, $ds = null)
 {

     /**
      * USED FOR MASTER/SLAVE MECHANIC *
      **/
     // If a datasource is set via params, use it and return
     if((is_array($id)  isset($id['ds'])) || $ds) {
       parent::__construct($id, $table, $ds);

       return;
     }

     // Use a static variable, to only use one connection per page-call
 (otherwise we would get a new handle every time a Model is created)
     static $_useDbConfig;
     if(!isset($_useDbConfig)) {
       // Get all available database-configs
       $sources_list = ConnectionManager::enumConnectionObjects();

       // Find the slaves we have
       $slaves = array();
       foreach($sources_list as $name = $values) {
         // Slaves have to be named slave1, slave2, etc...
         if(preg_match('/^slave[0-9]+$/i', $name) == 1) {
           $slaves[] = $name;
         }
       }

       // Randomly use a slave
       $_useDbConfig = $slaves[rand(0, count($slaves) - 1)];
       $this-_usedSlave = $_useDbConfig;
     }
     $this-useDbConfig = $_useDbConfig;

     parent::__construct($id, $table, $ds);
   }
 ...

 }

 This method uses a local static variable to save the db-config
 application-wide. It collects all configs from the database.php that
 start with slave# and selects a random one for it. This is now the
 default-config for the application that is used with every query
 done via the Model-class UNTIL we do the next step:

 3. We now overwrite the Model::save() and Model::find() methods to use
 another database-config for write-queries!
 Note: We discovered, that it's not enough to just overwrite Model::save
 (), because Model::updateAll() doesn't use the callbacks, neither the
 Model::save() method.

   function save($data = null, $validate = true, $fieldList = array())
 {
     // Remember the old config
     $oldDb = $this-useDbConfig;
     // Set the new config
     $this-setDataSource('master');
     // Call the original Model::save() method
     $return = parent::save($data, $validate, $fieldList);
     // Reset the config/datasource
     $this-setDataSource($oldDb);

     return $return;
   }

   function updateAll($fields, $conditions = true) {
     $oldDb = $this-useDbConfig;
     $this-setDataSource('master');
     $return = parent::updateAll($fields, $conditions);
     $this-setDataSource($oldDb);

     return $return;
   }

 Now you should have full master/slave support within your cake-
 application.
 The way it works:
 When your application is called, the AppModel will be called the first
 time and realizes, that the local $_useDbConfig variable is not set.
 So it randomly selects one of your slave-configs and sets this to the
 default used database-config (AppModel::useDbConfig). Every further
 instance of AppModel will recognize that the local $_useDbConfig
 variable already exists and will use the same config.
 Now every query you do will use this slave-config, EXCEPT all save's
 and updateAll's, because you've overwritten these methods to use your
 

Re: Question about database.php

2008-11-11 Thread Aaron Shafovaloff

? :-)

On Nov 10, 5:55 pm, Aaron  Shafovaloff [EMAIL PROTECTED] wrote:
 Any reason why database.php doesn't follow the Configure:write()
 format, i.e. why it isn't something Configure::read can read?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Question about database.php

2008-11-11 Thread Aaron Shafovaloff

Good question. I want my installer script to create the database.php
file in the same way other config files are created.

On Nov 11, 11:43 am, Sam Sherlock [EMAIL PROTECTED] wrote:
 whats the reason you want it to work like this?

 you can define different db connections

 2008/11/11 Aaron Shafovaloff [EMAIL PROTECTED]



  ? :-)

  On Nov 10, 5:55 pm, Aaron  Shafovaloff [EMAIL PROTECTED] wrote:
   Any reason why database.php doesn't follow the Configure:write()
   format, i.e. why it isn't something Configure::read can read?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Question about database.php

2008-11-10 Thread Aaron Shafovaloff

Any reason why database.php doesn't follow the Configure:write()
format, i.e. why it isn't something Configure::read can read?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: CakePHP not recommenable for busy websites?

2008-09-21 Thread Aaron Shafovaloff

Yeah, get to know the containable behavior.

On Sep 21, 12:35 am, toby78 [EMAIL PROTECTED] wrote:
 I am currently evaluating different frameworks and also looking at
 cakePHP.

 My first thought was that it seems not very efficient...

 If you have an object, e.g. User that has other related objects such
 as Message or Photo - there will be SQL statements to select all
 content from all related tabled - no matter whether it is used or not.

 If you have a large database table this could also lead to problems as
 the query is not pages, but everything is selected at once?

 There also does not seem to be a caching of database queries?

 Or is this possible? And if so, how do you define which queries are
 cached in which intervall?

 Thanks!

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



Re: How do I, from a controller, count the number of queries made?

2008-09-04 Thread Aaron Shafovaloff

Any ideas?

On Sep 3, 2:18 pm, Aaron  Shafovaloff [EMAIL PROTECTED] wrote:
 How do I, from a controller, count the number of queries made? I would
 like to log the count of queries without using the table that debug=2
 prints out.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



How do, from a controller, I count the number of queries made?

2008-09-03 Thread Aaron Shafovaloff

How do I, from a controller, count the number of queries made? I would
like to log the count of queries without using the table that debug=2
prints out.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



How do I, from a controller, count the number of queries made?

2008-09-03 Thread Aaron Shafovaloff

How do I, from a controller, count the number of queries made? I would
like to log the count of queries without using the table that debug=2
prints out.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Is migrations support planned for Cake?

2008-05-20 Thread Aaron Shafovaloff

It'd be great if schema arrays could include an old_name field, so
that CakePHP could not only create fields and create tables, but
rename them. In other words, something like:

class BlogSchema extends CakeSchema {
public $posts = array(
'id' = array('type' = 'integer', 'null' = false, 'default'
= NULL, 'key' = 'primary'),
'title' = array('type' = 'string', 'null' = false, 'length'
= 100, 'old_name' = 'name'),
'content' = array('type' = 'text', 'null' = false,
'old_name' = 'body'),
'indexes' = array('PRIMARY' = array('column' = 'id',
'unique' = 1))
);
}

Get my drift? If we could somehow tell Cake the history of a
particular table or field, it seems like we could get the best of both
worlds.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Cookbook overhaul proposal

2008-05-13 Thread Aaron Shafovaloff

 Sorry, I wasn't aware that this was up for public discussion
 because usually we leave these sorts of decisions to people who are
 actually, you know, doing the work.

That's why I gave a proposal, not a demand. And I'd be happy to set up
a MediaWiki installation for you and do all the initial setup work.

  This extension, which will be integrated into Wikipedia in
  the coming months, allows for people to edit the draft of a page, and
  for users with a special privilege of reviewer to tweak and approve
  and even rate the proposed changes.

 The coming months?  How about we put something together ourselves in
 the coming weeks, or hell, days.  It is Cake after all.  Shouldn't be
 too hard assuming we can find the time.  Which of course is always the
 trick.

While FlaggedRevs extension will be integrated into Wikipedia in the
coming months, it is already available as a working extension for
MediaWiki. I use it at Theopedia.com.

 The Cookbook code or the Cookbook content?  The Cookbook code is going
 to be released under the MIT license, the same as Cake itself.

I meant the Cookbook content.

Keep in mind, my proposal rids the Cake team of having to do any
development work on the wiki application itself. As of this point,
they seem to be spending time on the wiki application. I'm not trying
to add to their work, but rather lighten the load and address multiple
concerns.

If you think it is audacious and brash to put forth such a proposal,
then... oh well, it was still worth trying. I still appreciate the
CakePHP team and all the work they do.  Keep up the good work.

Take care,

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



Re: Cookbook overhaul proposal

2008-05-13 Thread Aaron Shafovaloff

I can assure you that the tone wasn't sneering or cocky, it was a
sincere, constructive proposal. If you don't like my idea, then shoot
it down. No hard feelings.

To me, FlaggedRevs seems to make using a wiki all the more attractive.
I have suggested abandoning the progressive chapter-breakdown and
partitioning large pages, but hadn't (to my knowledge) received any
clear specific responses on it. I have suggested using a wiki before,
but the main objection I heard was that it once before became
unmanageable due to users having the ability to immediately change
live content. People were apparently adding unreliable information,
too. These past few days I have successfully integrated the
FlaggedRevs extension into my own Theopedia.com wiki. It prompted me
to write the proposal. I'm aware of the whole we tried a wiki and it
didn't work issue, but FlaggedRevs seems to be a great solution to
the problems you were having before.

Anyways, you guys have voiced your rejection of the wiki+FlaggedRevs
idea vehemently and clearly. No need to send any hounds or unholster
your guns. :-)

On May 13, 9:27 am, nate [EMAIL PROTECTED] wrote:
 Aaron, the brashness wasn't in the proposal itself, but in the tone in
 which it was presented.  Also in the fact that you already presented
 the idea once, and it was rejected unanimously.  Add to that the fact
 that discussions of a wiki, in all it's forms and facets, has already
 played out numerous times, each with the same conclusion.

 On May 13, 11:16 am, Aaron  Shafovaloff [EMAIL PROTECTED] wrote:

   Sorry, I wasn't aware that this was up for public discussion
   because usually we leave these sorts of decisions to people who are
   actually, you know, doing the work.

  That's why I gave a proposal, not a demand. And I'd be happy to set up
  a MediaWiki installation for you and do all the initial setup work.

This extension, which will be integrated into Wikipedia in
the coming months, allows for people to edit the draft of a page, and
for users with a special privilege of reviewer to tweak and approve
and even rate the proposed changes.

   The coming months?  How about we put something together ourselves in
   the coming weeks, or hell, days.  It is Cake after all.  Shouldn't be
   too hard assuming we can find the time.  Which of course is always the
   trick.

  While FlaggedRevs extension will be integrated into Wikipedia in the
  coming months, it is already available as a working extension for
  MediaWiki. I use it at Theopedia.com.

   The Cookbook code or the Cookbook content?  The Cookbook code is going
   to be released under the MIT license, the same as Cake itself.

  I meant the Cookbook content.

  Keep in mind, my proposal rids the Cake team of having to do any
  development work on the wiki application itself. As of this point,
  they seem to be spending time on the wiki application. I'm not trying
  to add to their work, but rather lighten the load and address multiple
  concerns.

  If you think it is audacious and brash to put forth such a proposal,
  then... oh well, it was still worth trying. I still appreciate the
  CakePHP team and all the work they do.  Keep up the good work.

  Take care,

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



Re: Trying to update record, not insert!

2008-05-13 Thread Aaron Shafovaloff

Shouldn't it be...

$this-User-id = $data['User']['id'];

?

On May 13, 10:27 am, theandystratton [EMAIL PROTECTED]
wrote:
 To preface, I've seen this a few places before but the solutions given
 aren't getting me anywhere.

 I've got a basic User model extending AppModel, I'm finding a record
 based on the matching the data in 2 fields, changing 1 field in the
 returned array and trying to save (update) that record by sending the
 array back to the save method...

 // start code:

 $data = $this-User-find( array('User.username' = $username,
 'User.email' = $email) );

 $data['User']['passwd'] = $this-Auth-password('test');

 //
 // problem occurs with or without following line:
 // $this-User-user_id = $data['User']['user_id'];
 //

 $this-User-save( $data );

 // end of code.

 This results in an attempt to insert a new record with the user_id in
 $data.

 Any help is appreciated, I've migrated into Cake this week and am
 trying to convert an existing procedural app to it.

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



Cookbook overhaul proposal

2008-05-12 Thread Aaron Shafovaloff

I propose that the Cake team use MediaWiki with the FlaggedRevs
extension (http://www.mediawiki.org/wiki/Extension:FlaggedRevs)
instead of their homegrown wiki, which currently has a closed review
process. This extension, which will be integrated into Wikipedia in
the coming months, allows for people to edit the draft of a page, and
for users with a special privilege of reviewer to tweak and approve
and even rate the proposed changes. This would effectively carry over
the functionality of the homemade wiki that book.cakephp.org now uses.
Some advantages would include:

 - Outsiders could see not only the default last-reviewed page, but
also see the proposed changes. The process would be more open.

 - People could engage in MediaWik-style discussions that are attached
to a page.

 - Instead of a progressive chapter breakdown of the content, I would
hope that the Cake team would allow for larger pages to split into
specific topical pages. I also propose using a more comprehensive
front page for the wiki, which would have a handy taxonomy of links to
those simply using the wiki as a reference guide. This would be much
more intuitive than the current menu on the Cookbook.

 - The efSyntaxHighlight_GeSHiSetup MediaWiki extension could be used
to prettify code.

 - The CakePHP team wouldn't have to bother maintaining/improving
their home-made wiki application. MediaWiki is a great wiki project
that continues to grow and be improved. Wikipedia uses it, so it's not
likely at all that the application development would go inactive.

 - MediaWiki's template can be customized to the liking of the CakePHP
team.

I also propose that the Cookbook be put under a Creative Commons
license, but I hear that this is already forthcoming.

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



Re: 1.2 Documentation has made amazing progress

2008-05-08 Thread Aaron Shafovaloff

I might disagree on the way the book is structured, but I'd have to
agree that it has come a long way. I use it a lot now. Good job, guys.

On May 8, 10:33 am, keymaster [EMAIL PROTECTED] wrote:
 I think it's time to change the initial knee-jerk reaction when
 speaking about cake's documentation.

 If I remember correctly, only 3-4 months ago there was something like
 190 pages. Most of the new 1.2 features were either totally
 undocumented, or sparse at best.

 I just had a look today using a pdf created version of the 1.2
 cookbook. It currently weighs in at over 330 pages!

 We clearly have to recognize that the progress on these 1.2 docs over
 the last couple of months, has been nothing short of amazing.

 The 1.2 documentation is now, literally, light years better than it
 was just a few months ago.

 A couple of more months at this pace, with community members
 continuing to use the doc, post suggestions, amendments, fleshing out
 the stuff not yet documented, etc. and I believe we will have totally
 obliterated any lingering perception of the documentation being an
 issue.

 Much appreciation to John Anderson, AD7-Six et al., for the great
 work. Let's all pitch in and submit something to the cookbook to help
 them.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: 1.2 Documentation has made amazing progress

2008-05-08 Thread Aaron Shafovaloff

It's been sporadically unresponsive today. Perhaps they're not
caching?

On May 8, 11:04 am, Sliv (Tim MacAleese) [EMAIL PROTECTED] wrote:
 Yes, indeed, I use it a lot too - maybe at some point there will be a
 way to mirror it to contributed servers so it doesn't get too slow due
 to the size and number of people using it :P
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: ARGHH - why is geneateList deprecated

2008-05-07 Thread Aaron Shafovaloff

Whoaa

Chill out dude. At the end of the day, these guys have built a great
framework and they're volunteering their time to help on groups like
this.

Try out the IRC channel sometime, perhaps you'd feel more comfortable
there.

On May 7, 4:52 pm, MikeK [EMAIL PROTECTED] wrote:
 Thanks for the response, especially yours Nate. It's not a simple find
 and replace as the syntax of the additional calls must be massaged for
 each one and is different for various forms and models. Yes my editor
 has search and replace and your tone SUCKS. It says I should consider
 myself LUCKY such a BRILLIANT mind as yours deigns to provide such
 wonderfule FUNCTIONALITY.

 Where is the documentation on the new and 'beautiful' find(list) ?
 It's not in the API and it appears the old manual has been gutted.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Is the documentation at book.cakephp.org open source?

2008-05-06 Thread Aaron Shafovaloff

 The answer seems to be because some people believe that a wiki is the
 solution to all of mankind's problems.

You are correct. :-) I think wikis best harness the power of
collective intelligence and collaboration for projects like
documentation.

Also, it it makes sense that CakePHP documentation be under the same
license at CakePHP itself.

Not trying to ruffle feathers or thumb my nose at anyone. I want to
see CakePHP succeed.

On May 6, 8:56 am, mbavio [EMAIL PROTECTED] wrote:
 This forking wiki has nothing to do with the attemp to fork CakePHP,
 or has it? Seems like we are under attack!

 On May 6, 11:50 am, John David Anderson [EMAIL PROTECTED]
 wrote:

  On May 6, 2008, at 8:36 AM, Marcin Domanski wrote:

   Hey
   The content is owned by the Cake Software Foundation (...)
   Can you elaborate why is that ?
   Why not use GPL ? GFDL ? Creative Commons ?
   For me it's wierd that a community contributed documentation
   cannot be
   used by the community without an approval.

   Mostly because we don't want 17 different copies of the content out
   on
   the web in different forms.
   Why don't you want that ? wikipedia is freely available and i don't
   see the problem where articles are available on other sites as long as
   people know its from wikipedia.

  There's also *one* wikipedia. How many side wikipedia efforts are
  flourishing?

   People know that the official docs are
   at cakephp.org.

  I disagree. Besides, even if your assertion was true, what's the point
  in creating parallel efforts? If everyone knows where to get it from
  the source, why would they visit other efforts? We've battled this
  problem before, especially with CakePHP sites in other languages.
  People *don't* know, especially when they're introduced to us through
  a non-official channel.

   but the content in the manual is meant to be reviewed and contributed
   to in an official setting.
   Yes but that doesn't really mean that the content couldn't be under
   GPL or whatever.

  I think it does. What's the point of having a license like that when
  we only want the content coming from one place?

   What did you want to use it for?
   i didnt want to use it, but lets say - an in-house company cake
   course.

  Feel free to reference or quote from it inside your course materials,
  just like you would any other material.

   My point is:
   It's weird that a community contributed documentation cannot be used
   by the community without an approval.
   I'm love you guys and i'm ok with the cookbook, i just think its not
   fair that community contributed docs aren't under an open license
  http://www.free-culture.cc/

  I think the need to eliminate confusion is greater than the need for
  open content. I still haven't even heard of a decent use case for
  wanting to re-publish it. And if we did, I'd imagine we'd grant
  permission.

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



Re: Is the documentation at book.cakephp.org open source?

2008-05-06 Thread Aaron Shafovaloff

Well, the book does harness collective intelligence and collaboration,
but I personally think wikis do that best. In summary, I like the
flexibility of interlinking (I think that's what it's called), of
evolving large pages into smaller chunks, of categorizing pages, of
discussion areas attached to each page.

I think an online book serves somewhat a different purpose and has a
different structure than a wiki. A wiki's table of contents, for one,
are going to be more topical than progressive like a book's ToC. I
personally find book.cakephp.org's table of contents disorienting.
Maybe I'm just dense.

I probably don't have a solid philosophical presentation for my
preference of a wiki. It's really just that, a preference.

On May 6, 11:44 am, AD7six [EMAIL PROTECTED] wrote:
 On May 6, 7:38 pm, Aaron  Shafovaloff [EMAIL PROTECTED] wrote:

   The answer seems to be because some people believe that a wiki is the
   solution to all of mankind's problems.

  You are correct. :-) I think wikis best harness the power of
  collective intelligence and collaboration for projects like
  documentation.

 In what way (pending enhancements aside) does the book not harness the
 power of collective intelligence and collaboration.

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



Re: Is the documentation at book.cakephp.org open source?

2008-05-06 Thread Aaron Shafovaloff

My meager, scanty effort has begun here:

http://www.cakedocs.org/

On May 6, 12:20 pm, Aaron  Shafovaloff [EMAIL PROTECTED] wrote:
 Well, the book does harness collective intelligence and collaboration,
 but I personally think wikis do that best. In summary, I like the
 flexibility of interlinking (I think that's what it's called), of
 evolving large pages into smaller chunks, of categorizing pages, of
 discussion areas attached to each page.

 I think an online book serves somewhat a different purpose and has a
 different structure than a wiki. A wiki's table of contents, for one,
 are going to be more topical than progressive like a book's ToC. I
 personally find book.cakephp.org's table of contents disorienting.
 Maybe I'm just dense.

 I probably don't have a solid philosophical presentation for my
 preference of a wiki. It's really just that, a preference.

 On May 6, 11:44 am, AD7six [EMAIL PROTECTED] wrote:

  On May 6, 7:38 pm, Aaron  Shafovaloff [EMAIL PROTECTED] wrote:

The answer seems to be because some people believe that a wiki is the
solution to all of mankind's problems.

   You are correct. :-) I think wikis best harness the power of
   collective intelligence and collaboration for projects like
   documentation.

  In what way (pending enhancements aside) does the book not harness the
  power of collective intelligence and collaboration.

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



Re: Is the documentation at book.cakephp.org open source?

2008-05-06 Thread Aaron Shafovaloff

The URL is now:

http://www.unauthorizedcakeguide.com/

On May 6, 11:16 pm, Dr. Tarique Sani [EMAIL PROTECTED] wrote:
 On Wed, May 7, 2008 at 8:14 AM, Aaron Shafovaloff [EMAIL PROTECTED]
 wrote:



  My meager, scanty effort has begun here:

 http://www.cakedocs.org/

 Sigh! what a waste

 I may have differences of opinion on some of the ideas of core devs on some
 semantics of *freedom* as applied to Open Source. I also agree that forking
 can be a way of healthy competition but it is a last resort.

 If people have problems with cookbook lets hear them and lets see some code
 contributions - gwoo has promised Amit to open the code soon so that the
 patches can be submitted and I am looking forward to it

 This and that something on top project I feel is a waste of efforts but
 again it is those contributor's efforts and it is for them to find ways to
 utilize it...

 Just my 2ps (thats USD0.000484)

 Tarique

 P.S. Amit sits next to me and I can peek into his mail ;)

 --
 =
 Cheesecake-Photoblog:http://cheesecake-photoblog.org
 PHP for E-Biz:http://sanisoft.com
 =
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Is the documentation at book.cakephp.org open source?

2008-05-05 Thread Aaron Shafovaloff

Is the documentation at book.cakephp.org open source?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Is the documentation at book.cakephp.org open source?

2008-05-05 Thread Aaron Shafovaloff

I'd like to put the content in an open wiki (using MediaWiki). Yeah,
I've heard the objections (but why don't you...). I'm aware of what
I can already do for book.cakephp.org, and I'm aware of the pro's and
con's of an open wiki.

On May 5, 8:06 pm, Chris Hartjes [EMAIL PROTECTED] wrote:
 On Mon, May 5, 2008 at 10:00 PM, Aaron Shafovaloff [EMAIL PROTECTED] wrote:

   Is the documentation at book.cakephp.org open source?

 Why do you ask?

 --
 Chris Hartjes
 Internet Loudmouth
 Motto for 2008: Moving from herding elephants to handling snakes...
 @TheKeyBoard:http://www.littlehart.net/atthekeyboard
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Is the documentation at book.cakephp.org open source?

2008-05-05 Thread Aaron Shafovaloff

Thanks for the clarification. I'll just start from scratch.

On May 5, 8:56 pm, Gwoo [EMAIL PROTECTED] wrote:
 The book is open. Anyone is free to contribute.

 The content is owned by the Cake Software Foundation and contributed
 by loyal members of the CakePHP community who value collaboration and
 central location for information and resources related to the CakePHP
 project. Therefore, you cannot reproduce, distribute, or prepare
 derivative works based on its content for any purpose, without the
 permission of the Cake Software Foundation.

 Bake on.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Twitter Component

2008-04-26 Thread Aaron Shafovaloff

I'm having the same problem as mmayes:

Notice (1024): XML cannot be read [CORE\cake\libs\xml.php, line 748]

This happens after a status_update (which seems successful).

On Apr 16, 11:33 am, strangy [EMAIL PROTECTED] wrote:
 Hello,
 I wrote thetwittercomponent and I tested most of the functions and
 they worked in my tests.
 During development I had problems with authentication because in the
 __getAuthHeader function I've used method = 'basic' instead
 of method = 'Basic'. After I fixed that authentication worked.

 Today I found one bug in the user_show function. The url had one space
 at the beginning.
 You can fetch the code by cloning the git repository. The repository
 url is git://gitorious.org/cakephp-twitter-cpomponent/mainline.git

 I've  never got the error you are reporting.
 Can you provide some more info about the error. Maybe you are missing
 something.

 You can see how I use the component in the code of my new blog that
 will replace my rails one that is online now.
 The code is also on gitorious and you can clone it form
 git://gitorious.org/munitic-com-hr/mainline.git

 P.S.
 You will not be able to run the blog app because there are some files
 missing like database.php that I didn't include for obvious reasons :)

 Enjoy!
 On Apr 16, 6:48 pm, mmayes [EMAIL PROTECTED] wrote:

  Hi all,

  I've been trying to get theTwittercomponent working under Cake 1.2
  beta. Whenever I attempt a request that requires authentication, I get
  the error:

  Notice (1024): XML cannot be read [CORE/cake/libs/xml.php, line 748]

  My username and password are set correctly, and when I access the xml
  page and enter them into the HTTP challenge, it works. But I cannot
  get the component to work other than with methods that do not require
  authentication.

  Anybody have any tips? The component I'm referring to it 
  here:http://bakery.cakephp.org/articles/view/twitter-component

  Cheers,
  Matt
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Twitter Component

2008-04-26 Thread Aaron Shafovaloff

Specifically, I'm having the same problem as Matt when I use
status_update to send a direct message. direct_messages_new just
simply isn't working.

On Apr 16, 10:48 am, mmayes [EMAIL PROTECTED] wrote:
 Hi all,

 I've been trying to get theTwittercomponent working under Cake 1.2
 beta. Whenever I attempt a request that requires authentication, I get
 the error:

 Notice (1024): XML cannot be read [CORE/cake/libs/xml.php, line 748]

 My username and password are set correctly, and when I access the xml
 page and enter them into the HTTP challenge, it works. But I cannot
 get the component to work other than with methods that do not require
 authentication.

 Anybody have any tips? The component I'm referring to it 
 here:http://bakery.cakephp.org/articles/view/twitter-component

 Cheers,
 Matt
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: .po files not being read suddenly

2008-03-28 Thread Aaron Shafovaloff

For some reason my app will read and use for translation:

locale/eng/eng.po

but not

locale/eng/LC_MESSAGES/default.po

Any ideas?

On Mar 26, 8:29 pm, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
 Solved! When I added the Auth stuff yesterday, I included some
 settings in AppController::beforeFilter(), including:

 $this-Auth-loginError = __('Invalid e-mail / password combination.
 Please try again', true);

 Once I commented that out everything worked as before. So this call to
 translate() was somehow messing things up royally.

 And, it seems obvious to me now that setting this is unnecessary
 because I can place it in the login() method's flash msg.

 On Mar 26, 9:55 pm, [EMAIL PROTECTED] [EMAIL PROTECTED]
 wrote:

  Stranger and stranger. I decided to disable Auth because it was that
  that I'd added to the site before i18n stopped working. As soon as I
  did that, my Configure::read('Config.language') now shows the new
 languagesetting. Why would Auth be screwing around with
  Config.language?

  Unfortunately, I'm still not seeing anything translated ;-(

  I'm using cake_1.2.x.x_24.01.2008, btw.

  As an aside, does anyone know how to globally disable Auth without
  removing it from the $components array in AppController? Doing that
  isn't great because I then had to comment out all of the Auth-

  allow(...) calls in 5 other controllers.

  On Mar 26, 9:37 pm, [EMAIL PROTECTED] [EMAIL PROTECTED]
  wrote:

   I think I've narrowed down the problem if not the solution. Looking
   through i18n.php I noticed that the getInstance() method checks the
   session, but only if thelanguageis not found in the core config.

   function getInstance() {
   static $instance = array();
   if (!$instance) {
   $instance[0] = new I18n();
   $instance[0]-l10n = new L10n();

   $language= Configure::read('Config.language');
   if ($language=== null  
   !empty($_SESSION['Config']['language'])) {
   $language= $_SESSION['Config']['language'];
   }

   $instance[0]-l10n-get($language);
   }
   return $instance[0];

   }

   Since I'm doinglanguageswitching this seems backwards to me. If it's
   been switched, the newlanguagewould never be picked up here, it
   seems. Anyway, I stuck debug(i18n: ${language}); in there but
   $languageis consistently empty.

   Trying my initial hunch, I modified the method to have:

   if (!empty($_SESSION['Config']['language']))
   {
   $language= $_SESSION['Config']['language'];}

   else
   {
   $language= Configure::read('Config.language');

   }

   This seems more reasonable to me because mylanguageswitching code (a
   modified version of  Jason Chow's P28NComponent) is writing the newly-
   requested lang to the session.

   But the debug() is still showing it's empty, however. So, I put
   debug($_SESSION) in my default.ctp and it properly shows the new
  language, eg:

   Array
   (
   [Config] = Array
   (
   [userAgent] = 67d3fbdba7bd59adfe49aefd8b4eb32b
   [time] = 1206579533
   [rand] = 563719418
   [timeout] = 9
   [language] = fr
   )
   )

   When I print the output from Configure::read('Config.language') on the
   page I see en-us. This doesn't change even when I modify the
   component to add a Configure::write('Config.language', $lang);

   Does anyone have any thoughts on why the session appears to be empty
   in the i18n class? And, if this is normal, why getInstance() would
   bother checking it?

   On Mar 26, 12:59 am, [EMAIL PROTECTED] [EMAIL PROTECTED]
   wrote:

I got some L10n stuff working yesterday but it now seems to have
stopped. I'd extracted a new default.pot file because I had a lot more
strings to translate. I had the script overwrite the one I made
yesterday and copied it into:

locale/eng/LC_MESSAGES/default.po
locale/fre/LC_MESSAGES/default.po
locale/spa/LC_MESSAGES/default.po

Later on, I noticed that I wasn't seeing any changes when switching
languages. $session-read('Config.language') does show the change from
onelanguageto another. And I can immediately see changes to a msgstr
in the eng default.po, so I know that one's being read.

I have caching disabled and I've made no other changes to core.
Neither have I done anything to thelanguagesettings I had.

Any idea what I may have done (or left out) to cause this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Fatal error: Allowed memory size of...

2008-03-06 Thread Aaron Shafovaloff

I lately am getting this:

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to
allocate 2873212 bytes) in C:\Users\Aaron\workspace\cake\libs\cache
\file.php on line 138

Is this a bug in Cake?

I haven't been getting this before. Any ideas on how to prevent it? I
would hope that I wouldn't have to keep upping the memory?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Is JQuery replacing Prototype in cake?

2008-02-17 Thread Aaron Shafovaloff

Both jQuery and Prototype are wonderful frameworks. I'd hope
arrangements would be made for developers who use either.

On Feb 17, 1:52 pm, MattC [EMAIL PROTECTED] wrote:
 To make sure I wasn't misrepresenting what was said I re-listened to
 the podcast.  I'm not sure who is talking (Mariano says it's Nate in
 one of the comments above), but it's at about the 30:35 mark.

 -Mattwww.pseudocoder.com

 On Feb 17, 2:08 pm, Chris Hartjes [EMAIL PROTECTED] wrote:

  On Feb 17, 2008 2:07 PM, MattC [EMAIL PROTECTED] wrote:

   That's my blog...I heard it on the CakeFest wrapup podcast (http://
   live.cakephp.org/shows/view/7).

   -Matt
  www.pseudocoder.com

  Hrm...I listened to that same podcast, but obviously not close enough.
   Shame on me for daring to work at the same time I was listening to
  the podcast.

  Matt, thanks for clearing that up.

  --
  Chris Hartjes
  Internet Loudmouth
  Motto for 2008: Moving from herding elephants to handling snakes...
  @TheKeyBoard:http://www.littlehart.net/atthekeyboard
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Does the Cake schema tool allow one to define the type of a table (innodb, etc)?

2008-02-15 Thread Aaron Shafovaloff

Does the Cake schema tool allow one to define the type of a table
(innodb, etc)?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: UUID as primary key

2008-02-13 Thread Aaron Shafovaloff

I've read In fact if you store UUID in binary form you can bring it
down to 16 bytes so size is not really the problem.

http://www.mysqlperformanceblog.com/2007/03/13/to-uuid-or-not-to-uuid/

Why must it be char and not binary?

On Feb 13, 8:12 am, Baz [EMAIL PROTECTED] wrote:
 So, what's your question?

 On Feb 12, 2008 4:41 PM, Aaron Shafovaloff [EMAIL PROTECTED] wrote:



  On this page (http://bakery.cakephp.org/articles/view/uuid-behavior) I
  saw the following:

  Last cake 1.2 build support uuid for your primary key column. You
  just need have field ID with type varchar(36)

  Does anyone have any more information on this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



UUID as primary key

2008-02-12 Thread Aaron Shafovaloff

On this page (http://bakery.cakephp.org/articles/view/uuid-behavior) I
saw the following:

Last cake 1.2 build support uuid for your primary key column. You
just need have field ID with type varchar(36)

Does anyone have any more information on this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



How does one use $this-render in plugins in the latest SVN build?

2007-12-13 Thread Aaron Shafovaloff

I'm getting Missing View and it's looking for the view file in the
main app. This wasn't so about a week ago. Any ideas?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Latest additions to 1.2

2007-12-07 Thread Aaron Shafovaloff

I went back to trying loadModel and it's weird, on two different
machines I have the same SVN updates of cake and my app. I've triple-
checked this.

But on one machine I get:

Warning (512): loadModel is deprecated see App::import('Model',
'ModelName'); [CORE\cake\basics.php, line 1036]

And on the other machine it works fine.

On Dec 7, 10:24 am, Aaron  Shafovaloff [EMAIL PROTECTED] wrote:
 Using latest SVN I get:

 Fatal error: Call to undefined method ClassRegistry::init()

 On Dec 7, 6:00 am, francky06l [EMAIL PROTECTED] wrote:

  ClassRegistry::init('plugin.modelname'); should work.

  On Dec 6, 10:49 pm, Aaron  Shafovaloff [EMAIL PROTECTED] wrote:

   Ahhh specifically it works when you manually do animport, but you
   can't yet use dot notation with uses at the top of your controller.

   On Nov 17, 9:17 pm, Gwoo [EMAIL PROTECTED] wrote:

Several people voiced opinions about plugins and in an effort to make
them more flexible we added the functionality to access models across
plugins and the main application in the current 1.2 branch. Use the
dot notation Plugin.Model to access models in thepluginand Model
to access the models of the main app.

To allow us this flexibility we changed how classes are loaded and
instances created. From the initial tests, these  changes provide some
nice performance gains while reducing the amount of code needed in
your application. Keep in mind that with greater flexibility, comes
greater responsibility to maintain your applications architecture.

ClassRegistry::init(); will return an instance of the class from the
registry or create and add it to the registry if it does not exist.
This is particularly useful for models and is used in the current core
code to create the model instances.

App::import(); will load and cache the location of a file found
anywhere in the cake install. This is used in place of the load*
functions previously found in basics.php. You can see in the current
code that the functions use this class method now.

The api for these methods are currently in alpha state, but will be
stabilized for beta. You can check out the doc comments for more info.
The online API,http://api.cakephp.orgwillbeupdatedshortly.

Bake on.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Latest additions to 1.2

2007-12-07 Thread Aaron Shafovaloff

I figured everything out. I'm an idiot :-)

On Dec 7, 10:24 am, Aaron  Shafovaloff [EMAIL PROTECTED] wrote:
 Using latest SVN I get:

 Fatal error: Call to undefined method ClassRegistry::init()

 On Dec 7, 6:00 am, francky06l [EMAIL PROTECTED] wrote:

  ClassRegistry::init('plugin.modelname'); should work.

  On Dec 6, 10:49 pm, Aaron  Shafovaloff [EMAIL PROTECTED] wrote:

   Ahhh specifically it works when you manually do animport, but you
   can't yet use dot notation with uses at the top of your controller.

   On Nov 17, 9:17 pm, Gwoo [EMAIL PROTECTED] wrote:

Several people voiced opinions about plugins and in an effort to make
them more flexible we added the functionality to access models across
plugins and the main application in the current 1.2 branch. Use the
dot notation Plugin.Model to access models in thepluginand Model
to access the models of the main app.

To allow us this flexibility we changed how classes are loaded and
instances created. From the initial tests, these  changes provide some
nice performance gains while reducing the amount of code needed in
your application. Keep in mind that with greater flexibility, comes
greater responsibility to maintain your applications architecture.

ClassRegistry::init(); will return an instance of the class from the
registry or create and add it to the registry if it does not exist.
This is particularly useful for models and is used in the current core
code to create the model instances.

App::import(); will load and cache the location of a file found
anywhere in the cake install. This is used in place of the load*
functions previously found in basics.php. You can see in the current
code that the functions use this class method now.

The api for these methods are currently in alpha state, but will be
stabilized for beta. You can check out the doc comments for more info.
The online API,http://api.cakephp.orgwillbeupdatedshortly.

Bake on.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Latest additions to 1.2

2007-12-07 Thread Aaron Shafovaloff

Using latest SVN I get:

Fatal error: Call to undefined method ClassRegistry::init()

On Dec 7, 6:00 am, francky06l [EMAIL PROTECTED] wrote:
 ClassRegistry::init('plugin.modelname'); should work.

 On Dec 6, 10:49 pm, Aaron  Shafovaloff [EMAIL PROTECTED] wrote:

  Ahhh specifically it works when you manually do animport, but you
  can't yet use dot notation with uses at the top of your controller.

  On Nov 17, 9:17 pm, Gwoo [EMAIL PROTECTED] wrote:

   Several people voiced opinions about plugins and in an effort to make
   them more flexible we added the functionality to access models across
   plugins and the main application in the current 1.2 branch. Use the
   dot notation Plugin.Model to access models in thepluginand Model
   to access the models of the main app.

   To allow us this flexibility we changed how classes are loaded and
   instances created. From the initial tests, these  changes provide some
   nice performance gains while reducing the amount of code needed in
   your application. Keep in mind that with greater flexibility, comes
   greater responsibility to maintain your applications architecture.

   ClassRegistry::init(); will return an instance of the class from the
   registry or create and add it to the registry if it does not exist.
   This is particularly useful for models and is used in the current core
   code to create the model instances.

   App::import(); will load and cache the location of a file found
   anywhere in the cake install. This is used in place of the load*
   functions previously found in basics.php. You can see in the current
   code that the functions use this class method now.

   The api for these methods are currently in alpha state, but will be
   stabilized for beta. You can check out the doc comments for more info.
   The online API,http://api.cakephp.orgwillbeupdated shortly.

   Bake on.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Latest additions to 1.2

2007-12-06 Thread Aaron Shafovaloff

Unfortunately, in the latest SVN revision it dot notation doesn't seem
to be working. And the error page is telling me to create a class name
with a dot in it.

On Nov 17, 9:17 pm, Gwoo [EMAIL PROTECTED] wrote:
 Several people voiced opinions about plugins and in an effort to make
 them more flexible we added the functionality to access models across
 plugins and the main application in the current 1.2 branch. Use the
 dot notation Plugin.Model to access models in thepluginand Model
 to access the models of the main app.

 To allow us this flexibility we changed how classes are loaded and
 instances created. From the initial tests, these  changes provide some
 nice performance gains while reducing the amount of code needed in
 your application. Keep in mind that with greater flexibility, comes
 greater responsibility to maintain your applications architecture.

 ClassRegistry::init(); will return an instance of the class from the
 registry or create and add it to the registry if it does not exist.
 This is particularly useful for models and is used in the current core
 code to create the model instances.

 App::import(); will load and cache the location of a file found
 anywhere in the cake install. This is used in place of the load*
 functions previously found in basics.php. You can see in the current
 code that the functions use this class method now.

 The api for these methods are currently in alpha state, but will be
 stabilized for beta. You can check out the doc comments for more info.
 The online API,http://api.cakephp.orgwill be updated shortly.

 Bake on.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Latest additions to 1.2

2007-12-06 Thread Aaron Shafovaloff

Ahhh specifically it works when you manually do an import, but you
can't yet use dot notation with uses at the top of your controller.

On Nov 17, 9:17 pm, Gwoo [EMAIL PROTECTED] wrote:
 Several people voiced opinions about plugins and in an effort to make
 them more flexible we added the functionality to access models across
 plugins and the main application in the current 1.2 branch. Use the
 dot notation Plugin.Model to access models in thepluginand Model
 to access the models of the main app.

 To allow us this flexibility we changed how classes are loaded and
 instances created. From the initial tests, these  changes provide some
 nice performance gains while reducing the amount of code needed in
 your application. Keep in mind that with greater flexibility, comes
 greater responsibility to maintain your applications architecture.

 ClassRegistry::init(); will return an instance of the class from the
 registry or create and add it to the registry if it does not exist.
 This is particularly useful for models and is used in the current core
 code to create the model instances.

 App::import(); will load and cache the location of a file found
 anywhere in the cake install. This is used in place of the load*
 functions previously found in basics.php. You can see in the current
 code that the functions use this class method now.

 The api for these methods are currently in alpha state, but will be
 stabilized for beta. You can check out the doc comments for more info.
 The online API,http://api.cakephp.orgwill be updated shortly.

 Bake on.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Latest additions to 1.2

2007-11-30 Thread Aaron Shafovaloff

Excellent!!!

On Nov 17, 9:17 pm, Gwoo [EMAIL PROTECTED] wrote:
 Several people voiced opinions aboutpluginsand in an effort to make
 them more flexible we added the functionality to access models 
 acrosspluginsand the main application in the current 1.2 branch. Use the
 dot notation Plugin.Model to access models in the plugin and Model
 to access the models of the main app.

 To allow us this flexibility we changed how classes are loaded and
 instances created. From the initial tests, these  changes provide some
 nice performance gains while reducing the amount of code needed in
 your application. Keep in mind that with greater flexibility, comes
 greater responsibility to maintain your applications architecture.

 ClassRegistry::init(); will return an instance of the class from the
 registry or create and add it to the registry if it does not exist.
 This is particularly useful for models and is used in the current core
 code to create the model instances.

 App::import(); will load and cache the location of a file found
 anywhere in the cake install. This is used in place of the load*
 functions previously found in basics.php. You can see in the current
 code that the functions use this class method now.

 The api for these methods are currently in alpha state, but will be
 stabilized for beta. You can check out the doc comments for more info.
 The online API,http://api.cakephp.orgwill be updated shortly.

 Bake on.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: 1.2 Routing question..

2007-11-30 Thread Aaron Shafovaloff

Router::connectNamed(array('project_name'));

Router::connect('/project/:project_name/*');

That's a start

On Nov 30, 1:27 pm, chad [EMAIL PROTECTED] wrote:
 How could I achieve routing like so: /project/{project_name}/{action}/
 * without any hacks in the controller? I have it working with some
 hacks in the controller but would rather make it more dynamic in the
 future and figured Router might help with that.

 Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Using models with plugins in CakePHP 1.2

2007-11-17 Thread Aaron Shafovaloff

I'd have to agree with some folks here---it'd be great if plugins
could plugin into the existing application and have access to the
main app's models, etc.

Perhaps plugins could be split into two types? One of the reasons
Wordpress is so popular is its plugin system (which tap into the
larger app). It'd be nice if CakePHP made it easy for us to set up our
apps this way.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



get/put/delete/post HTTP requests in CakePHP 1.2

2007-11-11 Thread Aaron Shafovaloff

I saw the following at 
http://www.xml.com/pub/a/2007/01/24/whats-new-in-prototype-15.html

---

The standard XMLHttpRequest object at the heart of Ajax functionality
only allows HTTP GET and POST methods, but RESTfully-designed web
applications often call for the lesser-used methods, like PUT and
DELETE. Until browsers support the full range of HTTP methods,
Prototype offers a compromise: tunneling those methods over POST, by
including a _method query parameter with the request. You can now
specify the intended HTTP method with the method option on all Ajax
functions (the default is POST). Methods other than GET or POST will
actually be requested with POST, but will have a _method query
parameter appended to the request URL. For example:

// Creates a POST request to /feeds/1.rss?_method=PUT
new Ajax.Request('/feeds/1.rss', { method:'put', postBody:myXML,
contentType:'application/rss+xml' });

Of course, the server side of the application must be written to
understand this convention as well, but if you use Rails, you'll get
the behavior for free.

---

Then I saw this at http://prototypejs.org/api/ajax/options

As a Ruby On Rails special, Prototype also reacts to other verbs (such
as 'put' and 'delete' by actually using 'post' and putting an extra
'_method' parameter with the originally requested method in there.

---

I was wondering if, like Rails, CakePHP had this feature?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: get/put/delete/post HTTP requests in CakePHP 1.2

2007-11-11 Thread Aaron Shafovaloff

I just found this in dispatcher.php:

if (isset($params['form']['_method'])) {
if (isset($_SERVER)  !empty($_SERVER)) {
$_SERVER['REQUEST_METHOD'] = 
$params['form']['_method'];
} else {
$_ENV['REQUEST_METHOD'] = 
$params['form']['_method'];
}
unset($params['form']['_method']);
}


On Nov 11, 4:37 pm, Aaron  Shafovaloff [EMAIL PROTECTED] wrote:
 I saw the following 
 athttp://www.xml.com/pub/a/2007/01/24/whats-new-in-prototype-15.html

 ---

 The standard XMLHttpRequest object at the heart of Ajax functionality
 only allows HTTP GET and POST methods, but RESTfully-designed web
 applications often call for the lesser-used methods, like PUT and
 DELETE. Until browsers support the full range of HTTP methods,
 Prototype offers a compromise: tunneling those methods over POST, by
 including a _method query parameter with the request. You can now
 specify the intended HTTP method with the method option on all Ajax
 functions (the default is POST). Methods other than GET or POST will
 actually be requested with POST, but will have a _method query
 parameter appended to the request URL. For example:

 // Creates a POST request to /feeds/1.rss?_method=PUT
 new Ajax.Request('/feeds/1.rss', { method:'put', postBody:myXML,
 contentType:'application/rss+xml' });

 Of course, the server side of the application must be written to
 understand this convention as well, but if you use Rails, you'll get
 the behavior for free.

 ---

 Then I saw this athttp://prototypejs.org/api/ajax/options

 As a Ruby On Rails special, Prototype also reacts to other verbs (such
 as 'put' and 'delete' by actually using 'post' and putting an extra
 '_method' parameter with the originally requested method in there.

 ---

 I was wondering if, like Rails, CakePHP had this feature?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Using models with plugins in CakePHP 1.2

2007-11-08 Thread Aaron Shafovaloff

Thanks, but what if it's part of the main app? That's my particular
problem.

On Nov 7, 11:59 pm, rtconner [EMAIL PROTECTED] wrote:
 I think you have to do..

 $uses = array('Pluginname.Modelname');

 On Nov 7, 10:54 pm, Aaron  Shafovaloff [EMAIL PROTECTED] wrote:

  I have a plugin which has two models of its own. I've followed the
  directions to creating a plugin to the T.

  In the plugin's own app_controller file I have the following:

  class PluginNameAppController extends AppController ...

  This creates a problem. The main AppController file uses some
  models, like User. But I get a missing model error because it attempts
  to load models used by AppController in the plugin's models
  subdirectory. The User model is in the main models directory, though.

  Any thoughts? Is this just a deficiency of CakePHP 1.2 I'll have to
  live with? Why can't I use models in the main app models directory?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Using models with plugins in CakePHP 1.2

2007-11-08 Thread Aaron Shafovaloff

I guess it makes sense for me that plugins could inherit models.
Plugins plug into the existing applications, i.e. have connection to
beyond the simple routing.

On Nov 8, 11:21 am, Gwoo [EMAIL PROTECTED] wrote:
 Plugins should not access models from application. If you think about
 plugin for a second you can understand why. There are other ways to
 organize your models, see /app/config/bootstrap.php


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Using models with plugins in CakePHP 1.2

2007-11-07 Thread Aaron Shafovaloff

I have a plugin which has two models of its own. I've followed the
directions to creating a plugin to the T.

In the plugin's own app_controller file I have the following:

class PluginNameAppController extends AppController ...

This creates a problem. The main AppController file uses some
models, like User. But I get a missing model error because it attempts
to load models used by AppController in the plugin's models
subdirectory. The User model is in the main models directory, though.

Any thoughts? Is this just a deficiency of CakePHP 1.2 I'll have to
live with? Why can't I use models in the main app models directory?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Stable vs Development

2007-10-16 Thread Aaron Shafovaloff

Same here.

On Oct 16, 11:23 am, Wayne Fay [EMAIL PROTECTED] wrote:
 I'm using 1.2 on a production server with no issues to speak of.

 Wayne

 On 10/16/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:



  hey guy,

  I got a question for those of you using version 1.2 alpha.

  So far i have based my applications on previous stable versions of
  cake, and now i was looking into trying into starting a new
  application based on 1.2, because it has quite a few interesting new
  features.

  The thing that wories me is that it being still an alpha version, bugs
  might appear along the way.
  This application would be on a production server and it might not be
  the best thing to have uncontrolled bugs appear.

  So .. any oppitions and advice?

  Thx


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: CakePHP Live Broadcast: Be There Or Be Square

2007-09-19 Thread Aaron Shafovaloff

I agree. This is great!

On Sep 19, 7:18 am, tracyfloyd [EMAIL PROTECTED] wrote:
 Awesome! I was thinking just the other day how great a CakePHP podcast
 would be... heading over to subscribe now!

 On Sep 19, 1:51 am, John David Anderson [EMAIL PROTECTED]
 wrote:

  On Sep 18, 2007, at 8:51 PM, rtconner wrote:

   Can I be there AND be a square?

  No. By being there, you are (by defintion) cool.

  -- John


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



I can no longer directly access the index method?

2007-09-13 Thread Aaron Shafovaloff

You are seeing this error because the private class method index
should not be accessed directly.

Apparently this is part of the latest SVN update of 1.2. Ideas?
Thoughts? Explanation?

Thanks,

Aaron


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: New Router usage as of 5535 $Route-connectNamed()

2007-09-11 Thread Aaron Shafovaloff

Wow... connectNamed... huge help! Didn't know about this!

On Sep 10, 4:40 pm, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Originally I thought this was an optional new feature, but for those
 who were passing arrays with arbitrary named values to Router::url()
 and its friends HtmlHelper::url() and HtmlHelper::link(), note that
 the parameter must be defined with a $Route-connectNamed() in
 routes.php or the router won't know how to create the URL. Thanks
 biesbjerg!

 On Sep 10, 5:28 pm, [EMAIL PROTECTED]

 [EMAIL PROTECTED] wrote:
  Thanks, I was not aware of the new explicit nature.

  On Sep 10, 5:15 pm, biesbjerg [EMAIL PROTECTED] wrote:

   Hi,

   Correct way to implement above route would be:

   Router::connectNamed(array('community_id'));
   Router::connect('/:community_id/bulletins/:action/*',
   array('controller' = 'bulletins'), array('community_id' =
   '[0-9]+'));

   On Sep 10, 10:40 pm, [EMAIL PROTECTED]

   [EMAIL PROTECTED] wrote:
I have been working all morning on this without any luck. This is on
Cake 1.2 (branch) / 5626. The only nonstandard thing I'm doing is app
and webroot dirs outside the normal locations (and renamed), but that
shouldn't make a difference with this.

ROUTE
$Route-connect('/:community_id/bulletins/:action/*',
array('controller' = 'bulletins'));

CONTROLLER/VIEW
echo $html-url(array('community_id'=203, 'controller'='bulletins',
'action'='view', 'bulletin_id'=23423));

EXPECTED URL:
/203/bulletins/view/bulletin_id:23423

RETURNED URL:
/bulletins/view

MODIFICATION (bulletin_id param removed)
echo $html-url(array('community_id'=203, 'controller'='bulletins',
'action'='view'));

RETURNED URL:
/203/bulletins/view


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Preventing 1.2's form helper from rendering a fieldset with radio buttons

2007-08-31 Thread Aaron Shafovaloff

I'm using the latest SVN update of 1.2 Why all the sudden are all my
radio buttons surrounded by fieldsets? Can I disable this part?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Trouble with the translate function __()

2007-08-18 Thread Aaron Shafovaloff

Would that mean I'd have to use the .po language files in an unusual
way... putting ALL of my language data into one file? That'd be a
drag!

On Aug 18, 2:08 am, jitka (poLK) [EMAIL PROTECTED] wrote:
 It is not cake issue, it is Zend problem with debug_backtrace() used
 so deep.

 Try
 echo $form-input('username',array('label' =
 __d('users', 'Username',true)));

 'users' means that this translation should be searched in users.mo/po,
 so if you have one file with all translations named default.po/mo,
 replace 'users' with 'default' and you should be fine.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Trouble with the translate function __()

2007-08-16 Thread Aaron Shafovaloff

I'm using the latest svn update of CakePHP freakin awesome 1.2.

This works:

$temp = __(Username,true);
echo $form-input('username',array('label' = $temp));

This doesn't, and I get an internal server error

echo $form-input('username',array('label' =
__(Username,true)));

Why would this be any different?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Regular expression in Router::connect

2007-05-14 Thread Aaron Shafovaloff

By the way, I need it to exclude multiple strings. So something to the
effect of:

Router::connect('/:group/:curriculum/*',
array('controller'='curriculum'),array('curriculum'='!xyz AND !abc
AND !mno'));

On May 14, 3:38 pm, Aaron  Shafovaloff [EMAIL PROTECTED] wrote:
 With Router::connect I'd like to use a regular expression that would
 say the curriculum cannot be
 xyz' . Shouldn't this work?

 Router::connect('/:group/:curriculum/*',
 array('controller'='curriculum'),array('curriculum'='!xyz'));


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Regular expression in Router::connect

2007-05-14 Thread Aaron Shafovaloff

Wooo hoo!

I figured it out:

Router::connect('/:group/:curriculum/*',
array('controller'='curriculum'),array('curriculum'='\b(?:(?!
curriculum|courses|facilitators|configuration)\w)+\b'));

Thanks to:

http://www.roscripts.com/PHP_regular_expressions_examples-136.html

On May 14, 3:38 pm, Aaron  Shafovaloff [EMAIL PROTECTED] wrote:
 With Router::connect I'd like to use a regular expression that would
 say the curriculum cannot be
 xyz' . Shouldn't this work?

 Router::connect('/:group/:curriculum/*',
 array('controller'='curriculum'),array('curriculum'='!xyz'));


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Trouble with the Router

2007-05-13 Thread Aaron Shafovaloff

The following seems to force whatever action I'm currently using into
the url returned by Router::url.

Router::connect('/:group/:controller/:action/*',
array('action'=null), array('controller' = 'curriculum|courses|
facilitators|configuration'));

I thought array('action'=null) would make the action optional?

If I change it to:

Router::connect('/:group/:controller/:action/*',
array('action'='index'), array('controller' = 'curriculum|courses|
facilitators|configuration'));

... it, as expected, defaults the action to 'index'. But here's the
thing: I'd only like the action to be visible in the url when it's
*not* 'index'. Any ideas?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Trouble with the Router

2007-05-13 Thread Aaron Shafovaloff

I extensively use Router::url in my application. I'd hope I could use
some sort of regular expression or option in the usage of Router::url
without afterwards modifying what Router::url returns.

$5 to anyone who can help me with this problem :-)

On May 13, 8:04 pm, Aaron  Shafovaloff [EMAIL PROTECTED] wrote:
 The following seems to force whatever action I'm currently using into
 the url returned by Router::url.

 Router::connect('/:group/:controller/:action/*',
 array('action'=null), array('controller' = 'curriculum|courses|
 facilitators|configuration'));

 I thought array('action'=null) would make the action optional?

 If I change it to:

 Router::connect('/:group/:controller/:action/*',
 array('action'='index'), array('controller' = 'curriculum|courses|
 facilitators|configuration'));

 ... it, as expected, defaults the action to 'index'. But here's the
 thing: I'd only like the action to be visible in the url when it's
 *not* 'index'. Any ideas?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Trouble with the Router

2007-05-13 Thread Aaron Shafovaloff

Here are some relevant CakeBin pastes:

http://bin.cakephp.org/view/1593972132

http://bin.cakephp.org/view/1098672765

When I uncomment the pr($url), I get this:

http://bin.cakephp.org/view/706088071

On May 13, 8:27 pm, Aaron  Shafovaloff [EMAIL PROTECTED] wrote:
 I extensively use Router::url in my application. I'd hope I could use
 some sort of regular expression or option in the usage of Router::url
 without afterwards modifying what Router::url returns.

 $5 to anyone who can help me with this problem :-)

 On May 13, 8:04 pm, Aaron  Shafovaloff [EMAIL PROTECTED] wrote:

  The following seems to force whatever action I'm currently using into
  the url returned by Router::url.

  Router::connect('/:group/:controller/:action/*',
  array('action'=null), array('controller' = 'curriculum|courses|
  facilitators|configuration'));

  I thought array('action'=null) would make the action optional?

  If I change it to:

  Router::connect('/:group/:controller/:action/*',
  array('action'='index'), array('controller' = 'curriculum|courses|
  facilitators|configuration'));

  ... it, as expected, defaults the action to 'index'. But here's the
  thing: I'd only like the action to be visible in the url when it's
  *not* 'index'. Any ideas?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Trouble with the Router

2007-05-13 Thread Aaron Shafovaloff

Here are the routes that got it working:

http://bin.cakephp.org/view/1621988238

Crucial to it working was me sending an empty string (instead of null)
as the action parameter to Router::url

Tip of the hat goes to PhpNut for the help. And the money, as he
requested, goes to the Cake Software Foundation.

On May 13, 8:52 pm, Chris Hartjes [EMAIL PROTECTED] wrote:
 On 5/13/07, Aaron Shafovaloff [EMAIL PROTECTED] wrote:



  I extensively use Router::url in my application. I'd hope I could use
  some sort of regular expression or option in the usage of Router::url
  without afterwards modifying what Router::url returns.

  $5 to anyone who can help me with this problem :-)

 You are trying to alter a fundamental behaviour of pretty much any
 routing system in a Model-View-Controller based framework.  If there
 are any frameworks that behave exactly the way you need, I'd love to
 see how they are doing it.

 The default action for any controller is 'index', unless you configure
 it otherwise.  It's a convention of the system.  If you set it to
 'null', it's going to fall back to the rules of the system itself,
 which says 'index' is the action and it will happily return the URL
 with 'index' or whatever else is the default action in it.

 When you ask it to give you the URL that represents the default action
 for a controller, well, it's going to tell you whatever the convention
 is or whatever you've told it you want it to be.  Don't want URL's
 with 'index' in them?  Then you can't ask CakePHP to generate the URL
 for you.  You'll have to do them by hand.

 If I am wrong, I'm sure others are rubbing their hands in glee at a
 chance to point out the mistakes of the Grumpy Old Man of the List.

 --
 Chris Hartjes

 My motto for 2007:  Just build it, damnit!

 @TheBallpark -http://www.littlehart.net/attheballpark
 @TheKeyboard -http://www.littlehart.net/atthekeyboard


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Cake 1.1 vs 1.2

2007-05-13 Thread Aaron Shafovaloff

If it's a long-term enterprise application, and you're just getting
started, my opinion is to start using 1.2.

On May 13, 8:35 pm, Oshuma [EMAIL PROTECTED] wrote:
 I've recently started a project using Cake 1.1.14.4797 and I'm curious
 as to the pros/cons in 1.1 and 1.2.  How long will 1.1 be maintained
 and should I just start using 1.2?  My app is really small at the
 moment, so it wouldn't be much trouble to rewrite it for 1.2 (if
 that's even required).  Also, how much of 1.2 is documented?  I
 noticed the API docs has 1.2.x.x, but a lot of it seems incomplete.
 Does the Manual apply to 1.2 as well?

 Sorry I'm playing 20 questions here.  Heh.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Customizing routes

2007-05-12 Thread Aaron Shafovaloff

Yes, I have read the manual, but it doesn't address the
aforementioned.

I'm trying to accomplish this with:

Router::connect('/:group/:curriculum/:controller/:action/*');

But even when I send additional parameters to Router::url it doesn't
work:

Router::url(array('controller'='facilitators','action'='index','group'='local-
university','curriculum'='history-101'));

Any ideas on how to accomplish this sort of thing?

I'm using the latest SVN version of 1.2.

On May 9, 2:11 pm, Chris Hartjes [EMAIL PROTECTED] wrote:
 On 5/9/07, Aaron Shafovaloff [EMAIL PROTECTED] wrote:



  I'd like to have my controllers function normally at /controller/
  action, but I'd also like users to be able to access parts of my site
  using /groupName/courseName. How would I go about doing this? Any good
  suggestions on where to look on how to customize the routes this way?

 Does nobody read the manual any more?

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

 Go down to section 3 and that should point you in the right direction.

 --
 Chris Hartjes

 My motto for 2007:  Just build it, damnit!

 @TheBallpark -http://www.littlehart.net/attheballpark
 @TheKeyboard -http://www.littlehart.net/atthekeyboard


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: CakePHP Another winner

2007-05-10 Thread Aaron Shafovaloff

Great job CakePHP devs!

Keep up the good work.

On May 10, 8:52 am, Mariano Iglesias [EMAIL PROTECTED]
wrote:
 Or if you don't want to scroll down:

 http://www.seomoz.org/web2.0#cat_51

 -MI

 ---

 Remember, smart coders answer ten questions for every question they ask.
 So be smart, be cool, and share your knowledge.

 BAKE ON!

 blog:http://www.MarianoIglesias.com.ar

 -Mensaje original-
 De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
 de Tane Piper
 Enviado el: Jueves, 10 de Mayo de 2007 11:47 a.m.
 Para: cake-php@googlegroups.com
 Asunto: Re: CakePHP Another winner

 Oh, here is the direct link to the awards:


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Customizing routes

2007-05-09 Thread Aaron Shafovaloff

I'd like to have my controllers function normally at /controller/
action, but I'd also like users to be able to access parts of my site
using /groupName/courseName. How would I go about doing this? Any good
suggestions on where to look on how to customize the routes this way?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: How do I use i18n and l10n in CakePHP 1.2?

2007-05-07 Thread Aaron Shafovaloff

I figured it out. You can only really run __() in the views.

On May 6, 6:29 pm, Aaron  Shafovaloff [EMAIL PROTECTED] wrote:
 Any ideas on this? This hang-up has kept me back for days.

 On May 5, 8:34 pm, Aaron  Shafovaloff [EMAIL PROTECTED] wrote:

  I have $_SESSION['Config']['language'] set to my desired language 
  buti18n::translate doesn't even seem to have access to $_SESSION?. I've
  done a pr($_SESSION) at line 114 ofi18n.php and it returns blank. If
  I do a pr($_SESSION) in a view it works fine. Any ideas?

  On May 5, 6:08 am, CraZyLeGs [EMAIL PROTECTED] wrote:

   you probably mean $_SESSION['Config']['language']

   On May 4, 2:08 pm, misho [EMAIL PROTECTED] wrote:

Well Yes,
I do some checks on allowed languages, but I don't have a separate
controller to deal with this.
Just scan URL into function (in app_controller.php) and then redirect.

And thank you I do not know that Configure::write('Config.language',
'en') and $_SESSION['Config.language'] are actually the same.

On May 4, 2:35 pm, jitka [EMAIL PROTECTED] wrote:

 - if You will store selected language in session, route url 
 '/language/
 *' to some controller-action and do 
 $this-Session-write('Config.language', $arg); in it (probably with 
 check if this

 lng is allowed) - then redirect to referer

 - if You will save Config.language in session, You don't have to use
 Configure class (session takes precedency)

 - /app/locale/LANG/LC_MESSAGES should be /app/locale/LOCALE/
 LC_MESSAGES - see L10n::$__l10nMap (locale != language)


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: How do I use i18n and l10n in CakePHP 1.2?

2007-05-06 Thread Aaron Shafovaloff

Any ideas on this? This hang-up has kept me back for days.

On May 5, 8:34 pm, Aaron  Shafovaloff [EMAIL PROTECTED] wrote:
 I have $_SESSION['Config']['language'] set to my desired language 
 buti18n::translate doesn't even seem to have access to $_SESSION?. I've
 done a pr($_SESSION) at line 114 ofi18n.php and it returns blank. If
 I do a pr($_SESSION) in a view it works fine. Any ideas?

 On May 5, 6:08 am, CraZyLeGs [EMAIL PROTECTED] wrote:

  you probably mean $_SESSION['Config']['language']

  On May 4, 2:08 pm, misho [EMAIL PROTECTED] wrote:

   Well Yes,
   I do some checks on allowed languages, but I don't have a separate
   controller to deal with this.
   Just scan URL into function (in app_controller.php) and then redirect.

   And thank you I do not know that Configure::write('Config.language',
   'en') and $_SESSION['Config.language'] are actually the same.

   On May 4, 2:35 pm, jitka [EMAIL PROTECTED] wrote:

- if You will store selected language in session, route url '/language/
*' to some controller-action and do 
$this-Session-write('Config.language', $arg); in it (probably with 
check if this

lng is allowed) - then redirect to referer

- if You will save Config.language in session, You don't have to use
Configure class (session takes precedency)

- /app/locale/LANG/LC_MESSAGES should be /app/locale/LOCALE/
LC_MESSAGES - see L10n::$__l10nMap (locale != language)


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: How do I use i18n and l10n in CakePHP 1.2?

2007-05-05 Thread Aaron Shafovaloff

I have $_SESSION['Config']['language'] set to my desired language but
i18n::translate doesn't even seem to have access to $_SESSION?. I've
done a pr($_SESSION) at line 114 of i18n.php and it returns blank. If
I do a pr($_SESSION) in a view it works fine. Any ideas?

On May 5, 6:08 am, CraZyLeGs [EMAIL PROTECTED] wrote:
 you probably mean $_SESSION['Config']['language']

 On May 4, 2:08 pm, misho [EMAIL PROTECTED] wrote:

  Well Yes,
  I do some checks on allowed languages, but I don't have a separate
  controller to deal with this.
  Just scan URL into function (in app_controller.php) and then redirect.

  And thank you I do not know that Configure::write('Config.language',
  'en') and $_SESSION['Config.language'] are actually the same.

  On May 4, 2:35 pm, jitka [EMAIL PROTECTED] wrote:

   - if You will store selected language in session, route url '/language/
   *' to some controller-action and do 
   $this-Session-write('Config.language', $arg); in it (probably with 
   check if this

   lng is allowed) - then redirect to referer

   - if You will save Config.language in session, You don't have to use
   Configure class (session takes precedency)

   - /app/locale/LANG/LC_MESSAGES should be /app/locale/LOCALE/
   LC_MESSAGES - see L10n::$__l10nMap (locale != language)


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Adding a field to a template

2007-05-04 Thread Aaron Shafovaloff

If you're in a view, try

?php echo $row['ModelName']['columnname'] ?

... instead.

Also, you can always do this:

?
pr($row);
?

That'll give you an idea of what's inside the array. I highly
recommend stepping through this tutorial:

http://manual.cakephp.org/appendix/blog_tutorial

It's a quick way to get your feet wet. It's what I did to become
familiar with CakePHP and I was told in 15 minutes after having
frustrated myself with the Symfony framework.

On May 4, 7:19 am, sfa_ok [EMAIL PROTECTED] wrote:
 Hi All,

 I'm very new to cake development but I URGENTLY need to make some
 amendments to a site because the original developer deserted us :S I
 just need to add a new field to a template. I added it to the table in
 the database and Im trying to view it the value using ?php echo
 $row['tablename']['columnname'] ? but it wont workI must be
 missing some step. Can anyone point me in the right direction?

 Thanks in advance


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



How does one prevent $form-select from escaping characters in the option titles?

2007-05-04 Thread Aaron Shafovaloff

How does one prevent $form-select from escaping characters in the
option titles?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Application crashing between beforeFilter and actual filter

2007-05-03 Thread Aaron Shafovaloff

My CakePHP 1.2 app is sometimes returning a blank page (or 404 in IE)
between the beforeFilter and before the actual filter itself. I have
confirmed this with die('test'); statements in either. Where could it
be crashing? Is this a CakePHP 1.2 problem?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Application crashing between beforeFilter and actual filter

2007-05-03 Thread Aaron Shafovaloff

I figured out. When I take the Security component out, it works. When
I include it, it sends me to a black hole when I send the user login
POST.

On May 3, 10:11 am, Aaron  Shafovaloff [EMAIL PROTECTED] wrote:
 My CakePHP 1.2 app is sometimes returning a blank page (or 404 in IE)
 between the beforeFilter and before the actual filter itself. I have
 confirmed this with die('test'); statements in either. Where could it
 be crashing? Is this a CakePHP 1.2 problem?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



How does one override the default or automatically detected language in CakePHP?

2007-05-03 Thread Aaron Shafovaloff

How does one override the default or automatically detected language
in CakePHP? I'd like to switch between languages that aren't the
default of my browser.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Changes to SecurityComponent - every form I submit gets blackholed

2007-05-03 Thread Aaron Shafovaloff

I have had this same problem.

On May 3, 9:25 am, Marcus T. Jaschen [EMAIL PROTECTED] wrote:
 Hi there,

 in the last days the SecurityComponent was refactored (rev 4972)

 After updating to the latest SVN version of CakePHP every Form I submit
 (AJAX oder classic POST-Request) gets blackholed by the SecurityComponent.

 I've inlcuded the SecurityComponent in the controllers with

 var $components = array('Security', 'RequestHandler', ...);

 There are no settings in beforeFilter callback like

 $this-Security-requirePost('action1', 'action2') or
 $this-Security-requireAuth('action1', 'action2'),

 I just inlucded SecurityComponent.

 Can anyone reproduce this? How can I solve this issue?

 Marcus


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Changes to SecurityComponent - every form I submit gets blackholed

2007-05-03 Thread Aaron Shafovaloff

... even when using the form helper to create forms.

On May 3, 3:16 pm, Aaron  Shafovaloff [EMAIL PROTECTED] wrote:
 I have had this same problem.

 On May 3, 9:25 am, Marcus T. Jaschen [EMAIL PROTECTED] wrote:

  Hi there,

  in the last days the SecurityComponent was refactored (rev 4972)

  After updating to the latest SVN version of CakePHP every Form I submit
  (AJAX oder classic POST-Request) gets blackholed by the SecurityComponent.

  I've inlcuded the SecurityComponent in the controllers with

  var $components = array('Security', 'RequestHandler', ...);

  There are no settings in beforeFilter callback like

  $this-Security-requirePost('action1', 'action2') or
  $this-Security-requireAuth('action1', 'action2'),

  I just inlucded SecurityComponent.

  Can anyone reproduce this? How can I solve this issue?

  Marcus


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



How can one detect whether the current language is left-to-right or right-to-left?

2007-04-30 Thread Aaron Shafovaloff

How can one, in CakePHP 1.2, detect whether the current language is
left-to-right or right-to-left? Do I have to resort to manually
putting it into the .po file?

Thanks,

Aaron


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Can I overload an Auth component method?

2007-04-23 Thread Aaron Shafovaloff

To use the new Cake 1.2 Auth component I'd like to overload the
isAuthorizied method. This is because I don't or need or want the Auth
component to use ACL. How do I go about doing this?

Thanks,

Aaron


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Automating something with __()

2007-04-23 Thread Aaron Shafovaloff

That's just the thing, I'm trying to figure a way to automate that,
just like AUTO_OUTPUT automates it elsewhere.

On Apr 10, 6:16 am, jitka [EMAIL PROTECTED] wrote:
 set 2nd argument of this function to true


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Automating something with __()

2007-04-09 Thread Aaron Shafovaloff

Is there a way to have __() automatically return the value instead of
echoing it, such as with AUTO_OUTPUT?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Styling a flash message generated by Auth

2007-04-09 Thread Aaron Shafovaloff

In CakePHP 1.2, Auth generates a flash message that is given the ID of
Auth.login. In CSS, is there a way to style this by its ID? The
period makes it difficult! :-)


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Pagination in Cake 1.2

2007-03-20 Thread Aaron Shafovaloff

I'm trying to get pagination working in Cake 1.2. I have the very
latest (using SVN checkout).

This:

?=$paginator-next('Next ', array('nextPage'=2), null,
array('class' = 'disabled')); ?

... renders as:

a href=/groups/  nextPage=2 id=link7934 onclick= return
false;Next gt;gt;/ascript type=text/
javascriptEvent.observe('link7934', 'click', function(event){ new
Ajax.Updater('content','/groups/', {asynchronous:true,
evalScripts:true, onLoading:function(request)
{Element.show('spinner');}, onComplete:function(request, json)
{Element.hide('spinner');}, requestHeaders:['X-Update',
'content']}) }, false);/script

When I click next, it simply reloads the first page. There doesn't
seem to be anything in this indicating what page is loaded.

This:

?=$paginator-counter(); ?

... works great, and renders as:

Page 1 of 6

Any ideas?

Thanks,

Aaron


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Pagination in Cake 1.2

2007-03-20 Thread Aaron Shafovaloff

Grant, thanks for the reply

 Some documentation on the paginator is 
 athttp://blog.insertdesignhere.com/posts/view/16

This was my starting point for learning how to do this. I am
essentially trying to implement the example in that blog post.

 1.  Have you called $paginator-options() ?

Yes, in my view I have the following:

? $paginator-options(array('update' = 'content','indicator' =
'spinner')); ?

 2.  Do you have the appropriate content div for the ajax call (which
 you are currently using) to update?

Yes, and this is being updated (I verified this). Unfortunately, it's
only updated with the same items of the first page.

Any help is appreciated,

Aaron


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---