Re: Splitting a Controller in two?
Hi! Could you write how to configure cake to have admin section in separate class? Thanks. On 3 Bal, 01:05, Miles J mileswjohn...@gmail.com wrote: There isn't really any disadvantages. For a few of my projects, I made the admin a completely separate application and had both apps share the same cake libs and models. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
email component
Hello, I have problems with cakephp email component (and I don't use smtp). When i send html some webmails show html tags: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN html headmeta http-equiv=Content-Type content=text/html; charset=utf-8 //head body div style= width:500px ptest/p ptest/pdiv /body /html When I use both they show both messages. Is there solution for this problem? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
dual pagination
I have one table, but in view I show it as two. One one side there are men, on other women. They must have separate paginations. Is there solution how i can do this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: dual pagination
of course it works, but problem with this is that i cann't paginate them separatly On May 21, 5:53 pm, leo [EMAIL PROTECTED] wrote: You can try this - no idea if it'll work and no time to try it ;) $this-set('men', $this-paginate(null,array('gender'='1'))); $this-set('women', $this-paginate(null,array('gender'='2'))); On 21 Maig, 16:45, Mantas K. [EMAIL PROTECTED] wrote: I have one table, but in view I show it as two. One one side there are men, on other women. They must have separate paginations. Is there solution how i can do this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: dual pagination
I've made it with ajax. solving this problem with out it was to hard for me :) On May 21, 6:28 pm, leo [EMAIL PROTECTED] wrote: Then I'd be looking at subclassing the paginator or defining my own custom paginate method on the model - not difficult to do using LIMIT and offsets. And it'll take a lot less time than casting around trying to find a solution using what's there already. On 21 Maig, 17:13, Mantas K. [EMAIL PROTECTED] wrote: of course it works, but problem with this is that i cann't paginate them separatly On May 21, 5:53 pm, leo [EMAIL PROTECTED] wrote: You can try this - no idea if it'll work and no time to try it ;) $this-set('men', $this-paginate(null,array('gender'='1'))); $this-set('women', $this-paginate(null,array('gender'='2'))); On 21 Maig, 16:45, Mantas K. [EMAIL PROTECTED] wrote: I have one table, but in view I show it as two. One one side there are men, on other women. They must have separate paginations. Is there solution how i can do this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Localization in models
So how can i do it? In fact, i need localization with validation. I want to use: 'email' =array( 'rule' = 'email', 'message' = __('It is not valid email', true), ) and I get error :\ how can I solve this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Localization in models
I've found answer: http://groups.google.com/group/cake-php/browse_thread/thread/4c9aefe0f8c8ead3/971f3d3faeada0a8?lnk=gstq=Internationalization#971f3d3faeada0a8 On Sat, Apr 26, 2008 at 4:01 PM, Mantas K. [EMAIL PROTECTED] wrote: So how can i do it? In fact, i need localization with validation. I want to use: 'email' =array( 'rule' = 'email', 'message' = __('It is not valid email', true), ) and I get error :\ how can I solve this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---