Re: Problem in page view and language switching

2014-05-19 Thread Lorenzo Milesi
> In my Layout/default.ctp I do something like: > $url = > join('/',array($this->params['controller'],$this->params['action'],join('/',$this->params['pass']))); > echo $this->Html->link('GR','/ell/'.$url). ' | ' . > $this->Html->link('EN','/eng/' . $url) ; Thank you very much for your suggestion,

Re: 3.0 - Saving data using Form with HasOne relationship

2014-05-19 Thread José Lorenzo
what do you mean it is working as gmt? On Monday, May 19, 2014 7:55:10 PM UTC+2, Bayezid Alam wrote: > > Thanks Jose, its working as GMT but format() function is not working here > > > On Mon, May 19, 2014 at 9:28 PM, Md Bayezid Alam wrote: > >> I added Timestamp behavior at ArticlesTable >> >> pu

Re: 3.0 - Saving data using Form with HasOne relationship

2014-05-19 Thread Md Bayezid Alam
Thanks Jose, its working as GMT but format() function is not working here On Mon, May 19, 2014 at 9:28 PM, Md Bayezid Alam wrote: > I added Timestamp behavior at ArticlesTable > > public function initialize(array $config) { > $this->addBehavior('Timestamp'); > } > > but same fatal er

Re: 3.0 - Saving data using Form with HasOne relationship

2014-05-19 Thread Md Bayezid Alam
I added Timestamp behavior at ArticlesTable public function initialize(array $config) { $this->addBehavior('Timestamp'); } but same fatal error is showing *Error: Call to a member function format() on a non-object File /var/www/html/test3/App/Template/Profiles/index.ctp Line: 22 (

Re: 3.0 - Saving data using Form with HasOne relationship

2014-05-19 Thread Md Bayezid Alam
Nope, i did not. On Mon, May 19, 2014 at 7:32 PM, José Lorenzo wrote: > Did you add the Timestamp behavior to your Profiles table? > > > On Monday, May 19, 2014 3:17:39 PM UTC+2, Bayezid Alam wrote: >> >> Thanks a lot, i changed from username to user_id and its working perfectly >> >> but the

Re: 3.0 - Saving data using Form with HasOne relationship

2014-05-19 Thread José Lorenzo
Did you add the Timestamp behavior to your Profiles table? On Monday, May 19, 2014 3:17:39 PM UTC+2, Bayezid Alam wrote: > > Thanks a lot, i changed from username to user_id and its working perfectly > > but the second one is not working > > here is my table structure > > *CREATE TABLE IF NOT EXIS

Re: 3.0 - Cake not connecting to MySql DB

2014-05-19 Thread Md Bayezid Alam
Thanks a lot everyone, somehow it is working for me.. On Sun, Mar 16, 2014 at 9:38 PM, Leandro Machado Pereira < llperei...@gmail.com> wrote: > The error composer timeout, see this: > > https://getcomposer.org/doc/04-schema.md#config > > http://www.papayasoft.com/2013/08/22/composer-process-time

Re: 3.0 - Saving data using Form with HasOne relationship

2014-05-19 Thread Md Bayezid Alam
Thanks a lot, i changed from username to user_id and its working perfectly but the second one is not working here is my table structure *CREATE TABLE IF NOT EXISTS `profiles` (* * `id` int(11) NOT NULL AUTO_INCREMENT,* * `name` varchar(40) NOT NULL,* * `address` varchar(70) NOT NULL,* * `ema

saveAssociated and $this->id

2014-05-19 Thread Jeremy Burns
I have a Message model that hasMany MessageRecipients. I have a form that posts data into a controller which passes it straight to a method in the Message model. Three questions really... 1) How should the form be set up? The MessageRecipient model expects two fields; message_id and user_id. Wh

Re: pagination on cakephp 1.3

2014-05-19 Thread tuan kim
thank you very muck ! Vào 13:06:57 UTC+7 Thứ sáu, ngày 16 tháng năm năm 2014, Reuben đã viết: > > You should be able to access the current page from the Controller at > > $this->params['paging'][$modelAlias]['page'], after you've called > $this->paginate. > > You can then set the title for the pa