Translate behavior and ordering/searching
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" 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 -~--~~~~--~~--~--~---
"Translator" role, ACLs, etc.
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 admin panel, but only in language(s) he's been permitted to do so by (super)admin I guess some of you have developed such systems, so what is in your opinion the best way to handle this task? I thought of adding methods in each model that has language support that could unset the unneeded array keys. There will possibly be many models in which saveAll() will be used (saving multiple phrases at a time, etc.), so I don't think I can refuse to save at the validation level. Another thing is storing the permissions - do you think it's better to add each language as ACO or maybe make a HABTM table where language permissions would be stored? All suggestions welcome. 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 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 -~--~~~~--~~--~--~---
Re: SSL protect admin routes
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 --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Remove "Strip "Welcome to CakePHP Console" from shell output
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 +0200 Updated 7 user records --- I'd like to get rid off the welcome message as well as the folders info, as I don't need that everytime I run this task. Any good way to do that? I'll be running this shell using Cron, command similar to: cd /home/piotr/www/poker/app && ../cake/console/cake update_statuses >> ./tmp/logs/cron_update_statuses.log Thanks in advance for your suggestions. 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 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 -~--~~~~--~~--~--~---
View caching - multiple domains (L10n)
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 should I expect any conflicts? Will view caching be any use or wanton waste of resources? Any suggestions appreciated. 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 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 -~--~~~~--~~--~--~---
Re: Multiples lists of different tables :S
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 get all the tables records in my page(default.php) ,all > my models r working ,my controllers as well . > > The problem is i want to show all my tables records in the same page , > how can i do that without being forced to use every view of every model > (table) . If I understand your goal right, you can always instantinate/import models (using App::import('model', ...)) in any controller action and just pass results to the views. Even better would be to add all 4 model names to the controller var $uses array, then you can just use: $this->Comment->find $this->Post->find $this->Categories->find etc. Of course in case of relationships you can usually do it with even less code. 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 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 -~--~~~~--~~--~--~---
Re: hi,is it one bug is model?
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 > ) > ); > $this->Modelname->save($this->data); > > so the result in database,value of the field named 'somefield' is 0. > > example2 > $this->id=123; > $this->Modelname->save(array('somefield'=>0)); How about: $this->Modelname->save(array('Modelname'=>array('id'=>123, 'somefield'=>0))); If you call save in a loop, on every iteration use $this->Modelname- >create() as mentioned on: http://book.cakephp.org/view/75/Saving-Your-Data 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 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 -~--~~~~--~~--~--~---
Freelancer seeking CakePHP jobs
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 --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
activate() SessionHelper from the Controller?
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 it possible to activate the session helper from the controller (for ex. AppController) or do I have to activate in each layout in which I use SessionHelper? Thanks in advance. CAKE 1.2 RC3 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 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 -~--~~~~--~~--~--~---
Rendering complete layout from a controller?
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 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: CakePHP Install Problem
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 an infinite loop. Personally, I find it a good habit to define a virtual host for each cake application. I don't remember how to do that in Windows, but it's well documented on the WWW for sure (should be a matter of adding the domain to some Windows config file so it points to 127.0.0.1 + adding apache vhost configs). Anyway, FollowSymLinks is not necessary in your case. 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 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: CakePHP Install Problem
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" 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: 500 Internal Server Error - GoDaddy
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... 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 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: anyone know why this session check does not work like it suppose to
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 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: Resolved - How to deploy cake on home.pl shared hosting
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 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 -~--~~~~--~~--~--~---
Resolved - How to deploy cake on home.pl shared hosting
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 containing: include_path = ".:/app/..:/app" And that's all, your Dispatcher should now be found and it's high time you go to optimization :-) Hope that saves someone from painful debugging. Applied to RC2, didn't install RC3 yet. 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 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: custom routing and cache
> 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 --~--~-~--~~~---~--~~ 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: CakePHP does not work with mod_rewrite and php-cgi
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. 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 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: custom routing and cache
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@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: Help setting custom validation counting rule
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 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: concern regarding pagination
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 have to look thru $this->params to fetch all data you need. ?search=linkin should be in $this->params['url']['search']. You can fetch that from view or controller. So then, you can recode SearchesController::index() to something like this: function index($search = null) { if (empty($search)) { $search = @$this->params['url']['search']; } ... } HTH, 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 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: Help setting custom validation counting rule
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 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: Index / Url Error?
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 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: URL routing
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 ways to achieve that, in one of my applications I use the approach to create the routes for elements every time a db is updated, but in most cases that would be an overkill. So you need to insert in your routes.php something alike: Router::connect('/users/*', array('controller' => 'users', 'action' => 'view'); and the * part will be mapped to the first parameter in your UsersController::view() method. HTH, 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 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: Validating only several fields in model
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 that. 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 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: page refresh?
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://example.com/images/some_profile_image.jpg?andThisIsSomeHash It would be good to utilize the browser cache the proper way, so you can try to set 'andThisIsSomeHash' to something like md5($myModel['MyModel']['modified']) or md5(filemtime('images/ some_profile_image.jpg')); 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 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: Fatal error: Class 'Dispatcher' not found - please help
> 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" 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: Fatal error: Class 'Dispatcher' not found - please help
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 accounts there + a ssl certificate was assigned to that server as well. If that would be my call, I'd go for a VPS. But as for the rewrite engine - yes, there is rewrite engine on home (.htaccess syntax compatible), and after setting that include paths cake is working. 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 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: Fatal error: Class 'Dispatcher' not found - please help
> 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. 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: Fatal error: Class 'Dispatcher' not found - please help
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 line 77 in app/webroot/index.php. Maybe that will save someone hours of debugging. 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 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: Fatal error: Class 'Dispatcher' not found - please help
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 line 77 in app/webroot/index.php. Maybe that will save someone hours of debugging. The strpos check is there only to allow running dev version on a separate domain where cake works fine... 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 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 -~--~~~~--~~--~--~---
Fatal error: Class 'Dispatcher' not found - please help
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() [function.array-merge]: Argument #1 is not an array in /cake/libs/configure.php on line 511 Warning: array_filter() [function.array-filter]: The first argument should be an array in /cake/libs/configure.php on line 513 Warning: Invalid argument supplied for foreach() in /cake/libs/ debugger.php on line 305 Warning (2): array_merge() [function.array-merge]: Argument #1 is not an array [COREcakeCORElibsCOREconfigure.php, line 511] Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /cake/libs/configure.php on line 511 Warning: array_filter() [function.array-filter]: The first argument should be an array in /cake/libs/configure.php on line 513 Warning: Invalid argument supplied for foreach() in /cake/libs/ debugger.php on line 305 Warning (2): array_merge() [function.array-merge]: Argument #2 is not an array Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /cake/libs/configure.php on line 511 Warning: array_filter() [function.array-filter]: The first argument should be an array in /cake/libs/configure.php on line 513 Warning: Invalid argument supplied for foreach() in /cake/libs/ debugger.php on line 305 Warning (2): array_filter() [function.array-filter]: The first argument should be an array [COREcakeCORElibsCOREconfigure.php, line 513] Warning (2): Invalid argument supplied for foreach() [COREcakeCORElibsCOREconfigure.php, line 1118] Notice (8): Undefined variable: paths [COREcakeCORElibsCOREconfigure.php, line 1125] Fatal error: Class 'Dispatcher' not found in /app/webroot/index.php on line 83 This hosting is so shitty, that the docroot is set at /, so everything is exposed to the WWW (/cake, etc.). I cannot change the docroot to / app/webroot. Any ideas? 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 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 -~--~~~~--~~--~--~---
AppError and view issues in production mode
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: //Checking if not maintenance time... if (TECHNICAL_DOWN_FOR_MAINTENANCE) { $this->cakeError('maintenance'); return; } And here is my AppError in app/error.php: controller->layout = 'maintenance'; $this->__outputMessage('maintenance'); } } As you can see, I use layout of 'maintenance.ctp' and the view with same name. Therefore I have created respectively app/views/layouts/ maintenance.ctp and app/views/errors/maintenance.ctp. And everything works perfectly, ie. maintenance.ctp layout is used, when I have debug setting set to 1 or 2. When I set it to 0, cake switches to default layout and displays the 404 message. Unfortunatelly the Error Handling part of Cookbook is still missing, so I hope you have some clues what may help here. Cake 1.2.0.7296 RC2 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 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: Need a lightbox type app
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 Thickbox AFAIR, you could use it for any ajax query... 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 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: Email component problem
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 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: Email component problem
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 --~--~-~--~~~---~--~~ 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: Users table
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 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: Global Constants
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 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: Advanced routing and controller redirecting
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 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: Issue with displaying image - trailing slash on url causes issue
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" 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: russian characters in MySQL table
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 everything work fine. That's why I decided that the matter is > Cake. Just remember, that by mysql UTF-8 is called utf8 (without hyphen). 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 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: russian characters in MySQL table
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 browser, etc.), russian values are displayed as unreadable > symbols. What should I do? My database.php contains "encoding' => > 'utf-8' " entry. :( Should be rather 'encoding' => 'utf8'. Does this solve the problem? All the best, 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 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: model behaves mysteriously
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.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: russian characters in MySQL table
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, > MySQL qurey browser, etc.), russian values are displayed as unreadable > symbols. What should I do? My database.php contains "encoding' => > 'utf-8' " entry. :( But it should be 'encoding' => 'utf8'. Does it solve the problem for you? All the best, 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 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 -~--~~~~--~~--~--~---