Change model behavior in controller

2010-12-20 Thread Dobrogor
Hi all! I want to change my model behavior, when program is running. For example, I have in my model behavior variable like this var $actsAs = array('i18n' => array('fields'=>array('header', 'preview', 'content'))); But I want change this to null or to delete in some controllers. :) Is this possi

Re: problem with links helper

2010-11-13 Thread Dobrogor
Thanks Mattijs!!! 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 unsubsc

problem with links helper

2010-11-12 Thread Dobrogor
Hi all! I have a little problem. I want to use russian languale at my links in main menu. I create my links with html helper. For example, if i write in code Html->link('Works', array('controller' => 'art_works', 'action' => 'show')) ?> output will be like this Works Its work fine. 'test' - its

Re: Simple jquery script

2010-11-09 Thread Dobrogor
oh , i am so sorry :) i decide my problem. I am dummy) I simply forgot to put jquery library in js/ directory. I put it in another 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 subsc

Re: Simple jquery script

2010-11-08 Thread Dobrogor
Yes, I working with jQuery helper that i can use in Cake. Because original jquery code dont working in files with extensions .ctp. I files with extensions .html or .php jquery work perfecty. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related ques

Re: mysql query transfer to cakephp

2010-11-08 Thread Dobrogor
If you want, you may use your standart mysql syntax by query method. for example: $this->YourModel->query('your mysql query'); 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

Simple jquery script

2010-11-08 Thread Dobrogor
Hi, Frieds! I trying to work with jquery helpers now. But I realy dont understands how it works:) Please show me how to show javascirpt massege( alert("hello!") ) when i click on First Paragraph element. What kind of code I must write in controller, model and view? Very Thanks :) Check out the ne