Manual login with Auth->login()

2015-02-25 Thread Chauncey Starkey
I am getting a successful login with Opauth, and sending results to Auth for login, which is returning true, yet when I continue into the protected area I am notified "You are not authorized to access that location." and redirected to the login page. I'm sure I'm missing something obvious... Co

Re: Cookie won't write

2009-06-23 Thread starkey
Fixed - the domain variable was preventing the write. On Jun 23, 3:35 pm, starkey wrote: > This line writes a cookie just fine... however, I want to do it the > 'Cake' way... > setcookie('key2',$this->foo['key'], time()+3600,'/','local

Re: Cookie won't write

2009-06-23 Thread starkey
This line writes a cookie just fine... however, I want to do it the 'Cake' way... setcookie('key2',$this->foo['key'], time()+3600,'/','localhost'); Thanks again! On Jun 23, 3:30 pm, starkey wrote: > After following this doc my cooki

Cookie won't write

2009-06-23 Thread starkey
After following this doc my cookie won't write, what did I miss? All controllers need access to the cookie data so I put the code in app_controller.php. I step through the code and watch it execute the write but nothing is written. Here is the code: function beforeFilter() { $this->Cooki

Re: Session Refresh

2009-06-04 Thread starkey
Bump On Apr 29, 3:26 pm, starkey wrote: > Hello all, > > I'm trying to figure out how to "refresh" the session expiration > time.  For example, if someone logs in at 1pm and the session is > supposed to last an hour then that user is always logged out at 2pm, >

Re: Sort paginated results by aggregate field

2009-05-04 Thread starkey
Like this: sort('AssocModel',AssocModel.field');?> Otherwise, use a stored procedure and Cake should handle the return set like a query return and sort the aggregate field as if it were a column. On May 4, 9:59 am, Hrmo wrote: > I can't figure out how to sort paginated results by an aggregate

Re: Different Validation Rule for Different Purpose?

2009-04-30 Thread starkey
? > > Currently, to use the existing validation infrastructure, before > validation, I put firstname/lastname to dummy value before call $this- > > >model->validates(). Is that workaround make sense? > > Best Regards, > Yang Sun > > On Apr 30, 3:32 am, starkey wro

Re: Value from Key

2009-04-30 Thread starkey
just do a foreach loop. http://us.php.net/manual/en/control-structures.foreach.php On Apr 30, 3:36 am, Aivaras wrote: > for($i = 0; $i < count($array); $i++){ >    echo $array[$i]; // will output your error >    echo $i; // will output the index. > > } > > Still, I have absolutely no idea why w

20M required to generate a 250K file?

2009-04-29 Thread starkey
Hello, I'm creating an Excel spreadsheet data dump using 1.2. I'm trying to figure out why I'm having to bump my memory limit up to 20M to generate a 250K CSV file (about 2100 lines). I've checked all queries involved and they have recursive set to -1. Debug is 0, I don't see where I'm creatin

Re: CakePHP 1.2 Javascript Problem

2009-04-29 Thread starkey
link(array('prototype')); ?> Works for me. On Apr 29, 4:22 pm, "simon...@gmail.com" wrote: > Hi, > > When I was using the older version of cakephp,  I was using javascript > in a view this way: > >                 link('util'); ?> > > In the version 1.2, it doesn't work. What is the sintax I ha

Re: $this->paginate() required?

2009-04-29 Thread starkey
No, it is not required to call paginate. You could do $this->set ('results', $this->SearchedModel->find(...)); On Apr 29, 1:28 pm, "valentin.olte...@gmail.com" wrote: > Sorry, me noob. I forgot to add 'Form' Helper > > On Apr 29, 2:43 pm, "valentin.olte...@gmail.com" > > wrote: > > Hi! I have

Re: Need little help with a validation rule

2009-04-29 Thread starkey
In your model you can override the save() method to check if all fields are empty. If they are then ignore the record. If one or more are set then call parent::save()... using the validation rule Brian mentioned. On Apr 29, 9:43 am, Ernesto wrote: > Hello. > > I have a model with 5 fields > >

Re: Different Validation Rule for Different Purpose?

2009-04-29 Thread starkey
I hope this answers your question: The validation is for the model (the database table) and not the form. The error messages appear on the form which may make you think the validation rules are validating the data in the form... but it isn't. The validation rules check the data before an insert

Session Refresh

2009-04-29 Thread starkey
Hello all, I'm trying to figure out how to "refresh" the session expiration time. For example, if someone logs in at 1pm and the session is supposed to last an hour then that user is always logged out at 2pm, regardless of how frequently they hit the page. What I'd like to happen is after every

Re: Perfomance in CakePHP

2009-04-28 Thread starkey
Keyur, If you are writing a "big application" then I would suggest you invest the time to read the book @ book.cakephp.org and blogs from lemoncake, debuggable, etc which are all wonderful resources. Shawn On Apr 28, 7:06 am, keyurvaghani wrote: > Hello folks, > Can anybody please let me know

Re: Getting a specific URL out of a string

2009-04-28 Thread starkey
You can use substr and strpos to get it. $ii = 0; $jj = 0; if (FALSE !== ($ii = strpos($url, 'twitpic.com'))) { $jj = strpos($url, '&', $ii); $twitpicUrl = substr($url, $ii, ($jj-$ii)); } Or something like that. Shawn On Apr 28, 7:54 am, Kyle Decot wrote: > I know this isn't specificall

Oracle Stored Procedures

2009-04-27 Thread starkey
Hello all! Does Cake support Oracle stored procedures? I found Ticket #3163 (2 years old) in trac but did not see anything in dbo_oracle... Is calling Oracle stored procedures that return a result set supported? Thanks! Shawn Trac: https://trac.cakephp.org/ticket/3163 Oracle stored procedures

Re: Date validation from Model

2009-03-12 Thread starkey
I found my problem... I changed the way I assigned the local $data to the model's $data: // in my model Old: $this->data = $data; New: $this->set($data); And now it works great! Thanks a lot Cake for an excellent framework! S On Mar 12, 11:26 am, starkey wrote: > I forgot to

Re: Date validation from Model

2009-03-12 Thread starkey
I forgot to mention that I also tried other validation rule formats, e.g. 'rule' => array('date','mdy'), without any luck. The Validation::date method gets passed an array when calling validateData from my model while Model::save() sends it a string. Thanks aga

Date validation from Model

2009-03-12 Thread starkey
Hello all! I'm using 1.2.1 I used to just have Cake validate my data in the save() method. Now I need to validate the data before the save, so I call $this- >validateData() inside my model before the save(). My dates used to validate fine when calling save(), now they all fail when I call vali

Re: Multiple Record Validation

2009-03-10 Thread starkey
This turned out to be an error in my code, a typo in a variable. Once I fixed the variable name everything worked great! Cake rocks! On Mar 9, 4:58 pm, starkey wrote: > Hello all, > > I've seen several articles/posts on this and have had some success > following them, howev

Multiple Record Validation

2009-03-09 Thread starkey
Hello all, I've seen several articles/posts on this and have had some success following them, however, now I need to validate the data and I am having to do too much jerry-rigging of the data to get the form to display the originally submitted data with the errors. For example, I have this name

Re: personilized url - routing

2008-09-08 Thread starkey
Interesting. I imagine there are two ways. 1. Put the companyname in every $html-link() call as the first param. 2. Override the $html-link method (perhaps in app_helper) to get the param from the session and then include it in the link. For example: app_helper would have function companyLink(s

Slash in URL Parameter

2008-09-08 Thread starkey
Hello, I am trying to create a URL that contains unnamed parameters that could be strings with forward slashes. I've looked around and saw that it is recommended to use urlencode(), which I tried. The URL ends up looking like this: /view/Migration%2FTransportation however, I still get a 404.

Re: SQL: where column NOT IN ...

2008-08-22 Thread starkey
I'm not clear on why the NOT (column IN ()) syntax is required when NOT IN () is valid SQL (in Oracle and MySQL it works). Any ideas? Thanks! On Aug 22, 12:15 pm, starkey <[EMAIL PROTECTED]> wrote: > Perfect!  Thanks! > > On Aug 21, 5:19 pm, teknoid <[EMAIL PROTECTED]

Re: SQL: where column NOT IN ...

2008-08-22 Thread starkey
Perfect! Thanks! On Aug 21, 5:19 pm, teknoid <[EMAIL PROTECTED]> wrote: > NOTIN is possible, but your syntax isnotcorrect... > > See the "NOT" array:http://book.cakephp.org/view/74/complex-find-conditions > > On Aug 21, 4:08 pm, starkey <[EMAIL PROTECTED]>

SQL: where column NOT IN ...

2008-08-21 Thread starkey
Hello all, I searched for this without success. I'm using 1.2 RC2 and I need to run a query like this: $this->execute('delete from table where column not in (1,2,3)'); OR $this->deleteAll(array('id'=>'NOT IN (1,2,3)'),false, false); The problem is that the execute() returns 'unhandled'. I trac

Re: No numeric index in model

2007-10-10 Thread starkey
Thanks Jon, I'll give it some more thought. On Oct 9, 5:59 pm, "Jon Bennett" <[EMAIL PROTECTED]> wrote: > > I'm porting an existing application to Cake. One of the database > > tables was setup with a primary index that is made up of 3 columns, > > none are incrementing numeric values. > > > T

No numeric index in model

2007-10-09 Thread starkey
Hello everyone, I'm porting an existing application to Cake. One of the database tables was setup with a primary index that is made up of 3 columns, none are incrementing numeric values. The table's index is made up of: website_id link_id run_id Is this possible in Cake? Can I tell Cake not t

Re: Process Flow - Controller to Controller

2007-10-03 Thread starkey
too, > > but i think you should define the relationship between the Group and > User Model > > then when you create a User in the User Model ,,It'll automatically Do > the associated action.. > > On Oct 4, 1:56 am, starkey <[EMAIL PROTECTED]> wrote: > >

Process Flow - Controller to Controller

2007-10-03 Thread starkey
Hello, all! I am trying to figure out the best practice in this situation... In my application's setup process you create new items in a flow. For example, they can add a new user and put that user in a new group: Create User -> Create User Group So I would have a User controller and a Group

Re: link problem

2007-08-28 Thread starkey
I'd suggest stepping into the link method and watch what happens... Sorry, that is all I have. Shawn On Aug 28, 1:39 pm, rtanz <[EMAIL PROTECTED]> wrote: > link('View results PDF',$review['Review'] > ['results_url'],array("target"=>"_blank"))?> > > hi i have this code, i store the url in $revie

Re: how to pivot a table in a function in controller?

2007-08-16 Thread starkey
> a b > 1 2 > 3 4 > 5 6 > > in database , but in my view i want to display it in a table like > > c d e > 1 3 5 > 2 4 6 > > On Aug 15, 10:26 pm, starkey <[EMAIL PROTECTED]> wrote: > > > I'm guessing this has something to do with your earlier

Re: how to pivot a table in a function in controller?

2007-08-15 Thread starkey
I'm guessing this has something to do with your earlier post about users and groups? If you could provide a little more detail on the problem maybe I can provide a little more detail on a solution. Shawn On Aug 15, 10:24 am, starkey <[EMAIL PROTECTED]> wrote: > I do not see how

Re: how to pivot a table in a function in controller?

2007-08-15 Thread starkey
I do not see how the below two tables are related. A pivoted table would look like this: a b 1 2 3 4 5 6 a 1 3 5 b 2 4 6 If you are using Oracle you can pivot the table using sql*plus. If you are using MySQL then you'd need to load the table in an array (using Model->findall()) and then pivot

Re: RSS feeds with Cake

2007-08-14 Thread starkey
I've seen some articles in the Bakery on this... you may want to check there. For example, http://bakery.cakephp.org/articles/view/rss-feed-them-cake Shawn On Aug 14, 3:21 pm, CakeMan <[EMAIL PROTECTED]> wrote: > Hello Bakers, > > i am developing an blog type of website where i show the aricle

Re: One Install, Multiple Apps

2007-08-14 Thread starkey
Joel, That looks like what I need to do. Fantastic! Thanks! Shawn For future reference: http://manual.cakephp.org/chapter/configuration (section 3) http://webexpose.org/2007/05/09/cakephp-routes/ http://bakery.cakephp.org/articles/view/custom-urls-from-the-site-root On Aug 14, 2:52 pm, Joel

Re: Find Condition Problem

2007-08-14 Thread starkey
Language too. > > On 14 août, 19:10, starkey <[EMAIL PROTECTED]> wrote: > > > Try this in your controller: > > > $data = $this->Country->find('id = ' . $id); // where $id is your > > country id > > pr($data); > > > Shawn > >

Re: One Install, Multiple Apps

2007-08-14 Thread starkey
st. Edit is not a controller, > it is an action for the controller. So for your case, poll, news are > the controller. > > Cheers, > Ketan > > starkey wrote: > > On Aug 14, 11:13 am, Joel Stein <[EMAIL PROTECTED]> wrote: > > > Why not just make these all in on

Yet another checkbox question (v1.1)

2007-08-14 Thread starkey
Hello all, In the view, if I set the value to 0 (zero) the checkbox displays as populated. For example, I have this: echo $html->checkbox('Model/column', null, array('value'=>$ind)); // ind == 0 then the checkbox will display as checked because the below (from html.php helper) evaluates to tru

Re: Find Condition Problem

2007-08-14 Thread starkey
Try this in your controller: $data = $this->Country->find('id = ' . $id); // where $id is your country id pr($data); Shawn On Aug 14, 11:28 am, farphadet <[EMAIL PROTECTED]> wrote: > Hy > > I have this 3 models, and i try to retreive all informations about a > country > according to the id of

Re: One Install, Multiple Apps

2007-08-14 Thread starkey
On Aug 14, 11:13 am, Joel Stein <[EMAIL PROTECTED]> wrote: > Why not just make these all in one application, but with several > controllers? Then you can tie them together with AppController. Thanks for your reply. I don't think I can because I need my URLs to be similar to: http://www.domain.ed

Re: display data

2007-08-14 Thread starkey
I suggest you follow the excellent Blog tutorial in the manual. It will help you out a lot (it did for me!). Shawn On Aug 14, 5:40 am, Wimg <[EMAIL PROTECTED]> wrote: > i have problem with display data, for example , i have a database like > this > > a b c > 1 2 3 > 1 3 4 > > i wanna disp

Re: Can I access database or execute some sql inside views ?

2007-08-14 Thread starkey
In your controller get the data and pivot it, then send it to the view. Shawn On Aug 14, 8:49 am, Wimg <[EMAIL PROTECTED]> wrote: > The problem is like this, i have a database as below: > > user_id , group_id > > 1 1 > 2 1 > 3 2 > 4 2 > > i wan

Re: One Install, Multiple Apps

2007-08-13 Thread starkey
I forgot to mention that I'm using Cake 1.1.16.5421 and all apps would share the same database. Thanks! Shawn On Aug 13, 3:19 pm, starkey <[EMAIL PROTECTED]> wrote: > I'm trying to configure a setup with multiple apps that are accessible > to each other. The sort of se

One Install, Multiple Apps

2007-08-13 Thread starkey
I'm trying to configure a setup with multiple apps that are accessible to each other. The sort of setup we need might be N number of apps running on one CakePHP installation with this sort of install: www.domain.edu/news/ www.domain.edu/polls/ www.domain.edu/catalog/ These apps would need to be

Re: Access Model from Component

2007-08-09 Thread starkey
I thought behaviors were Cake 1.2? I'm using Cake 1.1. Thanks for your response, Shawn On Aug 9, 3:52 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On 8/9/07, starkey <[EMAIL PROTECTED]> wrote: > > > > > Hello! I'm using Cake 1.1 and I&#x

Re: Access Model from Component

2007-08-09 Thread starkey
tent class: model1" errors. Any guidance sure would be appreciated. Thanks, Shawn On Aug 9, 11:58 am, starkey <[EMAIL PROTECTED]> wrote: > I changed the name to TesterComponent and still no good. > > Thanks! > > On Aug 9, 11:56 am, starkey <[EMAIL PROTECTED]> wrote: >

Re: Access Model from Component

2007-08-09 Thread starkey
I changed the name to TesterComponent and still no good. Thanks! On Aug 9, 11:56 am, starkey <[EMAIL PROTECTED]> wrote: > Hello! I'm using Cake 1.1 and I'm trying to create a component that > accesses the database. > > Here is what I have: > /cake > /app &g

Access Model from Component

2007-08-09 Thread starkey
Hello! I'm using Cake 1.1 and I'm trying to create a component that accesses the database. Here is what I have: /cake /app /controllers /components tester.php /models model1.php model2.php class Tester extends Object { var $controller = true; var $Model

Re: Create a form in 1.1.16.5421

2007-08-08 Thread starkey
Before I get jumped on... I see stuff like this: I'm just looking for the create() method. Thanks! Shawn On Aug 8, 4:31 pm, starkey <[EMAIL PROTECTED]> wrote: > I must be totally confused... I'm trying to create a form using Cake's > view helpers. So I go to the H

Create a form in 1.1.16.5421

2007-08-08 Thread starkey
I must be totally confused... I'm trying to create a form using Cake's view helpers. So I go to the HtmlHelper::formTag function and it says to use FormHelper::create() instead. Problem is I can't find FormHelper::create() as it is not in Form.php or helper.php. http://api.cakephp.org/class_form

Re: Cannot instantiate non-existent class

2007-08-08 Thread starkey
stray) you should > expect pain and heart aches > > Sam > On 8/8/07, starkey <[EMAIL PROTECTED]> wrote: > > > Thank you for looking after this noobie. > > > On Aug 8, 12:58 pm, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > > > class SarosS

Re: Cannot instantiate non-existent class

2007-08-08 Thread starkey
Thank you for looking after this noobie. Shawn On Aug 8, 12:58 pm, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > class SarosSarg extends AppModel > > On 8/8/07, starkey <[EMAIL PROTECTED]> wrote: > > > > > > > Hello all! > > > I'

Cannot instantiate non-existent class

2007-08-08 Thread starkey
Hello all! I'm stumped, can anyone take a moment and help me figure out why I'm getting these errors? Warning: overload() was unable to locate class 'sarossarg' in \cake \cake\basics.php on line 233 Fatal error: Cannot instantiate non-existent class: sarossarg in \cake \cake\libs\model\model_ph

Re: Model findAll Error

2007-08-01 Thread starkey
Odd, I moved it to my controller and it worked fine... Can someone explain why? Thanks! function add() { $selectBoxData = $this->Aro- >findAll(null,array('id','alias'),'alias ASC',null,1,0); ... } On Aug 1, 4:46 pm, starkey &l

Model findAll Error

2007-08-01 Thread starkey
Okay, I'm sure I'm really showing my noobie stripes with this one... As a learning exercise I'm creating a front end for ACL. Instead of using generateList to populate a selectTag I thought I'd try a custom query by adding a method to my model and call it from the controller. Here is the method

Re: How should I allow Users only to edit their own Posts in a Cake App? Acl related

2007-08-01 Thread starkey
I do not think I'd use ACL for this. I'd do as you suggest and check the current userid against the create_by userid. Also, I would not give them an "edit" or "view" link if they aren't allowed to edit/view it, they would just get confused if the option is there but they can't use it. Regards,

Re: Component, Model, or Vendor?

2007-08-01 Thread starkey
you > should model your data in a LdapUser model that provides a convinient > way for using LDAP data. Finally you should handle in a controller > authentication issues. > > This is just my opinion ... I hope it may help. > > ylb > > On Jul 31, 3:46 pm, starkey <[EMAIL PROT

Re: cakephp events reminder

2007-08-01 Thread starkey
First, setup a cronjob to run at whatever period you want, calling your script. Now, in your script: Set your server's timezone equal to the user's timezone. Then query your reminders table for upcoming reminders. Send the reminder Finally, delete the record for the reminder that you just sent. R

Re: Best Practice for Views

2007-08-01 Thread starkey
Grant & Geoff, that's a pretty cool solution! On Jul 31, 7:56 pm, Geoff Ford <[EMAIL PROTECTED]> wrote: > I'm with grant - use one action with a differnt view as needed > > function action1($layout = 'list'){ > // set data and other stuff > switch ($layout){ > case 'table': > $this

Re: About Associations : example

2007-08-01 Thread starkey
I suggest you check out the Bakery. On Aug 1, 7:40 am, Ghanshyam Rathod <[EMAIL PROTECTED]> wrote: > Hello friends, > > I am newbie to the cakePHP frameworks and want to learn association > in good way. > kindly send me SQL script with model, controller and view code. > > i mean running exampl

Re: Model->query return array differences

2007-07-31 Thread starkey
Never mind, I found that it is a difference in the DBO drivers. On Jul 31, 4:36 pm, starkey <[EMAIL PROTECTED]> wrote: > Hello, > > I'm porting some code from one machine to another, one is PHP4/MySQL > and the other PHP5/Oracle. When I run the below query I ge

Model->query return array differences

2007-07-31 Thread starkey
Hello, I'm porting some code from one machine to another, one is PHP4/MySQL and the other PHP5/Oracle. When I run the below query I get two different array structures back (see below). I'm spending some time figuring out if it is PHP, Cake, or DBO driver differences. Has anyone run into this b

Re: Best Practice for Views

2007-07-31 Thread starkey
variable for the view. Then > in the view eval() the code? Good idea or not? hm. > > On Jul 31, 12:02 pm, starkey <[EMAIL PROTECTED]> wrote: > > > I think I understand... It sounds to me like you should have two > > actions, not > > one:http://www.some.co

Re: Best Practice for Views

2007-07-31 Thread starkey
I think I understand... It sounds to me like you should have two actions, not one: http://www.some.com/controller/viewList/ http://www.some.com/controller/viewTable/ Having one view to encapsulate two doesn't sound correct... but I'm still new at this myself. On Jul 31, 12:48 pm, "[EMAIL PROTEC

Re: Load only some record of a DB table in a model

2007-07-31 Thread starkey
Yes, I believe so. Check out findAll, findAllBy... etc, here: http://manual.cakephp.org/chapter/models Regards, Shawn On Jul 31, 10:35 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi > I'm a newbie with Cake. > I have a question. > Can I load in a model only some records of a Db table (

Re: Component, Model, or Vendor?

2007-07-31 Thread starkey
Yeah, I've read those; I need to keep the business logic we have in our connector. Thanks! On Jul 31, 9:54 am, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > Have you looked at the articles in the bakery on LDAP use. > > >

Re: Best Practice for Views

2007-07-31 Thread starkey
Couldn't you create an Element for the data? http://manual.cakephp.org/chapter/views On Jul 30, 6:58 pm, Grant Cox <[EMAIL PROTECTED]> wrote: > Are you talking about several different "skins", but really the same > data and presentation? Or are you talking about some non-trivial data > calculat

Component, Model, or Vendor?

2007-07-31 Thread starkey
Good morning, I'm porting an LDAP connector to Cake and am trying to figure out the best way to do it without cutting it up into pieces. Basically, the connector authenticates someone against LDAP and then loads relevant LDAP data (and some other data) into the session. So the object needs acce

Re: visit counter

2007-07-30 Thread starkey
I would suggest the footer of your layout (cake/app/views/layouts). Have fun. On Jul 30, 3:06 pm, Oscar Burgos <[EMAIL PROTECTED]> wrote: > any sugestion about the best place to embed to code for visit counter > like google analytics or something like that? > > thank you > > Óscar --~--~-

ACL needs modification for Oracle

2007-07-30 Thread starkey
Just a note for future generations... ACL in cake_1.1 uses table column names starting with an underscore. Oracle does not allow columns starting with '_' so you will need to modify the classes. When I'm done testing I'll append them to this post (or somewhere more appropriate?). Regards, Shawn

Re: $this->action = images ??

2007-07-30 Thread starkey
THANK YOU! On Jul 30, 12:08 am, Grant Cox <[EMAIL PROTECTED]> wrote: > Or, are you referring to any images in your view that have a relative > path (and you aren't using the HTML helper image() function)? > > If you view localhost/users/index, and there is a relative image > "images/yourimage.j

$this->action = images ??

2007-07-29 Thread starkey
Sorry, I'm such a noob and I'm swimming through batter. I'm getting a weird action... After my expected action runs, I get a second action of 'images' for some weird reason (I have no idea). My process is really simple (no components, vendors, elements, etc). Basically, I have this in a control

Turn off writing to debug.log

2007-07-27 Thread starkey
Anyone know how to turn off writing to the debug.log? I've set define('DEBUG', 0); and just about everything else I can think of off. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To po

ACL - Deny All or Allow All

2007-07-26 Thread starkey
Hello! As a new Cake user this group is a life saver, it really fills in the holes. I hope after I've learned a bit I can start answering more questions than I ask. Anyway, I've read the manual on ACL and what articles I've found and do not understand how to allow or deny access for an entire s

Re: Get data from Model that has no association

2007-07-25 Thread starkey
THANK YOU! On Jul 25, 5:00 pm, rtconner <[EMAIL PROTECTED]> wrote: > I'm not fully sure if it's the best way, but I've always used the > loadModel function. > > On Jul 25, 2:57 pm, starkey <[EMAIL PROTECTED]> wrote: > > > Hello, > > >

Get data from Model that has no association

2007-07-25 Thread starkey
Hello, How do I access a model that is not associated in any way to the current model? For example, lets say I'm in FooController and I need data from the Bar table (or save data to it)... without having any defined association (e.g. belongsTo or hasMany). Sounds easy but I'm stumbling on it.

Re: Session not cleared after browser closed

2007-07-23 Thread starkey
Quick stab: are you using a persistent cookie to save the session id? On Jul 23, 1:15 pm, Tazz <[EMAIL PROTECTED]> wrote: > Correct me if I'm wrong but a sessions should be cleared after all > instances of a browser have been closed. > > For some reason cake is still keeping the session after I

Re: Oracle Driver problem for delete

2007-07-23 Thread starkey
fect sense to me, given that DboOracle is the child, however the parameters do not match so I'd expect the call to stay in DboSource. Is anyone else experiencing this? Thanks! On Jul 20, 4:51 pm, starkey <[EMAIL PROTECTED]> wrote: > Hello! I am a developer at the University of Ric

Oracle Driver problem for delete

2007-07-20 Thread starkey
Hello! I am a developer at the University of Richmond; we are an Oracle shop. I am testing Cake for some projects we have planned and am using the Oracle driver (the version in 1.2alpha). To learn Cake's functionality I'm walking through the 15 minute Blog tutorial from the manual. I am having