Re: how to use migration in Cakephp

2009-09-26 Thread danfreak
If you have plugins in your application use the "-f" option to include their tables in your schema i.e. --- cake schema generate -f --- Daniel On 26 Set, 10:29, danfreak wrote: > By the way, now cakePHP has an integrated schema

Re: how to use migration in Cakephp

2009-09-26 Thread danfreak
By the way, now cakePHP has an integrated schema shell: http://book.cakephp.org/view/734/Schema-management-and-migrations --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send e

Re: Database structure and json_encode()

2009-09-26 Thread danfreak
Well in case of solution B, if you serialize (json_encode) you have the order in which they got inserted, therefore you will know that the first is the "start" and the last the "end". In order to search in them ... it gets a bit complicated... For solution A) I suggest having a - TRIPS TABLE (HA

Re: how to use migration in Cakephp

2009-09-26 Thread danfreak
By the way, now cakePHP has an integrated schema shell: http://book.cakephp.org/view/734/Schema-management-and-migrations --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send e

Re: how to use migration in Cakephp

2009-09-26 Thread danfreak
Well, I'm the author of the article you read: it's a bit outdated now. Anyway, I would also suggest you a fixturize plugin to sincronize stored data: http://github.com/felixge/debuggable-scraps/tree/master/cakephp/shells/fixturize --~--~-~--~~~---~--~~ You receiv

Re: international SEO routing

2009-09-25 Thread danfreak
My solution is to rewrite the Router::base in your app_controller.php beforeFilter() - //INTERNAZIONALIZATION if(Configure::Read('Multilingual.enable')){ //$this->base = $this->base.'/'.$this->params['language'].'/'; if(__RQL__ != '' && __RQL__ !=

Re: eCommerce question

2009-09-25 Thread danfreak
Thanks 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 cake-php+unsubscr...@googlegr

Re: eCommerce question

2009-09-24 Thread danfreak
Thanks for your answer Bert! Any other opinion/solution? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group

Re: encoding problems: utf-8

2009-08-27 Thread danfreak
the main encoding problem is in a shell script: The script imports RSS from 10 different sources once every hour and stores them in DB. In order to normalize the grabbed content I use: foreach ($feed->get_items() as $item){ $myitem['title'] = trim($item->get_ti

Re: encoding problems: utf-8

2009-08-26 Thread danfreak
>From phpinfo() I have Apache: HTTP_ACCEPT_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7 on both servers. Dev server: PHP Version 5.2.6 MySQL 5.0.67 -

Re: encoding problems: utf-8

2009-08-26 Thread danfreak
Cheers guys, well my problem is mainly related to the DB entries. I'm deploying my application to the production server with capistrano, pulling the application from a github (git) repository. I have teh following DB config: var

Re: What do you develop in (ide, text editor, etc.)?

2009-03-01 Thread danfreak
I used Zend Studio, then Aptana at work, but I'm now sticking with TextMate ;o) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsub

Re: Site Administration

2007-07-06 Thread danfreak
I was just forgetting in cake 1.2 once you are in the cake installation dir you must > -- > cd cake/console > -- and now

Re: Site Administration

2007-07-06 Thread danfreak
Well how to use the command line wasn't clear from the docs for me as well in the beginning. If you are on Windows, open the DOS comand line. move to your cakePHP installation dir (i.e "cd to_your_cake_install_dir") once you are in the install dir use the following magic command (cakePHP v. 1

Re: 1.2 manaul

2007-07-06 Thread danfreak
...I already pre-booked it online :o( Dan --~--~-~--~~~---~--~~ 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 emai

Re: plan of future releases?

2007-07-06 Thread danfreak
I started with CakePHP 1.2.0.51246alpha strainght away. I'll put my first site into production with it on Monday using the new Auth component and all other stuff! CakePHP rocks!! And of a rockClimber says it... ;o) Dan --~--~-~--~~~---~--~~ You received this

Re: 1.2 manaul

2007-07-05 Thread danfreak
Unluckily not yet! I suggest you to look in this forum, and directly into the comments in the code. There also is an API online=> http://api.cakephp.org/1.2/ Just be carefull: the API is for 1.2.0.5137 while the current version is 1.2.0.5146alpha + ask via IRC channel=> 1.2.0.5137 Dan + ther

Re: CakePHP 1.2 + Auth component (Auth::validate)

2007-07-05 Thread danfreak
, Pillow <[EMAIL PROTECTED]> wrote: > On 5 Lip, 15:33, danfreak <[EMAIL PROTECTED]> wrote: > > > Dunno if this can help, but I managed as explained in the following > > post: > > > =>http://groups.google.com/group/cake-php/t/871ff4c536bc1e00 > > Thanks

Re: Can't use components relying on startup() in beforeFilter

2007-07-05 Thread danfreak
I have a similar problem: I use cake 1.2.0.5146alpha. In my controller I have a beforeFilter() method like this: --- if($this->Session->check('Auth.User')){ $this->reg(); } else{

Re: Can't use components relying on startup() in beforeFilter

2007-07-05 Thread danfreak
A bit more code from the Form_Wizard -- class FormWizardComponent extends Object { var $ways = null; var $_prefixWizard; var $_wizardData = array(); var $_way = null; var $_fctname; var $_curstep; var $controller

Re: CakePHP 1.2 + Auth component (Auth::validate)

2007-07-05 Thread danfreak
Dunno if this can help, but I managed as explained in the following post: => http://groups.google.com/group/cake-php/t/871ff4c536bc1e00 Dan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To pos

Re: admin backend best practice

2007-07-05 Thread danfreak
Cheers guys! Well 1 thing I did not thougt about before is that eventually I can change the layout of the actioin reserved to admins, in order to "dress up" the admin area differently! i.e $this->layout = 'default'; //in normal actions $this->layout = 'admin'; //in admin actions ...but I sh

Re: New CakePHP Application Launches

2007-07-05 Thread danfreak
Nice! Well done! Is it based on Cake 1.2? Did you use the auth component? Good job mate! Dan --~--~-~--~~~---~--~~ 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@goo

Re: admin backend best practice

2007-07-04 Thread danfreak
Cheers Chris! Any other opinion? --~--~-~--~~~---~--~~ 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 [EMAI

admin backend best practice

2007-07-04 Thread danfreak
Hey guys, I saw a couple of different approaches for building an admin backend: 1) exploit CAKE admin routes and then show the relative controllers actions only if an user belongs to certain administrative groups 2) build 2 applications (frontend and backend) and then manage everything from the

Re: A question about integrating jquery in cakephp?

2007-07-03 Thread danfreak
Well I place jquery stuff in a subdirectory of webroot/js I have webroot/js/jquery/jquery.js In my header I have: ---

Re: Best method for extending existing models/controllers?

2007-06-22 Thread danfreak
Yeas, use behaviors for generic/abstract model actions, and components for generic/abstract controllers actions! Also have a look at this post: -- More about Behaviors ? http://groups.google.com/group/cake

Auth component + Cake 1.2

2007-06-21 Thread danfreak
Dunno why but I can't post in the original thread. original thread=> " new auth component in cake 1.2 " http://groups.google.com/group/cake-php/browse_frm/thread/f2d0143c2e59ce2b/30126ff7024d152c?lnk=gst&q=auth&rnum=2#30126ff7024d152c My 2 cents about the new Auth component (Cake 1.2.0.5146alp

Re: Graham Bird's AJAX tutorial in 1.2.x.x

2007-06-20 Thread danfreak
Hey Robert, about the html Helper in cake_1.2 charsetTag() is now simply charset() With regard to the js files: plase them all in webroot/js/ Dan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group.

Re: ordering items

2007-06-19 Thread danfreak
Hey pluriels, well, I think that it would be fair to let the original "bakers" of the above code write a tutorial on the Bakery. I'll ask them about it. About Symfony, CAkePHP and other frameworks: I think that every framework has its pros and cons. the trick is to use the right framework for th

Re: More about Behaviors ?

2007-06-19 Thread danfreak
Hey Max, well behaviours are great in terms of code reusability. They stand to modules as components stand to controllers. Just a small example. If you checked out Cake 1.2 you might have noticed the Tree behaviour. The Tree behaviour helps to handle situations that deel with commplex hierarchic

Re: setting ACL dynamically for user 1.2

2007-06-18 Thread danfreak
Cheers Billy! I already did that but I was trying to understand better whether it is was possible/more convenient to achieve this result via ACL. Do you think that the allow method of the Auth library is more convenient/performant using conditional statements in the controller/ app_controller th

Re: ordering items

2007-06-18 Thread danfreak
If you simply need to update the position of the items in a list using ajax and dragging/dropping them this is a solution (based on this thread http://groups.google.com/group/cake-php/browse_thread/thread/e921d173b7c41519/becb28c858e4d683?lnk=gst&q=sortable&rnum=1#becb28c858e4d683) ---

Re: setting ACL dynamically for user 1.2

2007-06-17 Thread danfreak
Anybody any help?!?! Dan --~--~-~--~~~---~--~~ 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 PROTECT

Re: setting ACL dynamically for user 1.2

2007-06-15 Thread danfreak
You right! this is my second post in fact! I came back to CAKEPHP, and after playing around with it and understanding it better I must say it's simply great! I'm testing the last alpha version (1.2.0.5146alpha). Not sure if I misunderstood something but as I undestood, in my AROS I must set ever

setting ACL dynamically for user 1.2

2007-06-15 Thread danfreak
Hey Bakers, this is my first post here ;o) Well I just wanted to ask whether (and how...) I can set ACL.aros ACL.acos dynamically. Namely I have the following tables: - Users - Groups - Groups_Users I would like to set the Groups in the AROS, and then set permissions in the ACOS and manage the