Translate behavior and ordering/searching

2009-08-13 Thread 3lancer.eu
Hello, Any idea how can I make for example pagination use the current locale in a model that $actsAs Translate? Any help would be great. Regards, Piotr --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" gro

"Translator" role, ACLs, etc.

2009-07-31 Thread 3lancer.eu
Hello, I have a project in which we have so far 3 user roles - superadmin, admin and user. (Super)Admins can log into the admin panel. But now the client needs a 4th role - translator. Translator will be able to: * log into the admin panel * view all values in admin panel * modify values in admi

Re: SSL protect admin routes

2009-07-28 Thread 3lancer.eu
Hello, >   I'm struggling with something I imagine is extremely easy, forcing > my admin routes to go over SSL. Am I even close?! Maybe you should consider forcing SSL connection at the login point as well (no need if you already aliased login operation with admin route). Regards, Piotr --~--~

Remove "Strip "Welcome to CakePHP Console" from shell output

2009-07-28 Thread 3lancer.eu
Hello, Typical output of one of my shells looks like: [H [2J Welcome to CakePHP v1.2.3.8166 Console --- App : app Path: /home/piotr/www/poker/app --- Tue, 28 Jul 2009 20:31:10

View caching - multiple domains (L10n)

2009-07-14 Thread 3lancer.eu
Hello, I'm building an app where language versions will be set using subdomains (en.app.tld, de.app.tld etc). Therefore I'd like to hear from any of you who have experience with Cake view caching in such a case. As far as I see the filenames in app/tmp/cache/views are built using url only, so sho

Re: Multiples lists of different tables :S

2009-07-14 Thread 3lancer.eu
Hello, > Actually I have 4 tables in my database : > > 1-comments > 2-posts > 3-categories > 4-work > > And i have a lonely page : default.php (my web site is juste 1 page ). > which is located in my webSite Root. Any reason not to follow the Cake MVC pattern / file structure? > So i want to ge

Re: hi,is it one bug is model?

2009-07-14 Thread 3lancer.eu
Hi, > Under the first note--My english is bad,so say sorry first to every > member. > > ok, I find an eminently case in model method about save data into > database. > > exapmple1 > $this->data=array( >        'Modelname'=>array( >                 'id' => '123', >                 'somefield'=>0 >

Freelancer seeking CakePHP jobs

2008-12-27 Thread 3lancer.eu
Hi, I am seeking (remote) employment in CakePHP, preferably around 25 hours a week. I can offer several years of PHP expertise + reliable and up-to-date knowlegde of CakePHP. I will be very glad to send over my Resume/CV. My porfolio can be found at: http://3lancer.eu Regards, Piotr

activate() SessionHelper from the Controller?

2008-11-05 Thread 3lancer.eu
Hallo everyone, I am manually starting a session in one cake app (Session.start == false in config/core.php). So in order to take advantage of the flash messages, I need first to activate the session component (which is straightforward in the controller) and then activate the session helper. Is i

Rendering complete layout from a controller?

2008-10-28 Thread 3lancer.eu
Hi, As the app grows larger and larger I need a way to get a completely rendered layout + view in one of my controller's methods. Can you suggest a way to do that? I'm working Rc3. Regards, Piotr --~--~-~--~~~---~--~~ You received this message because you are sub

Re: CakePHP Install Problem

2008-10-10 Thread 3lancer.eu
Hallo again, Sorry, I don't have time to really help you today, but the 1st thing I'd suggest to do, is to change cake .htaccesses so they do the explicit redirect, ie. change [L] in rewrite-rules to [R,L] and then see where the redirect is taking you, and maybe you'll find why the hell it makes

Re: CakePHP Install Problem

2008-10-09 Thread 3lancer.eu
Hi, Can you supply us some configs and logs? Maybe it's a matter of a trailing slash somewhere, Cake can bring you pain with that sometimes... Regards, Piotr --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP

Re: 500 Internal Server Error - GoDaddy

2008-10-09 Thread 3lancer.eu
Hi, > I don't have access to the Apache logs, and I have spent a few days > looking for a solution to the this problem and have had no luck Personally, I'd suggest you spent 5 minutes on e-mailing GoDaddy instead. If you don't even have the Apache logs there are just too many possibilities... R

Re: anyone know why this session check does not work like it suppose to

2008-10-09 Thread 3lancer.eu
Hi, There is essential difference between read() and check() methods of the Session class. However, you should rather use the following convention: http://book.cakephp.org/view/247/AuthComponent-Methods#user-387 Regards, Piotr --~--~-~--~~~---~--~~ You received t

Re: Resolved - How to deploy cake on home.pl shared hosting

2008-10-07 Thread 3lancer.eu
Forgot to mention, leave app/webroot/index.php alone, I mean use the one from tar, zip, whatever. The ini solution is far cleaner then messing around with index.php. Regards, Piotr --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

Resolved - How to deploy cake on home.pl shared hosting

2008-10-07 Thread 3lancer.eu
Hi there, Might be applicable also for other hosting companies maybe... The problem was described by me here: http://groups.google.com/group/cake-php/browse_thread/thread/d4fc8f8bfcb2bf6d/fb02bb3a89ce5cfb?lnk=gst&q=please+help#fb02bb3a89ce5cfb The fix is to add the php.ini file in / dir contain

Re: custom routing and cache

2008-10-04 Thread 3lancer.eu
> After save need to delete it manualy with clearCache() function dont > know is it correct way but it works for me Do you mean after saving a related model delete the cached view manually? Do you get page at / buffered that way? Regards, Piotr --~--~-~--~~~---~--~---

Re: CakePHP does not work with mod_rewrite and php-cgi

2008-10-04 Thread 3lancer.eu
Hi, Maybe try to replace [L] with [R,L]. This way urls will not be rewritten silently, rather your client will be redirected using location header and 3xx status (in this case 302 afair). This way you can see how the urls are rewritten and debug the http headers using for example Firebug. Regard

Re: custom routing and cache

2008-10-04 Thread 3lancer.eu
Hi, Yes, I'm usings slugs as well and having the same issue. Do you use RC2 as well? Regards, Piotr --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@goog

Re: Help setting custom validation counting rule

2008-10-03 Thread 3lancer.eu
Hi again, And what is the problem here, what query is generated? Regards, Piotr --~--~-~--~~~---~--~~ 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 unsu

Re: concern regarding pagination

2008-10-03 Thread 3lancer.eu
Hi, > can anyone help me with this problem??? Yes. Two ideas. 1st, worse - use redirections, so in case your url is /searches/index? search=linkin redirect it to /searches/index/linkin/. Redirections always give us some overhead, also this way the search results won't be seo. 2nd, better - you

Re: Help setting custom validation counting rule

2008-10-02 Thread 3lancer.eu
Hi, >   function limitState($data, $limit) { >         $count = $this->find('count', array('conditions' => $data, > 'recursive' => -1) ); >         return $contagem < $limit; >         } What is $contagem doing here then? Regards, Piotr --~--~-~--~~~---~--~~ You

Re: Index / Url Error?

2008-10-02 Thread 3lancer.eu
Hi, Well, I don't know why do you expect that to work. Please read the chapter on routes: http://book.cakephp.org/view/46/Routes-Configuration You would save some work if you followed cake url conventions. Regards, Piotr --~--~-~--~~~---~--~~ You received this me

Re: URL routing

2008-10-02 Thread 3lancer.eu
Hi, > I am trying to do some (what I think is) advanced routing.  So my > goal is to have a person be able to type inhttp://example.com/users/bobcostas > and then have cakePHP automatically redirect to that bob costas' > profile page if if it exists. This is trivial routing ;-) There are many w

Re: Validating only several fields in model

2008-10-01 Thread 3lancer.eu
Hi, > How can I validate only firstname and lastname fields, without > validating password? You can simply write custom function for validation of that field which would first check if that field is set in $this->data array and if so, perform other checks. However there may be better ways to do

Re: page refresh?

2008-09-29 Thread 3lancer.eu
Hi, > but when you change the picture, the old picture is still stuck in the > cache, so to see the new pic the user needs to push F5... I can't > figure out how to "refresh" the page automatically. > > any ideas? Simplest way is to add some random query string at the end of the url, like http:/

Re: Fatal error: Class 'Dispatcher' not found - please help

2008-09-29 Thread 3lancer.eu
> i still have problem witch home.pl fucking shit > > http://www.aeonmedia.eu/ > http://www.aeonmedia.eu/aeonmedia ;-) I see you made it work? Regards, Piotr --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP

Re: Fatal error: Class 'Dispatcher' not found - please help

2008-09-29 Thread 3lancer.eu
Hi, > CakePHP will not working on home.pl - there is not rewrite engine (if > i good remember, they are working on it ;)), try ovh.pl - cheap with > great polish support Well, that was not my decision, I just had to install cake there since the customer already owned server with all e-mail accou

Re: Fatal error: Class 'Dispatcher' not found - please help

2008-09-28 Thread 3lancer.eu
> just clear your app/tmp/cache folder.always worked for me I did, but it didn't set proper paths anyway, setting include_path did it. Regards, Piotr --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group.

Re: Fatal error: Class 'Dispatcher' not found - please help

2008-09-27 Thread 3lancer.eu
Oh, got it kind of working, the workaround was quite strange however: //this must be set on home.pl if (strpos('bomasport.pl', $_SERVER['SERVER_NAME']) !== false) { ini_set('include_path', '/app/..:/app:.'); define('APP_PATH', '/app'); define('CORE_PATH', '/'); } around l

Re: Fatal error: Class 'Dispatcher' not found - please help

2008-09-27 Thread 3lancer.eu
Oh, got it kind of working, the workaround was quite strange however: //this must be set on home.pl if (strpos('example.com', $_SERVER['SERVER_NAME']) !== false) { ini_set('include_path', '/app/..:/app:.'); define('APP_PATH', '/app'); define('CORE_PATH', '/'); } around l

Fatal error: Class 'Dispatcher' not found - please help

2008-09-27 Thread 3lancer.eu
Hallo everyone, Today, from the early morning, I'm feeling the pain to install Cake on an quite untypical server (it's some Idea WebServer and the hosting company is http://home.pl). The problem looks like, after copying Cake installation there, I have that php errors: Warning: array_merge() [f

AppError and view issues in production mode

2008-09-01 Thread 3lancer.eu
Hi guys, I'm kind of stuck... In my app I have a setting, stored in db, which is responsible for disabling the app and showing the 'under maintenance' message. I store the value of that in a constant called TECHNICAL_DOWN_FOR_MAINTENANCE. So in my AppController::beforeFilter() I have: //

Re: Need a lightbox type app

2008-05-29 Thread 3lancer.eu
Hi, > I'm making an app where I need to be able to have a link that when > clicked, dims the windows(like lightbox) and then brings up an ajax > calendar. I know that lightbox is for photos, so does anyone have any > suggestions on apps that could be used for this? There is a thing called Thickb

Re: Email component problem

2008-05-27 Thread 3lancer.eu
Aaah, you mention that you MUST use sendmail... Well, possibly answer is in the sendmail logs or the mail headers. Piotr --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send e

Re: Email component problem

2008-05-27 Thread 3lancer.eu
Hi, As for me, it's highly probable that the e-mails get lost due to some anti-spam filters. Did you try sending it properly, with smtp? Just create 'noreply' account and have a go... P.S. Remember to set 'from' field for the smtp, otherwise you may run into errors. Piotr --~--~-~--~---

Re: Users table

2008-05-25 Thread 3lancer.eu
Of course there is! http://book.cakephp.org/view/172/authentication ACL is something different , it is explained over there... Piotr --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this

Re: Global Constants

2008-05-25 Thread 3lancer.eu
Hi, > I'm newbie in CakePHP framework, now iam learning cakephp 1.2, i want to set > global constants, where do i put the code?, bootstrap.php file in app/config I guess? Piotr --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

Re: Advanced routing and controller redirecting

2008-05-20 Thread 3lancer.eu
Hi, > How do I make it such that each different variation of the date gets > redirected to the appropriate view? Thanks! I'd personally go for 3 simple regexps, 1 for year, 1 for year/month, 1 for year/month/date... Piotr --~--~-~--~~~---~--~~ You received this

Re: Issue with displaying image - trailing slash on url causes issue

2008-05-19 Thread 3lancer.eu
Hi, > What does the generated HTML look like? Sounds like it's using a > relative path. Exactly, any reason for not using $html->image() for that? Piotr --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" gr

Re: russian characters in MySQL table

2008-05-19 Thread 3lancer.eu
Hi, > I think, yes. I hame more than 1 database on my local MySQL server and > some of them are utf-8 too. There are no such thingth with them, all > of them displayed Ok everywhere - in PHPMyAdmin and client app. For > example, I have some deal with Joomla! - it's PHP+MySQL -based CMS. > For it

Re: russian characters in MySQL table

2008-05-18 Thread 3lancer.eu
Hi, > I cannot find the solution for my trouble: MySQL incorrect stores > russian characters. I use utf-8 enconing in CakePHP app, MySQL > database also is utf-8. When I view my data thru my app in browser, > it's Ok, but when I look into the database directly (using PHPMyAdmin, > MySQL qurey bro

Re: model behaves mysteriously

2008-05-18 Thread 3lancer.eu
Hi, Isn't this just a matter of model data being cached in app/tmp/cache/ models/ ? Piotr --~--~-~--~~~---~--~~ 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.

Re: russian characters in MySQL table

2008-05-18 Thread 3lancer.eu
Privyet Dmitry :) > I cannot find the solution for my trouble: MySQL incorrect stores > russian characters. I use utf-8 enconing in CakePHP app, MySQL > database also is utf-8. When I view my data thru my app in browser, > it's Ok, but when I look into the database directly (using PHPMyAdmin, > M