Re: How to set Cake 3.0 to save with different date format ?

2015-04-02 Thread Celso
Thanks !

The solution was: 

class AppController extends Controller
{

/**
 * Initialization hook method.
 *
 * Use this method to add common initialization code like loading 
components.
 *
 * @return void
 */
public function initialize()
{
$this->loadComponent('Flash');
Type::build('datetime')->useLocaleParser()->setLocaleFormat(
'dd-mm-');
Time::setToStringFormat('dd/MM/');


}
}



Em quinta-feira, 2 de abril de 2015 15:56:29 UTC-3, José Lorenzo escreveu:
>
> Read this:
>
>
> http://book.cakephp.org/3.0/en/orm/database-basics.html#parsing-localized-datetime-data
>
> On Thursday, April 2, 2015 at 6:10:58 PM UTC+2, Celso wrote:
>>
>> Hi guys I have a table in Mysql with a date field,  and I need to allow 
>> my user writes something like *31/12/2015*.
>>
>>
>> echo $this->Form->input('data_nascimento', ['type' => 'text', 'maxlength'
>> => '10']);
>>
>> I've tried 
>> Time::$defaultLocale = 'pt-BR';
>>
>> in *AppController* but the problem persists... and 
>> 'timezone' => 'BRT'
>> in *app.php* does not works
>>
>> If I update the value directly in MySQL and use the 
>> Time::setToStringFormat('dd/MM/'); 
>> in AppController the date is showed in a nice format however my real 
>> problem is how to save() because I don't know how change the locale of Cake 
>> 3.0.
>>
>>
>>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


How to set Cake 3.0 to save with different date format ?

2015-04-02 Thread Celso
Hi guys I have a table in Mysql with a date field,  and I need to allow my 
user writes something like *31/12/2015*.


echo $this->Form->input('data_nascimento', ['type' => 'text', 'maxlength'=> 
'10']);

I've tried 
Time::$defaultLocale = 'pt-BR';

in *AppController* but the problem persists... and 
'timezone' => 'BRT'
in *app.php* does not works

If I update the value directly in MySQL and use the 
Time::setToStringFormat('dd/MM/'); 
in AppController the date is showed in a nice format however my real 
problem is how to save() because I don't know how change the locale of Cake 
3.0.


-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: 3.0: a peek into CakePHP's future

2013-01-24 Thread Celso
I'm a little curious to see the "Models"...

Em quarta-feira, 23 de janeiro de 2013 11h35min20s UTC-2, Sipatshi escreveu:
>
>
> cant wait to use the new query builder ;) 
>
>   ------
> *Von:* Celso >
> *An:* cake...@googlegroups.com  
> *CC:* Serkan Sipahi > 
> *Gesendet:* 14:22 Mittwoch, 23.Januar 2013
> *Betreff:* Re: 3.0: a peek into CakePHP's future
>  
> Thanks @Sipatshi,
> one more link, the José Lorenzo Slide: 
> http://www.slideshare.net/josezap1/cakephp-30-embracing-the-future-15080099
>
>
> Em quarta-feira, 23 de janeiro de 2013 11h08min44s UTC-2, Sipatshi 
> escreveu:
>
>
> The latest news about cake 3.0
>
> http://vimeo.com/56613033
>
> https://www.engineyard.com/ podcast/future-of-php-part-ii- 
> cakephp<https://www.engineyard.com/podcast/future-of-php-part-ii-cakephp>
>
> https://github.com/markstory/ cakephp/wiki/Httpsocket- 
> improvements<https://github.com/markstory/cakephp/wiki/Httpsocket-improvements>
>
>   --
> *Von:* Celso 
> *An:* cake...@googlegroups.com 
> *Gesendet:* 13:45 Mittwoch, 23.Januar 2013
> *Betreff:* Re: 3.0: a peek into CakePHP's future
>  
>
> Anyone have some news about CakesPHP 3.0?
> -- 
> Like Us on FaceBook https://www.facebook.com/ 
> CakePHP<https://www.facebook.com/CakePHP>
> Find us on Twitter http://twitter.com/CakePHP
>  
> --- 
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake...@googlegroups.com.
> To unsubscribe from this group, send email to cake-php+u...@ 
> googlegroups.com.
> Visit this group at http://groups.google.com/ 
> group/cake-php?hl=en<http://groups.google.com/group/cake-php?hl=en>
> .
>  
>  
>
>
>  AfrikaansAlbanianArabicArmenianAzerbaijaniBasqueBelarusianBulgarian
> CatalanChinese (Simplified)Chinese (Traditional)CroatianCzechDanishDetect 
> languageDutchEnglishEstonianFilipinoFinnishFrenchGalicianGeorgianGerman
> GreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalian
> JapaneseKoreanLatinLatvianLithuanianMacedonianMalayMalteseNorwegianPersian
> PolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedish
> ThaiTurkishUkrainianUrduVietnameseWelshYiddish⇄AfrikaansAlbanianArabic
> ArmenianAzerbaijaniBasqueBelarusianBulgarianCatalanChinese 
> (Simplified)Chinese 
> (Traditional)CroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrench
> GalicianGeorgianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandic
> IndonesianIrishItalianJapaneseKoreanLatinLatvianLithuanianMacedonianMalay
> MalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovak
> SlovenianSpanishSwahiliSwedishThaiTurkishUkrainianUrduVietnameseWelsh
> Yiddish
> Sprache erkennen » Hungarian
>
> -- 
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>  
> --- 
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake...@googlegroups.com
> .
> To unsubscribe from this group, send email to 
> cake-php+u...@googlegroups.com .
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>  
>  
>
>
>  AfrikaansAlbanianArabicArmenianAzerbaijaniBasqueBelarusianBulgarian
> CatalanChinese (Simplified)Chinese (Traditional)CroatianCzechDanishDetect 
> languageDutchEnglishEstonianFilipinoFinnishFrenchGalicianGeorgianGerman
> GreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalian
> JapaneseKoreanLatinLatvianLithuanianMacedonianMalayMalteseNorwegianPersian
> PolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedish
> ThaiTurkishUkrainianUrduVietnameseWelshYiddish⇄AfrikaansAlbanianArabic
> ArmenianAzerbaijaniBasqueBelarusianBulgarianCatalanChinese 
> (Simplified)Chinese 
> (Traditional)CroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrench
> GalicianGeorgianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandic
> IndonesianIrishItalianJapaneseKoreanLatinLatvianLithuanianMacedonianMalay
> MalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovak
> SlovenianSpanishSwahiliSwedishThaiTurkishUkrainianUrduVietnameseWelsh
> Yiddish
> Sprache erkennen » Hungarian
>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

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




Re: 3.0: a peek into CakePHP's future

2013-01-23 Thread Celso
Thanks @Sipatshi,
one more link, the José Lorenzo Slide: 
http://www.slideshare.net/josezap1/cakephp-30-embracing-the-future-15080099


Em quarta-feira, 23 de janeiro de 2013 11h08min44s UTC-2, Sipatshi escreveu:
>
>
> The latest news about cake 3.0
>
> http://vimeo.com/56613033
>
> https://www.engineyard.com/podcast/future-of-php-part-ii-cakephp
>
> https://github.com/markstory/cakephp/wiki/Httpsocket-improvements
>
>   ------
> *Von:* Celso >
> *An:* cake...@googlegroups.com  
> *Gesendet:* 13:45 Mittwoch, 23.Januar 2013
> *Betreff:* Re: 3.0: a peek into CakePHP's future
>  
>
> Anyone have some news about CakesPHP 3.0?
> -- 
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>  
> --- 
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake...@googlegroups.com
> .
> To unsubscribe from this group, send email to 
> cake-php+u...@googlegroups.com .
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>  
>  
>
>
>  AfrikaansAlbanianArabicArmenianAzerbaijaniBasqueBelarusianBulgarian
> CatalanChinese (Simplified)Chinese (Traditional)CroatianCzechDanishDetect 
> languageDutchEnglishEstonianFilipinoFinnishFrenchGalicianGeorgianGerman
> GreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalian
> JapaneseKoreanLatinLatvianLithuanianMacedonianMalayMalteseNorwegianPersian
> PolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedish
> ThaiTurkishUkrainianUrduVietnameseWelshYiddish⇄AfrikaansAlbanianArabic
> ArmenianAzerbaijaniBasqueBelarusianBulgarianCatalanChinese 
> (Simplified)Chinese 
> (Traditional)CroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrench
> GalicianGeorgianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandic
> IndonesianIrishItalianJapaneseKoreanLatinLatvianLithuanianMacedonianMalay
> MalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovak
> SlovenianSpanishSwahiliSwedishThaiTurkishUkrainianUrduVietnameseWelsh
> Yiddish
> Sprache erkennen » Hungarian
>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

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




Re: 3.0: a peek into CakePHP's future

2013-01-23 Thread Celso

Anyone have some news about CakesPHP 3.0?

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

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




Re: 3.0: a peek into CakePHP's future

2012-09-19 Thread Celso
Cakephp Home:

>  "No complicated XML or *YAML *files. Just setup your database and you're 
> ready to bake."
>

Em sexta-feira, 14 de setembro de 2012 12h17min02s UTC-3, Paolo Agostinetto 
escreveu:
>
> The var keyword was deprecated in cake 2 (dropping PHP 4 support), you 
> should use public instead.
> Using dockblock doesn't seem to me the proper way to handle model 
> properties and configuration. Yeah, I know doctine 2 does that, but it 
> doesn't make sense to me giving to docblocks that kind of power, as 
> docblocks are just comments. I would use a yaml or ini file instead.
>
> Talking about the ORM: use of arrays is just bad to return the results, 
> it's not the right tool for the job.
>
> On Tuesday, August 21, 2012 9:52:00 PM UTC+2, Celso wrote:
>>
>> A model Something like this?
>>
>> > $created;var $modified;//@belongsTo(class="User", 
>> foreignKey="author_id")var $author;}?>
>>
>>
>>
>> Em quinta-feira, 5 de julho de 2012 23h36min03s UTC-3, José Lorenzo 
>> escreveu:
>>>
>>> Since its creation, more than 7 years ago, CakePHP has grown with a life 
>>> of its own. Its main goal has always been to empower developers with tools 
>>> that are both easy to learn and use, leverage great libraries requiring low 
>>> documentation and low dependencies too. We've had several big releases 
>>> along these years and an ever growing community. Being one of the most 
>>> popular frameworks out there and probably the first one (!) we have also 
>>> gotten a lot of criticism from the developer community in general. We have, 
>>> though, accepted it and learnt from our mistakes to keep building the best 
>>> PHP framework there is.
>>>
>>> CakePHP is known for having a very slow pace of adopting new stuff and 
>>> it has served very well to its community. Back when we were doing version 
>>> 2.0 we decided to hold on version 5.2 of PHP for multiple reasons and 
>>> despite it didn't let us innovate as much as we wished to, it was an 
>>> excellent choice given the general environment regarding hosting solutions 
>>> and general adoption of PHP 5.3. A look back into the past reminded us that 
>>> we were big innovators in PHP, bringing features to developers that few 
>>> dreamt possible to do in this language. Now, it's time to look ahead in 
>>> future and decide on staying in our comfort zone or take back our leading 
>>> position as innovators.
>>>
>>> So it is with great excitement that we announce we are putting our our 
>>> efforts in bringing you the next major release of CakePHP. Version 3.0 will 
>>> leverage the new features in PHP 5.4 and will include an important change 
>>> in our models and database system. CakePHP 3.0 will not be ready less than 
>>> 6 or 8 months and we reckon that, given the rise of cheap cloud hosting 
>>> solutions and upcoming release of new operating system versions, there is 
>>> no better time to jump on the most current stable version of PHP.
>>>
>>> As you may already know, PHP 5.4 offers awesome features that would 
>>> introduce useful new concepts and interesting solutions to old problems. 
>>> Closure binding, traits, multibyte support are tools we see of great 
>>> usefulness for properly implemented advanced framework features we've had 
>>> in mind for a long time. Also new syntax sugar added to the language will 
>>> make it more pleasant to write both small and complex applications with the 
>>> framework and a always welcomed free performance increase.
>>>
>>> We have a young but already well defined road map for what we want to 
>>> accomplish in next release and you are invited to contribute and suggest 
>>> what's next:
>>>
>>>- Drop support for 5.2.x and support 5.4+ only
>>>- Add proper namespaces for all classes. This will make it easier to 
>>>reuse classes outside CakePHP and to use external libraries and finally 
>>> no 
>>>chances of collisions between your app classes and core ones.
>>>- Use traits were possible and makes sense
>>>- Improve bootstrapping process to allow more developer control and 
>>>better performance
>>>- Model layer rewrite:
>>>   - Models to return objects from queries
>>>   - Datamapper-like paradigm
>>>   - Richer query API
>>>   - Support for any database type
>>>   - Su

Re: 3.0: a peek into CakePHP's future

2012-08-21 Thread Celso
A model Something like this?





Em quinta-feira, 5 de julho de 2012 23h36min03s UTC-3, José Lorenzo 
escreveu:
>
> Since its creation, more than 7 years ago, CakePHP has grown with a life 
> of its own. Its main goal has always been to empower developers with tools 
> that are both easy to learn and use, leverage great libraries requiring low 
> documentation and low dependencies too. We've had several big releases 
> along these years and an ever growing community. Being one of the most 
> popular frameworks out there and probably the first one (!) we have also 
> gotten a lot of criticism from the developer community in general. We have, 
> though, accepted it and learnt from our mistakes to keep building the best 
> PHP framework there is.
>
> CakePHP is known for having a very slow pace of adopting new stuff and it 
> has served very well to its community. Back when we were doing version 2.0 
> we decided to hold on version 5.2 of PHP for multiple reasons and despite 
> it didn't let us innovate as much as we wished to, it was an excellent 
> choice given the general environment regarding hosting solutions and 
> general adoption of PHP 5.3. A look back into the past reminded us that we 
> were big innovators in PHP, bringing features to developers that few dreamt 
> possible to do in this language. Now, it's time to look ahead in future and 
> decide on staying in our comfort zone or take back our leading position as 
> innovators.
>
> So it is with great excitement that we announce we are putting our our 
> efforts in bringing you the next major release of CakePHP. Version 3.0 will 
> leverage the new features in PHP 5.4 and will include an important change 
> in our models and database system. CakePHP 3.0 will not be ready less than 
> 6 or 8 months and we reckon that, given the rise of cheap cloud hosting 
> solutions and upcoming release of new operating system versions, there is 
> no better time to jump on the most current stable version of PHP.
>
> As you may already know, PHP 5.4 offers awesome features that would 
> introduce useful new concepts and interesting solutions to old problems. 
> Closure binding, traits, multibyte support are tools we see of great 
> usefulness for properly implemented advanced framework features we've had 
> in mind for a long time. Also new syntax sugar added to the language will 
> make it more pleasant to write both small and complex applications with the 
> framework and a always welcomed free performance increase.
>
> We have a young but already well defined road map for what we want to 
> accomplish in next release and you are invited to contribute and suggest 
> what's next:
>
>- Drop support for 5.2.x and support 5.4+ only
>- Add proper namespaces for all classes. This will make it easier to 
>reuse classes outside CakePHP and to use external libraries and finally no 
>chances of collisions between your app classes and core ones.
>- Use traits were possible and makes sense
>- Improve bootstrapping process to allow more developer control and 
>better performance
>- Model layer rewrite:
>   - Models to return objects from queries
>   - Datamapper-like paradigm
>   - Richer query API
>   - Support for any database type
>   - Support for more database drivers both PDO and native
>- Improve Router:
>   - Make it faster
>   - Remove named parameters
>   - Add support for named routes
>   - Smarter router prefixes
>   - Shorter url syntax
>
> As you may imagine most of the time will be spent or rewriting the model 
> layer, but it will also be one of the most powerful features CakePHP 3.0 
> will have. It's new architecture based on PHP 5.4 capabilities will offer 
> an easier and more powerful set of tools to build web applications in no 
> time.
>
> If you are already as excited as we are this all this new stuff coming, 
> you definitely should meet us on next CakeFest  we'll 
> be talking about the future of CakePHP and hacking our way through to bring 
> you a dev release as soon as possible. Wouldn't it be lovely to attend to 
> awesome talks, workshops and also be part of the group deciding initial 
> architecture for next major version of the framework? Make sure you book 
> your tickets before we run out of them!
>
> We're always looking for different people having a vision on software 
> development, are you interested in helping out? There is no better time to 
> start sending patches and become one of the core team!
>

-- 
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.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: 3.0: a peek into CakePHP's future

2012-07-13 Thread Celso
A example of the new Model approach?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Data Mapper Pattern in 2.X?

2011-10-25 Thread Celso
In http://en.wikipedia.org/wiki/Comparison_of_Web_application_frameworks#PHP
talk about Data Mapper Pattern in 2.X, how works/do it?

Thanks,
celso

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Cake 3.0 (Wish List)

2011-07-15 Thread Celso
My Wish List:

- ACL with support to "users HABTM groups" like Joomla ACL and Custom
ACL.
- ORM "propel-style"
- Native pluralizations for various languages
- A way to optimize IDEs auto-complete
- A "plain","2D" or something like for a new type from find(), where
Cake creates a "unique select" with various JOINS depending of the
"recursive" value choosen

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Retrieving objects from the DB instead of arrays

2011-07-10 Thread Celso
OMG !!! seeing doctrine tutorial and the lots of line codes... I love
ORM CAKE !!!

On Jul 8, 3:35 pm, stephenrs  wrote:
> @anasmughal: thanks for linking to your article - seems like a nice clean
> solution, but I'm (like others) wondering how it has worked out for you (?)
> Without having thought it through too deeply, I'm wondering what breaks
> where core Cake functionality is concerned and what benefits you have
> enjoyed. Something just tells me that if it was that simple to integrate a
> third party ORM without some sacrifices, it would be a be a no-brainer for
> the Cake team..."if it sounds too good to be true, it usually is" ;)
>
> @mark: no apologies needed.  Cake has made things possible that would have
> been previously out of reach for a lot of people - self included (I still
> remember my feeling of shock when I saw how easy it was to build my first
> scaffold app...a true "WTF, how cool is this" moment). Forums are a place to
> share ideas, and hopefully the end result is better products, and better,
> more sustainable code overall out in the wild...keep up the good work, and
> hopefully some of what's coming up in this thread can help advance your
> thinking about which areas deserve focus and how to continue to make Cake
> better (and thanks for participating in the discussion in the first place).
>
> I'd certainly be a supporter of decoupling the framework itself from the ORM
> layer (while retaining important core Cake goodness) as a roadmap objective
> though, and this would seem to be more in line with the spirit of the MVC
> pattern, at least perhaps from a purist's perspective...3.0?
>
> SS

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Retrieving objects from the DB instead of arrays

2011-07-05 Thread Celso
I worked with java for long years, in the first contact with cakephp,
i dislike the lots of arrays, but today i love the dinamics powerful
arrays of php!

Mark do you have a example of the new "Objects Models" to the new
CakePHP versions?

On 5 jul, 13:36, mark_story  wrote:
> I guess my contribution to this thread would be its something that has
> come up time and time again, and its still not done.  So WTF.
>
> Well there are a few reasons why it hasn't been done yet, and while I
> totally understand that people requesting this feature don't care and
> that's fine. But I'll list them out anyways:
>
> * Backwards compatibility - There is simply no way to maintain
> backwards compatibility and provide hydrated objects back from the
> database.  A few people have tried and failed.
> * This kind of change requires basically rewriting/reworking all
> aspects of the framework.  Behaviors, Components, Controllers,
> Helpers, Views, all interact with models and their data in some way.
> Changing the representation affects the full stack.  This means all
> userland code has to change, because of this there can be no smooth
> transition when upgrading.
> * Its really hard.  Building an ORM is hard, harder than most expect.
> This is another reason it hasn't been done yet.  No one has spent the
> time to actually think about what such a subsystem should look like
> and actually build it.  Instead we get threads every few months about
> how its insane that it's not already done.
>
> Those are just a few of the reasons why this hasn't already been
> done.  That by no means implies it will never change.  My hope is that
> the 'big release' after 2.0 will have a rebuilt sane model system that
> returns magical unicorn powered objects.
>
> -Mark
>
> On Jul 4, 4:39 pm, stephenrs  wrote:
>
>
>
>
>
>
>
> > Version:1.0 StartHTML:000149 EndHTML:004220 StartFragment:000199
> > EndFragment:004186 StartSelection:000199 EndSelection:004186 
> > Over
> > the course of about 3 years, I built then lead a team to extend a fairly
> > large CakePHP-based project. Over the past 4 years or so I've built several
> > small to quite large systems based on Symfony. Recently, I've inherited a
> > fairly mature CakePHP-based project to take over...boy do I miss Symfony.
>
> > Refreshing my Cake memory...In all the discussions I've read recently
> > regarding Cake's insistence on effectively forcing us to use arrays rather
> > than properly hydrated objects to handle data, no one has stated the
> > obvious: treating application entities (or objects) as arrays actually makes
> > it *harder* to write proper MVC applications - it was simply a bad core
> > design decision. It largely defeats the purpose of the active record
> > pattern, leads to difficult to read and maintain code (filled with hideous
> > expressions like $myFoo["myBar"]["myProperty"], rather than the much more
> > elegant and easier to understand and work with
> > $myFoo->myBar->getMyProperty(), for example).
>
> > Keeping track of complex data structures and relationships as deeply nested
> > arrays is a nightmare now that I've gotten used to doing "real" Object
> > Oriented Programming...and an ORM is called that for a reason - instead of
> > being called an "Array Relational Mapper"...returning objects for your
> > application logic to work with is kinda the point...
>
> > So, what the original poster wants to do makes perfect sense in an OOP/MVC
> > context. He simply wants to add a $person->getAge() method properly to his
> > model, where the getAge method looks something like:
>
> > public function getAge()
> > {
> >   // Assuming birth_date is stored as a unix timestamp.
> >   // Of course you'd want to display this in a human-readable format, but
> > you get the idea...
>
> >   return time() - $this->birth_date;
>
> > }
>
> > ...then controllers, views, elements, etc all have access to it (although
> > you should be thoughtful about where you access it from)...in case you're
> > wondering, this is how Symfony works...
>
> > The ability to treat your models as objects encourages you to write fat
> > models. If your models are not much different than array
> > transformation/manipulation utility classes, I can understand people's
> > confusion...
>
> > The point of this post is not to slam CakePHP, it's a fine framework (so
> > hopefully I'm not inviting a flame war), but if you're looking to write
> > Object Oriented code instead of Array Oriented code, then perhaps Cake is
> > not for you. Don't let anyone tell you different: programming with objects
> > will make your life (and your company's/client's) life easier than working
> > with arrays - and it will make your projects more solid and easy to
> > maintain...and it's how advanced professionals do things, for what it's
> > worth. As I mentioned, I've done both extensively...but please tell me if
> > I'm missing something.
>
> > If someone replies with the usual mantra that arrays are better for

Frontslash char X $this->parms

2011-07-05 Thread Celso
Hi ! How is the best way to pass a value with front slash "/" in $this-
>params ?
I tried convert it to "⁄" but without sucess :(

Thanks,
Celso.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


How to create a Utility Lib and/or Global Functions for my app?

2011-07-04 Thread Celso
Hi !

How to create a Utility Lib and/or Global Functions for my app?

Thanks,
Celso

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Extract() by key name

2011-06-17 Thread Celso

[0] => Array
(
[sequenciaQuestao] => 1
[desc_questao] => De acordo com as normas de circulação, é
correto afirmar:
[codigoImagem] => Array
(
)

[resposta1] => condutor e passageiros não deverão abrir a
porta do veículo sem antes se certificarem de que isso não constitui
perigo para eles e para outros usuários da via
[resposta2] => animais isolados ou em grupos não poderão
circular nas vias urbanas ou rurais.
[resposta3] => a parada para embarque e desembarque de
passageiros poderá ser feita em qualquer local da via e em qualquer
horário
[resposta4] => em nenhuma hipótese será permitida a
circulação de bicicletas nos passeios
[respCorreta] => 1
)

Is possible with Set generate another array with only ['resposta1']
['resposta..'] ['respostaN'] keys and values?

Thanks,
Celso

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


How get the database name from a Model?

2011-06-15 Thread Celso
Hi !
How get the database name from a Model?

Because the $useDbConfig returns only the name of config..

thanks,
celso

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Help to automate the "joins" of recursivite in paginate

2011-06-14 Thread Celso
Hi ! I need help to create a way to add news joins array in ['joins']
of paginate() depending on the recursion, because in various apps i
need uses a  fields of a table that were not included in the first
query.

Like search Modelo.descricao = 'hp 2003' in

paginate('equipamento')

Equipamento -> belongsTo TipoEquipamento -> belongs To
(Modelo,Categoria)

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Help in Set Class

2011-05-27 Thread Celso
I tried this: $result = Set::insert($movimentacoesEquipamentos, '{n}',
array('movimentacao_id' => 45));

but results in:

Array
(
[0] => Array
(
[MovimentacaoEquipamento] => Array
(
[movimentar] => 1
[equipamento_id] => 10
)

)

[1] => Array
(
[MovimentacaoEquipamento] => Array
(
[movimentar] => 1
[equipamento_id] => 13
)

)

[{n}] => Array
(
[movimentacao_id] => 45
)

)


On 27 maio, 17:09, Tilen Majerle  wrote:
> check this
>
> http://book.cakephp.org/view/1489/insert
>
> --
> Lep pozdrav, Tilen Majerlehttp://majerle.eu
>
> 2011/5/27 Celso 
>
>
>
>
>
>
>
> > In this array:
>
> > [MovimentacaoEquipamento] => Array
> >        (
> >            [0] => Array
> >                (
> >                    [movimentar] => 1
> >                    [equipamento_id] => 1
> >                )
>
> >            [1] => Array
> >                (
> >                    [movimentar] => 1
> >                    [equipamento_id] => 2
> >                )
> > )
>
> > I need put a [movimentacao_id] => 45 in each element of array, how do
> > this with Set Class?
> > Thanks
>
> > --
> > Our newest site for the community: CakePHP Video Tutorials
> >http://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com For more options, visit this group
> > athttp://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Help in Set Class

2011-05-27 Thread Celso
In this array:

[MovimentacaoEquipamento] => Array
(
[0] => Array
(
[movimentar] => 1
[equipamento_id] => 1
)

[1] => Array
(
[movimentar] => 1
[equipamento_id] => 2
)
)

I need put a [movimentacao_id] => 45 in each element of array, how do
this with Set Class?
Thanks

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


difficult saveAll HABTM question

2011-02-02 Thread Celso
***Equipamento*** hasBelongToMany ***Recibo***

***EntradaEquipamento*** belongsTo ***Recibo***, ***Equipamento***

In the Equipamento/add view, i have various Equipamento.n.fields, and
for each Equipamento, i need save a EntradaEquipamento too

I tried this array in saveAll, but without success:


Array
(
[EntradaEquipamento] => Array
(
[recibo_id] => 5
)

[Equipamento] => Array
(
[1] => Array
(
[numero_serie] => al001
[codigo_controle] => c12
[tipo_equipamento_id] => 2
[localizacao_id] => 250
[status_equipamento_id] => 1
[user_id] => 1
)

[2] => Array
(
[numero_serie] => al002
[codigo_controle] => c13
[tipo_equipamento_id] => 2
[localizacao_id] => 250
[status_equipamento_id] => 1
[user_id] => 1
    )

)

)

How save all this ?

Thanks,
Celso.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


How create a AjaxInPlaceEditor with the new JSHelper?

2011-01-16 Thread Celso
Hi, like http://bit.ly/e8eJqg, i need using AjaxInPlaceEditor with the
new JSHelper 1.3/2.0.
A generic (prototype, jquery, mootools) InPlaceEditor Is
possible ???

Thanks,
Celso.

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


DB_ACL 1.3 X Multiple Apps

2010-09-29 Thread Celso
In the 1.2, works (fine) with this tree:

app1/
 controllers/
  controllerName/
   actionName/

app2/
 controllers/
  controllerName2/
   actionName2/

But in db_acl 1.3 does not works...and cake does not provide the
actionPath..

How works in 1.3?

Thanks,
Celso.

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: Session FatalError in migration 1.2.3 to 1.2.8

2010-09-15 Thread Celso
maybe this: 
http://github.com/cakephp/cakephp1x/commit/9f5949ab5273048c76bf411d7c0057ba217d6132

On 14 set, 20:51, cricket  wrote:
> On Tue, Sep 14, 2010 at 5:19 PM, Celso  wrote:
> > Fatal error: Call to undefined method UsersController::started() in /
> > srv/www/htdocs/libs/cake/libs/session.php on line 233
>
> > Why???
>
> We're not psychic!!! At least, I'm not!!! I don't think even the
> Amazing Kreskin could tell you!!! Could you post some code???

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

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


Session FatalError in migration 1.2.3 to 1.2.8

2010-09-14 Thread Celso
Fatal error: Call to undefined method UsersController::started() in /
srv/www/htdocs/libs/cake/libs/session.php on line 233

Why???

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

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


Re: Where to put my CSS in 1.3 to all apps ?

2010-07-28 Thread Celso

i defined a unique CAKE ROOT PATH to every app 1.3 in index.php, there
is need another config to make?

On 28 jul, 15:44, Davor Ilic  wrote:
> webroot/css
>
> or when you use your own tempalte: themed/yourtempname/webroot/css
>
> 2010/7/28 Celso 
>
> > In 1.2 i am used vendors/css, and in 1.3?
>
> > Thanks,
> > Celso.
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> > with their CakePHP related questions.
>
> > You received this message because you are subscribed to the Google Groups
> > "CakePHP" group.
> > To post to this group, send email to cake-php@googlegroups.com
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.comFor
> >  more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=en
>
>

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

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


Where to put my CSS in 1.3 to all apps ?

2010-07-28 Thread Celso
In 1.2 i am used vendors/css, and in 1.3?

Thanks,
Celso.

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

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


How define a unique "plugins" path to all apps in 1.3?

2010-07-22 Thread Celso
In 1.2 i  used:

$pluginPaths = array(CAKE_CORE_INCLUDE_PATH . DS. 'vendors' . DS.
'plugins' . DS);


But.. in 1.3 have the new plugins path, and i believe thats not
necessary if i  have defined :

if (!defined('CAKE_CORE_INCLUDE_PATH')) {
//define('CAKE_CORE_INCLUDE_PATH', ROOT);
define('CAKE_CORE_INCLUDE_PATH', $_SERVER['DOCUMENT_ROOT'] . DS 
.
"libs2");
}

>libs2
>> cake
>> plugins
  >>> detran
>>> 
>> vendors

But i have not sucess in:

var $components = 'Detran.Util';

Anyone can help me?

Thanks, Celso.


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: CakeFest 2010 Website Launched

2010-06-21 Thread Celso
Anoyone knows a good and cheap hotel near Ontario St.? or near the
metro?

Thanks,
Celso.

On 2 jun, 00:16, nurvzy  wrote:
> I definitely plan on attending.  Chicago is a ways but I have family
> near there.   Looking forward to someCakeFest!
>
> On May 30, 11:32 pm, Graham Weldon  wrote:
>
> > The website forCakeFest2010 has just been launched.
>
> >http://cakefest.org
>
> > You can now signup if you are interested in attending.
>
> > Tickets will be on sale soon.
> > People interested in speaking atcakefestcan submit a talk proposal
> > via the dashboard, once you are logged in.

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: Auto relationship

2010-05-28 Thread Celso
This is the best way?:

class Categoria extends AppModel{

var $hasMany= array('SubCategoria');
}


class SubCategoria extends AppModel{

var $useTable = "categorias";

var $belongsTo  = array('Categoria');

}

Have a way to make this in a unique "class.php"?

Att.
Celso

On 26 maio, 16:56, John Andersen  wrote:
> Take a look at the CakePHP book 
> at:http://book.cakephp.org/view/851/Multiple-relations-to-the-same-model
>
> which explains about more than one relationships to another (or
> itself) model.
>
> That should help you decide how to define your column
> (categoria_id) :)
> Enjoy,
>    John
>
> On May 26, 10:18 pm, Celso  wrote:
>
> > How is the best way in cake?
> > This: ?
>
> > 
> > class Categoria extends AppModel{
>
> >         var $belongsTo  = array('Categoria');
> >         var $hasMany    = array('Categoria');
>
> > }
>
> > ?>
>
> > In database, i will put parent_id or categoria_id ???
>
> > Thanks,
> > Celso.

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


Auto relationship

2010-05-26 Thread Celso
How is the best way in cake?
This: ?



In database, i will put parent_id or categoria_id ???

Thanks,
Celso.

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: Why uses CKeditor in Cake 1.3?

2010-05-21 Thread Celso

Thanks
Matthew !!! But I would like in a component way... no sucess :(


'ckeditor'.DS.'ckeditor.php'));
App::import('Plugin', 'CKFinder', array('file' =>
'ckeditor'.DS.'ckfinder.php'));

class CkeditorComponent extends Object {
var $controller;

function startup( &$controller ) {
debug(CKEditor); //Do not returns anything
$this->controller = &$controller;
}

function create() {

$ckeditor = new CKEditor();
$ckeditor->basePath = '/ckeditor/';
CKFinder::SetupCKEditor($ckeditor, '/ckfinder/');
$ckeditor->editor('CKEditor1');

}

}


And..about license: http://ckeditor.com/license

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


Why uses CKeditor in Cake 1.3?

2010-05-21 Thread Celso
Anyone have a example?
Thanks,
Celso.

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: Execução do bake

2010-05-06 Thread Celso
Use o grupo do CAKE portugues: http://groups.google.com/group/cake-php-pt

On 6 maio, 03:07, Robson Pires 
wrote:
> Olá!
>
> Tentei executar o bake pelo console e acabou gerando essa mensagem de
> erro: Fatal error: Class 'Shell' not found in C:\wamp\www\cake_install
> \cake\console\tasks\bake.php on line 20
>
> gostaria de ajuda nesse assunto,
>
> Obrigado
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with 
> their CakePHP related questions.
>
> You received this message because you are subscribed to theGoogleGroups 
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> athttp://groups.google.com/group/cake-php?hl=en

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

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


How create a observeField with the new JSHelper?

2010-04-30 Thread Celso
Hi ! I want using the new JSHelper with Jquery, i need create a
observeField to fill a combo with another combo that changed

Thanks!
Celso

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: Tip: MongoDB-Datasource undocumented feature

2010-04-16 Thread Celso
Amazing !!! Cake now supports noSQL !!!

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

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


Virtual Fields and Count does not works

2010-04-12 Thread Celso
Hello !

If you try some like this:

//model
var $virtualFields = array(
'total' => 'count(Infracao.pontuacao)'
);


//controller
function index(){

$this->paginate['order'] = 'total';
$this->paginate['limit'] = 3;
$this->paginate['group'] = 'pontuacao';

$this->set('registros', $this->paginate('Infracao'));
    }


I dont believe that i need put paginateCount in every app. Pure Cake
does not have this?

Thanks,
celso

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

To unsubscribe, reply using "remove me" as the subject.


How call Auth->login to another app?

2010-04-01 Thread Celso
$this->controller->Auth->loginAction= array('controller' => 'users',
'action' => 'login');

i need call the controller users in principal app.

Thanks,
Celso.


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: Xampp Lite and CakePHP error

2010-03-15 Thread Celso
THANKS 

On 15 mar, 13:15, Bernardo Vieira  wrote:
> Just configure the propper timezone in php.ini date.timezone 
> setting:http://www.php.net/manual/en/datetime.configuration.php
> date.timezone = "America/Sao_Paulo"
>
> On Mon, Mar 15, 2010 at 12:59 PM, Celso  wrote:
> > I am migrating my cakephp app from USBwebserver to xampplite and i
> > getting this error:
>
> > Error:
>
> > It is not safe to rely on the system's timezone settings. You are
> > *required* to use the date.timezone setting or the
> > date_default_timezone_set() function. In case you used any of those
> > methods and you are still getting this warning, you most likely
> > misspelled the timezone identifier. We selected 'America/Sao_Paulo'
> > for '-3.0/no DST' instead [CORE\cake\libs\cache.php, line 570]
>
> > Anyone Help me?
> > Thanks,
> > Celso
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> > with their CakePHP related questions.
>
> > You received this message because you are subscribed to the Google Groups
> > "CakePHP" group.
> > To post to this group, send email to cake-php@googlegroups.com
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.comFor
> >  more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=en

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

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


Xampp Lite and CakePHP error

2010-03-15 Thread Celso
I am migrating my cakephp app from USBwebserver to xampplite and i
getting this error:


Error:

It is not safe to rely on the system's timezone settings. You are
*required* to use the date.timezone setting or the
date_default_timezone_set() function. In case you used any of those
methods and you are still getting this warning, you most likely
misspelled the timezone identifier. We selected 'America/Sao_Paulo'
for '-3.0/no DST' instead [CORE\cake\libs\cache.php, line 570]


Anyone Help me?
Thanks,
Celso

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

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


How create a unique default.ctp in plugins for all apps?

2010-02-05 Thread Celso
We have multiple applications reading a plugin. How to define that all
applications to use as a ctp layout?

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: Js help with Cake 1.3

2010-02-01 Thread Celso
I think that needs the writebuffer()...

On 30 jan, 15:27, LordZardeck  wrote:
> For some reason I can't get this line of code to work:
> $js->get('click1')->event("click", $js->alert("You clicked me!"));
>
> Nothing is returned. I've echoed inside the get function and inside
> the event function, and it works fine. But outside the functions, it
> says there is no selection, and neither returns anything. Whats going
> on?

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: Html->link question in 1.3

2010-01-28 Thread Celso
thanks

On 27 jan, 18:57, Miles J  wrote:
> Just remove 'id' as an index.
>
> array('action' =>'remover', $registro['Proprietario']['id'])
>
> You only need to pass indexes for named params and for routing.
>
> On Jan 27, 1:36 pm, Celso  wrote:
>
> >         echo $this->Html->link('Remover',
> >                         array(
> >                         'action' =>'remover',
> >                         'id' => $registro['Proprietario']['id']
> >                         ),
> >                         null,
> >                         'Deseja realmente remover?' );
>
> > create this:
>
> > /proprietarios/remover/id:3
>
> > and in the 1.2:
>
> > /proprietarios/remover/3
>
> > How change this in 1.3?
> > Thanks,
> > Celso.

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: which is the actual ACL used today?

2010-01-28 Thread Celso
ACL Cake have a limitation:

-- only one group for a user. --

I recommend CustomACL: 
http://mentalramblings.info/posts/view/cakephp-12-acl-auth-habtm.

We hope a day, the cake team understand our need !!!

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


Html->link question in 1.3

2010-01-27 Thread Celso
echo $this->Html->link('Remover',
array(
'action' =>'remover',
'id' => $registro['Proprietario']['id']
),
null,
'Deseja realmente remover?' );


create this:

/proprietarios/remover/id:3

and in the 1.2:

/proprietarios/remover/3

How change this in 1.3?
Thanks,
Celso.

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: Query multiple tables

2010-01-26 Thread Celso
Use "joins" in you find array options

On 22 jan, 14:49, Pedro84  wrote:
> Hello Everybody!
>
> I'm learning CakePHP since few days and got problems now. I'm
> rewritting my portal to CakePHP. Sorry for any bad things, this is my
> first question to google groups ever :-)
>
> I got following query:
> select avg(Ratings.vote) as rating, count(Ratings.username) as votes,
> title, type, Albums.band_name, Albums.salt, Albums.id as id,
> release_date from portal_albums AS Albums join portal_albums_ratings
> AS Ratings on Albums.id=Ratings.album_id group by Albums.id order by
> rating DESC, votes DESC LIMIT 3
>
> Also I put following function in app_model.php:
>         function afterFind($results, $primary=false)
>         {
>                 if($primary == true) {
>                         if(Set::check($results, '0.0')) {
>                                 $fields = array_keys( $results[0][0] );
>                                 foreach($results as $key=>$value) {
>                                         foreach( $fields as $fieldName ) {
>                                                 
> $results[$key][$this->alias][$fieldName] = $value[0]
> [$fieldName];
>                                         }
>                                         unset($results[$key][0]);
>                                 }
>                         }
>                 }
>                 return $results;
>
> So now, I can display results of my custom query by using $var['Model']
> ['field']
>
> Is there any easy way to convert this query to use $this->find()
> method? I'm quering currently using $this->query() and it works
> perfectly but just thinking if I should use find method.
>
> What's your opinions?

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

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


How (re)configure the pluginPaths for entire app?

2010-01-25 Thread Celso
I have a vendors config, and now i am trying configure a plugin
"vendors".

In app_controller, i have sucess with this:

Configure::write('pluginPaths', CAKE_CORE_INCLUDE_PATH . DS.
'vendors' . DS. 'plugins');

But is not cool for behaviors and helpers...

Thanks,
Celso

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

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


How define a unique session login for multi apps?

2010-01-21 Thread Celso
I tried share my session created by the Auth Component in login()
method with other cake apps, the only way until this moment is passes
session ID via GET.

Anyone have another ideia?
Celso
Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Re: CakePHP 1.3-beta has landed

2010-01-18 Thread Celso
Is there a approximate date for the final cakephp 1.3 Version?
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


New line char in ctp's breaking blob images

2009-11-16 Thread Celso
I dont know if this is a bug, but is very stranger:


controller:
function verBlob($id){
Configure::write('debug',0) ;
$this->layout = 'blob';
   }

blob.ctp (in layouts):


view:


A char, i believe #13 (select for see):

is included in source code, breaking blob images...

Thanks,
Celso

--

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




Find('list'), two fields and order does not works?

2009-11-10 Thread Celso
$proprietarios = 
$this->Multa->Veiculo->Proprietario->find('list',
array(
'order' => 'nome',
'fields' => 'nome' ));
result:

Array
(
[57] =>
[19] => -
[15] => -
[27] => aaaa!
[26] => 
    [25] => 
[51] => bla
[16] => celso
[17] => celso
[9] => Celso
[46] => Frederico
[3] => Gabriel
[45] => Gloria
[55] => paulo
[70] => qq
[7] => Rafael
[44] => Rita
[56] => Rita
[63] => Rita
[61] => Rita
[5] => Rita P
[65] => RitaRita
[67] => RitaRita
[66] => RitaRita
[18] => rufino
[48] => teste
[59] => Teste
[58] => Teste
[42] => teste
[10] => Testolino da Silva
[60] => tiago
[62] => tiago
[6] => Tiago Imazio
[36] => tom, o gato
[13] => Ultimos ultimatos
[1] => Usla
[69] => uu
[71] => Velinho da Silva
[68] => wefwerwedwerwe
[43] => Zé Ramalho
)

$proprietarios = 
$this->Multa->Veiculo->Proprietario->find('list',
array(
'order' => 'nome',
'fields' => 'email,nome' ));

Array
(
[] => Zé Ramalho
[cels...@gmailcom] => 
[d] => celso
[...@ig.com.br] => wefwerwedwerwe
[rita.pa...@detran.rj.gov.br] => Rita
[tiago.rdorififf...@d.com] => tiago
[...@gmail.com] => uu
[ve...@velho.com] => Velinho da Silva
)


***Why?


--

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




Re: Find question

2009-11-04 Thread Celso

so crazy... but

//var $hasMany = 'Veiculo';
var $hasOne = array('PessoaFisica', 'PessoaJuridica','Veiculo');

get all left joins in one SELECT

On 3 nov, 14:09, Celso  wrote:
> Hello Everybody!
> I have this models:
>
> http://picasaweb.google.com.br/celsowm/Screenshots#5399915797002091778
>
> And i need retrieve this:
>
>      Proprietario.nome , Veiculo.placa , sum (Infracoes.pontuacao) as
> pontos
>
> Proprietario "hasMany" Veiculo
> Veiculo "habBelongsToMany" Infracoes
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Find question

2009-11-03 Thread Celso

Hello Everybody!
I have this models:

http://picasaweb.google.com.br/celsowm/Screenshots#5399915797002091778

And i need retrieve this:

 Proprietario.nome , Veiculo.placa , sum (Infracoes.pontuacao) as
pontos

Proprietario "hasMany" Veiculo
Veiculo "habBelongsToMany" Infracoes


--~--~-~--~~~---~--~~
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: Saving data to three models from one form

2009-10-28 Thread Celso

Use saveAll

On 28 out, 13:19, Daniel  wrote:
> Hi guys, I've got a bit of a problem. Rather than type it all out
> again here, is it OK if I just link to my blog with all the info:
>
> http://theworldofdan.co.uk/2009/10/28/problem-saving-data-to-three-mo...
>
> I would really appreciate it if someone is able to help me out with
> this. Thank you
--~--~-~--~~~---~--~~
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: what is up with cakephp.org

2009-10-28 Thread Celso

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



How pass select.getValue() for ajax

2009-10-06 Thread Celso


I need pass something  like 'updateSelect/'+this.getValue()

remoteFunction(
array(
'url' => array( 'controller' => 'entradaItens', 'action'
=> 'updateSelect'),
'update' => 'div-form-detalhe')
);
?>

 input('tipo_entrada_id', array(
'label' => 'Tipo de Entrada',
'div'  => false,
'type' => 'select',
'options' => $tiposEntrada,
'empty'=> 'Selecione',
'onChange'  => $remoteFunction
));
?>

Thanks,
Celso
--~--~-~--~~~---~--~~
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: $ajax->form, validate and error-message

2009-07-23 Thread Celso

How use this? In my view? In my view Ajax?


On 23 jul, 06:30, "Dr. Loboto"  wrote:
> Output $form->error() instead of $form->input().
>
> http://book.cakephp.org/view/721/error
>
> On Jul 23, 3:02 am, Celso  wrote:
>
> > How to get "error-message" without the fields ?
>
> >http://picasaweb.google.com.br/celsowm/Screenshots#5361377042668775106
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



$ajax->form, validate and error-message

2009-07-22 Thread Celso

How to get "error-message" without the fields ?

http://picasaweb.google.com.br/celsowm/Screenshots#5361377042668775106


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Paginate "possible" bug (order and Calculated field)

2009-07-15 Thread Celso

Hi, i need create a "order" links in a view, it have a Calculated
field:


   $this->paginate['fields'] = array('Contrato.id',
 
'Contrato.numero_processo',
 
'Contrato.numero_contrato',
'(TO_DAYS
(data_termino) - TO_DAYS(now()) ) as dias',
'(PERIOD_DIFF
(DATE_FORMAT(now(), \'%Y%m\'), DATE_FORMAT
(data_inicio,
\'%Y%m\'))) as meses',
 
'Contrato.valor_total');
$this->paginate['conditions'] = $condicao;

//**when i try :

sort('Meses', 'meses'); ?>

// nothing happens

Thanks,
Celso.
--~--~-~--~~~---~--~~
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: ACL Management Plugin not saving

2009-07-14 Thread Celso

Please see "network" messages in firebug. Internet explorer does not
function...

On 12 jul, 03:09, Turgs  wrote:
> Hello
>
> I'm trying to use theACLManagementPlugin.
>
> Does anyone have any suggestions with this small issue:
>
> I can access the 'Manage AROs' page. When I go to 'Create' a new ARO',
> the little status text changes to 'Loading' (which I think is done by
> AJAX Prototype).
>
> Then nothing else happens.
> No database rows are added and the 'loading' text remains visible.
>
> Does anyone have any suggestions on how I can fix or debug this issue?
>
> Thanks
> Turgs
--~--~-~--~~~---~--~~
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: Poll: what do you hate about CakePHP?

2009-06-05 Thread Celso

We love cakePHP !
But...I hope something like this:

--> $javascript->validate()
--> $ajax->form(.., array( validate => 'myvalidateFunc' ) )
--> $javascript->datepicker()
--> $javascript->tooltip()
--> self detect Relationship
--> php5 >= only
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



$ajax->form() and javascript validation

2009-05-29 Thread Celso

Hi!

how can I do a simple validation in my form:

echo $ajax->form('adicionar','post',
array('model'=>'Cargo'
, 'update'=>'ajax-mensagem'
, 'complete'=> "Effect.Pulsate('ajax-mensagem');"
, 'id' => 'form-inclusao'
, 'before' => 'error()'
));



Re: New cakephp site - feedback pls!

2009-05-19 Thread Celso

Parabens !!!
Ficou muito bom !

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



How create a unique ACL for multiples apps?

2009-05-14 Thread Celso

How create a unique ACL for multiples apps? Because we have many apps
to migrate to CakePHP, these apps actually uses a unique "ugly" auth
for all apps...

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



How define a unique js, css and img for all apps?

2009-05-07 Thread Celso

We try using this:

if (!defined('CAKE_CORE_INCLUDE_PATH')) {
 define('CAKE_CORE_INCLUDE_PATH',
'c:'.DS.'wamp'.DS.'www'.DS);

and works, but... how make the same for js, css and imgs?

does not work:

if (!defined('WEBROOT_DIR')) {
//define('WEBROOT_DIR', basename(dirname(__FILE__)));
define('WEBROOT_DIR', 'c:'.DS.'wamp'.DS.'www'.DS);
--~--~-~--~~~---~--~~
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: Release: 1.2.3.8166

2009-05-05 Thread Celso

Nice Job!
Ps.: i hope that the ticket https://trac.cakephp.org/ticket/6212 come
in the next version :D


On 5 maio, 08:33, Fábio "Kym" Nascimento 
wrote:
> thanks!
>
> On May 4, 6:58 pm, Gwoo  wrote:
>
> > I am happy to announce another release of CakePHP 1.2. CakePHP
> > 1.2.3.8166[1] includes several bug fixes and most importantly a
> > security fix. To understand the security issue please have a look at
> > Ticket #6336[2]. While this may not affect every installation of Cake,
> > we do recommend that everyone take the time to upgrade their
> > applications. Also, note that there was a bug in Paginator related to
> > changing directions on sorting that is now fixed. For a complete list
> > of changes, please look at the changelog[3].
>
> > I would also like to bring your attention to the work being done on
> > CakePHP 1.3. You can see we have several branches[4] and many commits
> > [5] have also been pushed. So, development is pushing forward nicely,
> > though I still cannot offer up an expected release date.
>
> > Happy Baking.
>
> > [1]http://cakeforge.org/frs/?group_id=23&release_id=442
> > [2]https://trac.cakephp.org/ticket/6336
> > [3]https://trac.cakephp.org/wiki/changelog/1.2.x.x/
> > [4]http://thechaw.com/cakephp/source/branches
> > [5]http://thechaw.com/cakephp/commits
>
> > PS. CakeFest Tickets.http://cakefest.org
--~--~-~--~~~---~--~~
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: "$javascript->codeBlock" Question

2009-04-14 Thread Celso

I found the solution using cacheEvents();

Like this:

function adicionarLegenda($legendas){

$this->Javascript->cacheEvents();

foreach ( $legendas as $id => $texto ) {

$this->Javascript->event($id, "mouseover", 
"legenda('".$texto."')",
false);
$this->Javascript->event($id, "mouseout", "UnTip()", 
false);
}

$saida = $this->output($this->Javascript->getCache());
    return $this->Javascript->codeBlock($saida);

}

On 14 abr, 11:04, Celso  wrote:
> How is the right way?
>
>         $script = $javascript->event($id, "mouseover", "legenda('".
> $texto."')", false).
>         $javascript->event($id, "mouseout", "UnTip()", false);
>
>         echo $javascript->codeBlock($script,null);
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



"$javascript->codeBlock" Question

2009-04-14 Thread Celso

How is the right way?

$script = $javascript->event($id, "mouseover", "legenda('".
$texto."')", false).
$javascript->event($id, "mouseout", "UnTip()", false);

echo $javascript->codeBlock($script,null);




--~--~-~--~~~---~--~~
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: What do you develop in (ide, text editor, etc.)?

2009-04-14 Thread Celso

Eclipse with PhpEclipse
http://www.phpeclipse.com/

On 14 abr, 06:06, BlueC  wrote:
> Agreed, Komodo Edit is just perfect in my eyes. It hits the sweet spot
> between editor and full blown IDE. I don't need an IDE but I do need
> advanced editing capabilities and Komodo Edit hits the nail on the
> head. I edit under Linux and the only other real (free) alternative
> seems to be Eclipse which I thoroughly dislike.
>
> In addition to your list, it's free and the cakePHP addon is awesome
> (although needs a few tweeks).
>
> C
>
> On Apr 14, 8:23 am, refused  wrote:
>
> > Another vote for Komodo IDE/Edit
>
> > - Fast (I've tried a lot and it's definitely up there)
> > - Cross platform
> > - Doesn't use java (nothing against java, just most apps seem sluggish
> > on any system I've used)
> > - Great addon/macro/snippet system (addons similar to Firefox)
>
> > That said, will be interested to see how well E-Texteditor runs on
> > Linux when that gets a released
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: problem with Cakephp session in Jake

2009-04-14 Thread Celso

I have the same problem, I hope that Jake again be developed
--~--~-~--~~~---~--~~
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: Paginator with "table name"."field"

2009-04-09 Thread Celso

sortBy do not exists !!! :(

http://api.cakephp.org/class/paginator-helper



On 8 abr, 03:24, Elavazhagan chidambaram 
wrote:
> this is ur code sort('MUNICIPIO',
> 'Municipio.Nome_municipio'); ?>
>
> this code right code  $paginator->sortBy('Municipio.Nome_municipio', 'MUNICIPIO'); ?>
>
> On Tue, Apr 7, 2009 at 9:34 PM, Celso  wrote:
>
> > Hi! I have this problem:
>
> > sort('MUNICIPIO',
> > 'Municipio.Nome_municipio'); ?>
>
> > result in:
>
> >    a href=" ... /sort:Municipio.Nome_municipio/ ...
>
> > next("Proximo"); ?>
>
> > result in:
>
> >    a href="  ... /sort:Nome_municipio/ ...
>
> > Only works with same model...
> > Why?
>
> > Celso.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Paginator with "table name"."field"

2009-04-07 Thread Celso

Hi! I have this problem:

sort('MUNICIPIO',
'Municipio.Nome_municipio'); ?>

result in:

a href=" ... /sort:Municipio.Nome_municipio/ ...

next("Proximo"); ?>

result in:

a href="  ... /sort:Nome_municipio/ ...


Only works with same model...
Why?

Celso.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Scriptaculous issue (ajax in place editor)

2009-03-13 Thread Celso

Hi !
I tried this:

editor(
"in_place_editor_id",
array(
'controller' => 'Posts',
'action' => 'update_title',
8
),
array()
);
?>

But:

Error: Ajax.InPlaceEditor is not a constructor
File-source: http://localhost/blog/posts
Line: 28

I downloaded the scriptaculous in app/webroot/js

Thanks,
Celso
--~--~-~--~~~---~--~~
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: Beginner: Cake PHP and XAMPP (windows)

2009-02-04 Thread Celso

I thanks! I did! However, I have this error:

  Error: NotesController Create the class below in file: app \
controllers \ notes_controller.php

I created the file and put the class! But it does not work ...
I think I will give up the XAMPP

On 16 jan, 05:01, ezekfred  wrote:
> when i began with cake I use this 
> websitehttp://www.formation-cakephp.com/1/environnement-travail-cakephp-windows
>
> or if you don't understand 
> french:http://translate.google.fr/translate?u=http%3A%2F%2Fwww.formation-cak...
>
> it worked for me! even on vista (I install xampp in c:\xampp)
>
> On 15 jan, 17:31, Celso  wrote:
>
> > Hello! I am new in cakephp, I am with a proposal to replace the asp by
> > php here in my work. 
> > Tenteihttp://www.sitepoint.com/article/application-development-cakephp/2/,
> > but does not work in XAMPP ...
>
> > Celso
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Beginner: Cake PHP and XAMPP (windows)

2009-01-15 Thread Celso

Hello! I am new in cakephp, I am with a proposal to replace the asp by
php here in my work. Tentei 
http://www.sitepoint.com/article/application-development-cakephp/2/,
but does not work in XAMPP ...


Celso

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---