Re: configure::read newbie question
The Configure Class can be used to store values during runtime: Configure::write('Site.webmaster', '[EMAIL PROTECTED]'); Configure::write('Site.title', 'My Site'); and read them: Configure::read('Site.webmaster'); // returns '[EMAIL PROTECTED]' Configure::read('Site'); // returns array('webmaster' => '...', 'title' => '...') you can also store the current values in a file permanently with Configure::store() See http://api.cakephp.org/class_configure.html for further information. On Sep 14, 4:33 am, "Gustavo Carreno" <[EMAIL PROTECTED]> wrote: > The default value for the read() method is 'debug'. > This means that it return the value of debug settings. > > 2008/9/14 . <[EMAIL PROTECTED]>: > > > what does configure::read() do? --~--~-~--~~~---~--~~ 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: configure::read newbie question
The default value for the read() method is 'debug'. This means that it return the value of debug settings. 2008/9/14 . <[EMAIL PROTECTED]>: > what does configure::read() do? > > > --~--~-~--~~~---~--~~ 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: ACL: Default ARO?
Nevermind, I just found a rather nice tutorial on the subject. http://myeasyscripts.com/loudbaking/how-to-use-authcomponent-in-cakephp/ Mark On Sep 13, 3:50 pm, Mark <[EMAIL PROTECTED]> wrote: > Oh well..maybe I'll just do it the way everyone else is and define the > default allowed actions in the controller. It's just that I have 20 > controllers already, and it seems kind of silly to put that same code > snippet in every single one of them. Is there a way I can put > > $this->Auth->allowedActions = array('index', 'view'); > > in the AppController's beforeFilter and it apply to all the classes? > AFAIK that only says index and view are available in the > AppController, not derived controllers. > > Mark > > On Sep 13, 3:43 pm, "Jon Bennett" <[EMAIL PROTECTED]> wrote: > > > Hi Mark, > > > > Are you sure it takes an array? This doesn't want to work at all. > > > Before it was grabbing the username 'guest' from the database like it > > > was supposed to... just the permissions were wrong. > > > hmm, in my app I using the same code to update Auth's session when the > > active user updates their profile: > > > // Grab User id > > $this->User->id = $this->Auth->user('id'); > > // Grab up to date data > > $user = $this->User->read(); > > // Pass updated data to Auth > > $this->Auth->login($user); > > > AFAIK cake expects everything as arrays. > > > Jon > > > -- > > > jon bennett > > w:http://www.jben.net/ > > iChat (AIM): jbendotnet Skype: jon-bennett > > --~--~-~--~~~---~--~~ 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: Complex queries
http://book.cakephp.org/view/78/Associations-Linking-Models-Together On Sep 13, 9:31 am, Mojo <[EMAIL PROTECTED]> wrote: > Hi, > I'm looking for a good tutorial about making a complex query joining > different tables. > > Thanks --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
How to remove ugly markup from helper? ( )
Form helper inserts the following code in every form: Is there any way to remove the fieldset tag or the inline style? I'd rather have the entire form inside a single fieldset instead of having an invisible input field inside its own fieldset. Also, the inline style is a web standards issue. How can I fix 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: HtmlHelper::mailto
hi thomas, > I tried invoking that from a view earlier but got an error; I believe > it needs to be in a controller. And as I'm just creating pages (no > controllers of my own yet), I'm not sure how I should go about > applying that transformation. However, I only want to use mailto links > selectively (I wouldn't want to transform addresses in a table, and it > looks like the capability is already there. You need to include the 'Text' helper in your controller to use it. Cheers, Jon -- jon bennett w: http://www.jben.net/ iChat (AIM): jbendotnet Skype: jon-bennett --~--~-~--~~~---~--~~ 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: HtmlHelper::mailto
On Sat, Sep 13, 2008 at 1:15 PM, 703designs <[EMAIL PROTECTED]> wrote: > > It looks like the capability's there ( > http://api.cakephp.org/html_8php-source.html#l00047 > ), but invoking the method from a page view throws this error: > > Warning (512): Method HtmlHelper::mailto does not exist [CORE/cake/ > libs/view/helper.php, line 148] > > What needs to be done to enable the mailto option? You probably want the TextHelper::autoLinkEmails() function. - Gonzalo --~--~-~--~~~---~--~~ 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: HtmlHelper::mailto
Oh, I see, I would just need to write a function similar to HtmlHelper::link, which includes a call to the tags array I linked before: return $this->output(sprintf($this->tags['link'], $url, $this- >_parseAttributes($htmlAttributes), $title)); So I guess it's just a matter of extending or copying HtmlHelper? On Sep 13, 12:24 pm, "Gonzalo Servat" <[EMAIL PROTECTED]> wrote: > On Sat, Sep 13, 2008 at 1:15 PM, 703designs <[EMAIL PROTECTED]> wrote: > > > It looks like the capability's there ( > >http://api.cakephp.org/html_8php-source.html#l00047 > > ), but invoking the method from a page view throws this error: > > > Warning (512): Method HtmlHelper::mailto does not exist [CORE/cake/ > > libs/view/helper.php, line 148] > > > What needs to be done to enable the mailto option? > > You probably want the TextHelper::autoLinkEmails() function. > > - Gonzalo --~--~-~--~~~---~--~~ 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: HtmlHelper::mailto
I tried invoking that from a view earlier but got an error; I believe it needs to be in a controller. And as I'm just creating pages (no controllers of my own yet), I'm not sure how I should go about applying that transformation. However, I only want to use mailto links selectively (I wouldn't want to transform addresses in a table, and it looks like the capability is already there. On Sep 13, 12:24 pm, "Gonzalo Servat" <[EMAIL PROTECTED]> wrote: > On Sat, Sep 13, 2008 at 1:15 PM, 703designs <[EMAIL PROTECTED]> wrote: > > > It looks like the capability's there ( > >http://api.cakephp.org/html_8php-source.html#l00047 > > ), but invoking the method from a page view throws this error: > > > Warning (512): Method HtmlHelper::mailto does not exist [CORE/cake/ > > libs/view/helper.php, line 148] > > > What needs to be done to enable the mailto option? > > You probably want the TextHelper::autoLinkEmails() function. > > - Gonzalo --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Complex queries
Hi, I'm looking for a good tutorial about making a complex query joining different tables. Thanks --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
HtmlHelper::mailto
It looks like the capability's there ( http://api.cakephp.org/html_8php-source.html#l00047 ), but invoking the method from a page view throws this error: Warning (512): Method HtmlHelper::mailto does not exist [CORE/cake/ libs/view/helper.php, line 148] What needs to be done to enable the mailto option? --~--~-~--~~~---~--~~ 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: Cake setup for this kind of site:
> > What's the best way to set and retrieve a site > name? Configure::write('App.name', 'Baking is Greeat'); expanding on that http://debuggable.com/posts/4-cakephp-tricks:4811ad82-32dc-4a38-bc10-36304834cda3 2008/9/13 703designs <[EMAIL PROTECTED]> > > OK, this makes sense. What's the best way to set and retrieve a site > name? I'd like to define the site name in one place, but I think that > I might be repeating someone else's work by extending AppController. > > On Sep 13, 10:00 am, teknoid <[EMAIL PROTECTED]> wrote: > > To build static pages that share the layout of your cakephp's site, > > you simply add some_file.ctp to your app/views/pages directory, then > > such page is accessed atwww.yoursite.com/pages/some_file. If you want > > a static page that has nothing to do with cake, simply place it in > > your cake's webroot directory and it will be accessed > atwww.yousite.com/someOtherFileNotRelatedToCake.php > > > > There is a core 'pages' controller, which you can override if you need > > some specific functionality for your static pages. Also it may or may > > not be desirable for you to have 'pages' int the path of the URL, but > > that's easily dealt with routes. > > > > I like to make my static pages links point to something > likewww.mysite.com/staticPage.html, then this route rule will properly > > make the connection to the right controller (hopefully you can see how > > that works): > > > > Router::connect('/(.*).html', array('controller' => 'pages', 'action' > > => 'display')); > > > > On Sep 13, 9:22 am, 703designs <[EMAIL PROTECTED]> wrote: > > > > > The CakePHP docs don't go into very many details about how to use > > > CakePHP in conjunction with a static website. I'm building a light CRM > > > app that will be behind my mostly static company site, but I want to > > > keep these static pages in the Cake system so that templates are > > > shared and I have access to dynamic capabilities even on static pages. > > > What's the preferred way to go about this? I see, for example, that > > > one router is configured to send '/' to pages->default(home), and I > > > imagine that routing will be involved in what I'm trying to do. > > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Log to DB: Custom model, custom component or custom class?
Hi all, I would like to recieve a daily diggest of what has happened in my app, as well as to display it on the admin interface. So I decided to implement a custom log function, because the core one (CakeLog) can't log to database. Then a problem arise: 1.- If I do it with a model/controller pair, I can log from my controllers, but cannot from my models. 2.- If I do it with as a vendor class and import it from my app, I cannot use $model->save() or $model->find(). Regarding method [1], I'am currently using something like this: class AppModel extends Model { function afterDelete() { CakeLog::write(LOG_DEBUG, "[{$this->name}] Deleted id #{$this- >id}"); } function afterSave() { } } I'm interested in best-practices, not tricks. Any idea? --~--~-~--~~~---~--~~ 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: Cake setup for this kind of site:
OK, this makes sense. What's the best way to set and retrieve a site name? I'd like to define the site name in one place, but I think that I might be repeating someone else's work by extending AppController. On Sep 13, 10:00 am, teknoid <[EMAIL PROTECTED]> wrote: > To build static pages that share the layout of your cakephp's site, > you simply add some_file.ctp to your app/views/pages directory, then > such page is accessed atwww.yoursite.com/pages/some_file. If you want > a static page that has nothing to do with cake, simply place it in > your cake's webroot directory and it will be accessed > atwww.yousite.com/someOtherFileNotRelatedToCake.php > > There is a core 'pages' controller, which you can override if you need > some specific functionality for your static pages. Also it may or may > not be desirable for you to have 'pages' int the path of the URL, but > that's easily dealt with routes. > > I like to make my static pages links point to something > likewww.mysite.com/staticPage.html, then this route rule will properly > make the connection to the right controller (hopefully you can see how > that works): > > Router::connect(’/(.*).html’, array(’controller’ => ‘pages’, ‘action’ > => ‘display’)); > > On Sep 13, 9:22 am, 703designs <[EMAIL PROTECTED]> wrote: > > > The CakePHP docs don't go into very many details about how to use > > CakePHP in conjunction with a static website. I'm building a light CRM > > app that will be behind my mostly static company site, but I want to > > keep these static pages in the Cake system so that templates are > > shared and I have access to dynamic capabilities even on static pages. > > What's the preferred way to go about this? I see, for example, that > > one router is configured to send '/' to pages->default(home), and I > > imagine that routing will be involved in what I'm trying to do. --~--~-~--~~~---~--~~ 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: Cake setup for this kind of site:
To build static pages that share the layout of your cakephp's site, you simply add some_file.ctp to your app/views/pages directory, then such page is accessed at www.yoursite.com/pages/some_file. If you want a static page that has nothing to do with cake, simply place it in your cake's webroot directory and it will be accessed at www.yousite.com/someOtherFileNotRelatedToCake.php There is a core 'pages' controller, which you can override if you need some specific functionality for your static pages. Also it may or may not be desirable for you to have 'pages' int the path of the URL, but that's easily dealt with routes. I like to make my static pages links point to something like www.mysite.com/staticPage.html, then this route rule will properly make the connection to the right controller (hopefully you can see how that works): Router::connect(’/(.*).html’, array(’controller’ => ‘pages’, ‘action’ => ‘display’)); On Sep 13, 9:22 am, 703designs <[EMAIL PROTECTED]> wrote: > The CakePHP docs don't go into very many details about how to use > CakePHP in conjunction with a static website. I'm building a light CRM > app that will be behind my mostly static company site, but I want to > keep these static pages in the Cake system so that templates are > shared and I have access to dynamic capabilities even on static pages. > What's the preferred way to go about this? I see, for example, that > one router is configured to send '/' to pages->default(home), and I > imagine that routing will be involved in what I'm trying to do. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
upgrading to 1.2 and non-ascii characters in forms
Hello, I'm in a middle of migrating a project from cake 1.1 to 1.2. I've got most pages to display, but I ran into one problem with forms. Source code in a view goes like this: $miesiace=array('Styczeń','Luty','Marzec','Kwiecień','Maj','Czerwiec','Lipiec','Sierpień','Wrzesień','Październik','Listopad','Grudzień'); echo $form->input('Zamowienie.miesiac',array( 'label'=> '', 'type'=>'select', 'options'=>$miesiace, 'selected'=>date("m")-1) ); which generates HTML: Luty Marzec Maj All options with non-ascii characters are blank. It used to work with 1.1. Any ideas? Also, is there a more comprehensive upgrade guide than http://book.cakephp.org/view/411/Migrating-from-CakePHP-1-1-to-1-2 ? This one doesn't seem to cover all the changes. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Cake setup for this kind of site:
The CakePHP docs don't go into very many details about how to use CakePHP in conjunction with a static website. I'm building a light CRM app that will be behind my mostly static company site, but I want to keep these static pages in the Cake system so that templates are shared and I have access to dynamic capabilities even on static pages. What's the preferred way to go about this? I see, for example, that one router is configured to send '/' to pages->default(home), and I imagine that routing will be involved in what I'm trying to do. --~--~-~--~~~---~--~~ 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: Edit forms in Internet Explorer
Wow, that's pretty obscure. Yes, I'm using mod_auth_sspi. It was so easy to set up, I hate to change to LDAP, but it looks like that's going to be necessary. Thanks for the suggestion, I'll give it a try. On Sep 12, 6:32 pm, Niko <[EMAIL PROTECTED]> wrote: > I was having the exact same problem until I disable the mod_auth_sspi > module. I then replaced it with mod_authnz_ldap and everything works > fine. Maybe you can check something at a module level. When I set a > proxy between the web server and IE I found out that when it got stuck > all the server got was GET request and no PUT. If you wait a couple of > seconds and hit the submit button you got a PUT request, as expected. > Hope that helps. > Nico. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Caching doesnt work for some actions
I've got this code: var $helpers = array('Cache'); var $cacheAction = array ( 'index' => '+1 hour', 'view' => '+1 hour' ); [...] function view($id = null) { if (!$id) { $this->Session->setFlash(__('Invalid Post.', true)); $this->redirect(array('action'=>'index')); } $this->set('post', $this->Post->read(null, $id)); } function index() { $data = $this->Post->findAll(); $this->set('posts', $data); } Caching for the index works, but the queries for the view action will always be makde. Why? I've tried changing $cacheAction to view slash (/) instead, but that didnt do any difference. Fact is, if I did it for the index, index caching wouldnt work either at all. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
cakephp linking not working
We have developed a test application using php and tested it on window/ IIS server and it works fine. But the same application when placed on another windows/IIS server machine cakephp linking does not work. Let me explain in more detail Here is url in one of my server: http://localhost/cake_1.1.19.6305/index.php/persons/add/ So when we click submit it would add the data but on the second server when we do the same then instead processing Add function of persons controller , it would say "Page not found". I am copying the same folder on both servers. Please help on this issue. --~--~-~--~~~---~--~~ 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: ACL: Default ARO?
Okay, I'm so confused now. It automatically logs me in as a guest when I first go to my site. user 'guest' belongs to group 'guests'. guests have -1/-1/-1/-1 permissions for aco 'controllers', but they seem to have full permissions...? On Sep 13, 2:59 am, "Jon Bennett" <[EMAIL PROTECTED]> wrote: > > Seems like a bit of a hack, > > yes and no - ACL is tied directly to Auth, without an active Auth > session, ACL has nothing to check against. The non-hacky way to do it > is to use $this->Auth->allow('action', 'another'); in your controllers > beforeFilter(); > > > but it's working. Thanks :) > > :) > > jon > > -- > > jon bennett > w:http://www.jben.net/ > iChat (AIM): jbendotnet Skype: jon-bennett --~--~-~--~~~---~--~~ 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: Caching help
I found this and it works excellent. http://bakery.cakephp.org/articles/view/icache-true-query-caching On Sep 12, 3:30 pm, Kenchu <[EMAIL PROTECTED]> wrote: > Thanks! > > But what about caching for longer periods, w/o updating? Because as of > now, if you update a table, then the queries will be remade. I just > want 1 query to occur once each day for a specific thing.. > > On Sep 10, 10:53 am, Dave J <[EMAIL PROTECTED]> wrote: > > > Hi Kenchu, > > > I'm almost sure this is a hack, but it's been working fine for me so > > far. > > > If you want your variables to persist in the cached views, set them > > like this: > > > $this->data['variableName'] = 'variableValue'; > > > You can have a look at the created cached files in the tmp directory > > to see what Cake is doing. At the very top, there's a list of > > variables which are persistent for that cache. > > > On Sep 9, 2:27 pm, Kenchu <[EMAIL PROTECTED]> wrote: > > > >http://book.cakephp.org/view/347/Marking-N...ontent-in-Views > > > > In the link above they've got a cached page, but still within the > > > tags they access a variable called $newProducts. How is > > > that possible? I've been trying to use the $this->set([...]) function > > > in the action, beforeFilter and in the __construct, but none of them > > > worked. Neither the action im caching or beforeFilter would run. Why > > > putting it in the construct didnt work I dont know. > > > > So how do you send data to a nocache tag within a cached page? > > > > I also wonder if it's possible to keep acachefor a whole day without > > > it being updated, even though new posts and updates occur in the > > > database. According to: > > > >http://book.cakephp.org/view/348/Clearing-the-Cache > > > > thecacheis cleared for this. I don't want it to be. --~--~-~--~~~---~--~~ 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: Advance Pagination
Hi nayan, > I saw the advance pagination code on > http://bakery.cakephp.org/articles/view/advanced-pagination-1-2 > but they dont specify where we have to include the code ...have any > another advance pagination code you don't have to include Paginate or Paginator, they are available always. http://book.cakephp.org/view/164/Pagination jb -- jon bennett w: http://www.jben.net/ iChat (AIM): jbendotnet Skype: jon-bennett --~--~-~--~~~---~--~~ 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: ACL: Default ARO?
> Seems like a bit of a hack, yes and no - ACL is tied directly to Auth, without an active Auth session, ACL has nothing to check against. The non-hacky way to do it is to use $this->Auth->allow('action', 'another'); in your controllers beforeFilter(); > but it's working. Thanks :) :) jon -- jon bennett w: http://www.jben.net/ iChat (AIM): jbendotnet Skype: jon-bennett --~--~-~--~~~---~--~~ 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: ACL: Default ARO?
Seems like a bit of a hack, but it's working. Thanks :) Mark On Sep 13, 2:40 am, "Jon Bennett" <[EMAIL PROTECTED]> wrote: > Hi Mark, > > > So, I've got my ACL and Authentication all set up nicely, but I want > > to allow unlogged-in users to view everything. For consistency, I'd > > like to keep these permissions in the database. So, I've created an > > ARO with guest privileges... but how can I tell it to use it when no > > one is logged in? > > I guess you'd have to simulate the sign in of a guest user? in your > app_controller check to see if there's an active auth session, if not > pass an array containing the guest info the $this->Auth->login(); > > hth > > jon > > -- > > jon bennett > w:http://www.jben.net/ > iChat (AIM): jbendotnet Skype: jon-bennett --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Advance Pagination
I saw the advance pagination code on http://bakery.cakephp.org/articles/view/advanced-pagination-1-2 but they dont specify where we have to include the code ...have any another advance pagination code --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Redirect Problem
are the following sytex same? 1. $this->redirect('/Celebrities/index'); 2. $this->redirect('/celebrities/index'); Both redirect me on index page...Confused --~--~-~--~~~---~--~~ 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: ACL: Default ARO?
Hi Mark, > So, I've got my ACL and Authentication all set up nicely, but I want > to allow unlogged-in users to view everything. For consistency, I'd > like to keep these permissions in the database. So, I've created an > ARO with guest privileges... but how can I tell it to use it when no > one is logged in? I guess you'd have to simulate the sign in of a guest user? in your app_controller check to see if there's an active auth session, if not pass an array containing the guest info the $this->Auth->login(); hth jon -- jon bennett w: http://www.jben.net/ iChat (AIM): jbendotnet Skype: jon-bennett --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
ACL: Default ARO?
So, I've got my ACL and Authentication all set up nicely, but I want to allow unlogged-in users to view everything. For consistency, I'd like to keep these permissions in the database. So, I've created an ARO with guest privileges... but how can I tell it to use it when no one is logged in? Thanks! Mark --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---