Re: User Management\Login\Auth Framework

2008-02-07 Thread codecowboy
You might want to try this one by Mariano: It uses phpgacl which is a generic php acl app. http://dev.sypad.com/installing-phpgacl-plugin-cakephp Later, Codecowboy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Web App Security Books

2008-01-13 Thread codecowboy
Does anyone recommend some books that cover web application security? Thank you, CodeCowBoy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email t

Re: Need: CakePHP Contact Form Need Please

2007-07-27 Thread codecowboy
Can you please elaborate. You did not ask a question. On Jul 27, 8:39 am, Baz L <[EMAIL PROTECTED]> wrote: > I'm really having problems here. > > I'm guessing someone has already developed something like this. > > I looked at this in the > bakery:http://bakery.cakephp.org/articles/view/sending-

Re: How can I have an action return the contents of a processed .thtml file

2007-06-28 Thread codecowboy
> $html = ob_get_contents(); > ob_end_clean(); > $this->layout = $layout; > > On Jun 28, 12:14 pm, codecowboy <[EMAIL PROTECTED]> wrote: > > > Hi All, > > > I have been wondering it is possible to have a function like render > > return as a string the ht

How can I have an action return the contents of a processed .thtml file

2007-06-27 Thread codecowboy
Hi All, I have been wondering it is possible to have a function like render return as a string the html that is produced by a view after cake has processed it into html. For instance. Lets say that I am using a datagrid to return search results. I use a callback function to modify the content

Re: NULL values

2007-04-30 Thread codecowboy
what if that is only one of the conditions? On Apr 29, 9:53 pm, Sergei <[EMAIL PROTECTED]> wrote: > $sqlConditions="myfield IS NULL" > > and that's all. > > Sergei. > > On 30 апр, 10:03, codecowboy <[EMAIL PROTECTED]> wrote: > > > Hi Al

NULL values

2007-04-29 Thread codecowboy
Hi All, Does anyone know how to check if a value is null when using the model- >find($sqlConditions, ., ., .) function? I know that sql syntax is : select * from users where fieldname is NULL Thanks, Code Cowboy --~--~-~--~~~---~--~~ You received this messag

Re: 2 questions about ACL

2007-04-10 Thread codecowboy
Hi Langdon, Thank you. I actually found about gacl a couple days ago and I have been looking into it. There's a cake plugin for it too. Later, Codecowboy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: 2 questions about ACL

2007-04-10 Thread codecowboy
Hi Landon, Thank you for the reply. Do you know of any ACL implementations (not necessarily for Cake) that do support users belonging to multiple groups? I am thinking about implementing my own and would to see if anyone else has done it before. Thank you, Codecowboy

2 questions about ACL

2007-04-09 Thread codecowboy
7;s (1.x) ACL support field level permissions? Lets say that a user is allowed to view an action but not all users that view the action are treated equally. Basically, user A can see everything where as user B can only see half of everything. Thank you, CodeCowBoy --~--~-~--~~--

data generation

2007-04-02 Thread codecowboy
Hi, Does anyone know if there are any data generators for MySQL? I am looking for a tool that will create fake data in each of my tables for testing purposes. The tricky part is creating it in such a way that referential integrity is enforced. For instance if one table has a field that is a fo

Re: Problem with multiple INSERTS

2007-02-28 Thread codecowboy
How do you build an array of checkboxes? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to

Re: Problem with multiple INSERTS

2007-02-28 Thread codecowboy
Hi Dan, You might want to use the html helper. I believe that you should be using id="data..." as opposed to name="data..." but the helper will take care of that. I'm assuming that the relationship is a has_many. In which case you should check out the models chapter of the cake manual. See the

migrating from cake 1.1 to 1.2

2007-02-27 Thread codecowboy
Has anyone caught wind of any articles about what it takes to migrate between cake 1.1 and cake 1.2. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@go

Re: habtm does not work with find when I specify fields

2007-02-21 Thread codecowboy
> 1) By defining it in the association directly > class CollegeDepartmentextends AppModel > { > var $name = 'CollegeDepartment'; > var $hasAndBelongsToMany = array('Organization' => > array( > 'fields' => array('user_id','name') >

Re: habtm does not work with find when I specify fields

2007-02-20 Thread codecowboy
Thank you. Can you elaborate a little on that last paragraph? Are you talking about adding code to the CollegeDepartment model? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this gro

habtm does not work with find when I specify fields

2007-02-19 Thread codecowboy
Here is the code : $arrSqlConditions = array('id'=>$departmentId); $arrSqlFields = array('CollegeDepartment.name', 'Organization.user_id', 'Organization.name'); $arrDepartmentOrganizations = $this->Col

Re: About CakePHP Ajax Tutorial

2007-02-15 Thread codecowboy
Let me get this right, after you click on the ajax link, the text shows up but it takes a long time??? Or do you mean that the page is reloading after the text is displayed? I have looked back over that code. I don't see anything that would cause a page reload. I also don't see anyting in my c

Sessions with a multi-server hosting environment

2007-02-07 Thread codecowboy
My company Lifeagora has launched... Finally!!! (applause) We are in the process of setting up a scalable architecture which would of course allow us to use a load balancer to divi up requests between several apache servers. This not my cup of tea, so this may come off as a newbie question. W

Re: Anybody got WysiwygPro editor working with Cake?

2007-01-29 Thread codecowboy
I have not used WYSIWYGpro but I have gotten TinyMCE (http:// tinymce.moxiecode.com/) to work with Cake. There are couple tutorials in the bakery about getting Cake to work with TinyMCE. Out of curiosity, do you know if WYSIWYGpro has any advantages over TinyMCE? --~--~-~--~~

Re: How can I plug Cake

2007-01-28 Thread codecowboy
Thank you very much. Cake now gets props on my site. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group,

Re: Validation before save()

2007-01-28 Thread codecowboy
I'm not sure if I fully understand your problem, but if you are trying to save without validating then call save like this: // Tell the model to save without validating the data $this->Model->save($this->data, false); - This is a snippet from the Cake API about the model funct

Re: Including Views in Other Views

2007-01-28 Thread codecowboy
You can also use a command called requestAction. I have copied a snippet from the CakePhp Manual's Controller chapter (http:// manual.cakephp.org/chapter/controllers). -- * requestAction * string $url * array $extra This function calls a controller's action from any

Re: Multiple templates ?

2007-01-28 Thread codecowboy
I just finished a site that required 4 different templates. Our home page had its own template. We have a wiki section that has its own template. Then we have the default template that every other page uses and of couse we have the Ajax template. Template is interchangelbe with layout. Ea

Re: ER Tools

2007-01-28 Thread codecowboy
sqlYOG is amazing. It is not expensive either. It was a great use of fifty bucks. I have been using it for about six months now and I love it. As far as DB Design tools go, I have done alot of research and it seems that until workbench is stable, you will need to spend money. Every tool t

How can I plug Cake

2007-01-28 Thread codecowboy
I just launched a my new website. I have been trying to find a powered by cake js snippet or similar so that I can give Cake some props on my website but there doesn't seem to be a place to copy paste such a snippet from. Does anyone know if such a thing exists? I obviously could just downl

Re: About CakePHP Ajax Tutorial

2007-01-23 Thread codecowboy
-- controllers -- The following controller contains the action that will render the view in which the ajax call is made. There is no controller logic needed here although for real application there probably would be. Do not forget to include the $helpers array as shown. class AjaxCallersContro

redirect after an ajax call

2007-01-23 Thread codecowboy
Hi, My site allows users to create a new wiki page via an ajax popup box. They choose a title and select a parent for the new wiki page and then click submit. Currently the redirect takes the user to their home wiki page because I have no way of redirecting them to the newly created page. Here i

Re: page objects are showing up in an unexpected order

2007-01-14 Thread codecowboy
Hi all, I fixed the problem it was a typo. I passed the wrong value for autorender into the requestAction parameters!!! Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to thi

page objects are showing up in an unexpected order

2007-01-14 Thread codecowboy
Hi, We have three actions that we request and set in a variable for the view and layout to have access. //make the profile navigation menu available to the layout $divId = 'ajax_user_wiki_page'; $this->set('profile_navigation_menu', $this->requestAction('/wiki_pages/wikiSi

Re: too many associations?

2006-12-14 Thread codecowboy
I am interested in hearing some responses to this as well. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this g

Re: model associations with non-find functions

2006-12-06 Thread codecowboy
Thank you for your reply. One question though. Does $this->Model->recursive = -1 work like $this->Model->unbind(...) in that it only affects the next query? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake P

model associations with non-find functions

2006-12-06 Thread codecowboy
Does anyone know if query functions other than the finds will also grab associated models. Ex. If I use $this->Model->generateList(), do I need to precede it with $this->Model->unbindAll() in order to prevent Cake from grabbing all models associated with Model? See http://othy.wordpress.com/200

sortable trees

2006-10-29 Thread codecowboy
Does anyone know how to use the ajax helper to create a sortable tree? Or is this something that scriptaculous isn't good for? Any help would be great. Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ca

Re: Trying to assemple a cake group in Columbus Ohio

2006-10-16 Thread codecowboy
Does anyone know when that book (CakePHP Recipies) comes out? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this

Trying to assemple a cake group in Columbus Ohio

2006-10-13 Thread codecowboy
. Thank you, Codecowboy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROT

i cannot use callback functions in a controller

2006-09-25 Thread codecowboy
Hi, I am trying to use Pear::Structures_Datagrid and one of its functions makes use of a callback function: class blah extends AppController { . . . function doBlah() { $datagrid->addColumn(new Structures_DataGrid_Column('Job Type', null, null, array('width' => '20%'), null, 'get

Re: Table without Model

2006-09-15 Thread codecowboy
Do you call the generateList function on a model: $this->model->generateList(...)? If so, i have been wasting a lot of time do it another way --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To

Re: Pear (Re: wiki parser)

2006-09-15 Thread codecowboy
Can we get back to the original question please??? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, sen

Re: Pear (Re: wiki parser)

2006-09-14 Thread codecowboy
Anyways!!! lol --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For mo

wiki parser

2006-09-14 Thread codecowboy
meone else has more than likely coded a better one that is more robust. Thank you, codecowboy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@g

Re: Midwest Cake Bakers

2006-09-14 Thread codecowboy
email (i recommend that you do both. I look forward to hearing from you. Thank you, codecowboy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email t

Re: Pagination using multiple models and custom queries

2006-09-08 Thread codecowboy
Thank you. I am looking into that snippet now. Does anyone know whether or not it is easy to integrate the pear datagrid tool into cake? Thank you, codecowboy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: draggable select box options

2006-09-08 Thread codecowboy
Thank you, but I do not see any where on that page or site where they demo dragging an option element out of a select menu. Thanks, Codecowboy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP"

Re: Pagination using multiple models and custom queries

2006-09-08 Thread codecowboy
g for a pagination tool that takes in an array and creates a sortable columns from the array. The reason we need this is so that we can query multiple tables as opposed to being locked into one model. We think that pear data grid will work but we aren't sure how easily we can integrate it i

draggable select box options

2006-09-07 Thread codecowboy
I am trying to create a select box that I can drag elements out of and drop into another select box. Does anyone know how to do this? Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To

Pagination using multiple models and custom queries

2006-09-06 Thread codecowboy
Hi, I'm working on creating an index of a certain models, however I want to be able to take columns from several tables and be able to sort and paginate according to any of those columns. I was wondering if anyone knew the best way to do this. Also, I would like to know if I could create custom qu

Does anyone know how to handle carriage returns from user input

2006-09-05 Thread codecowboy
Hi, I am coding a wiki parser and the header tags are ended when the user hits enter. So the wiki sytax to create a header would be: h1. blah rest of text Currently, I am looking for the \n character but that doesn't work. What should I do? Thank you, Guy --~--~-~--~~--

Multiple Checkboxes

2006-08-27 Thread codecowboy
I am creating a form that has multiple checkboxes. The basic ideas is to allow users to select multiple foods that they like. Each food that they like is stored in the same table but in a different row. The foods are categorized. For instance, once the user checks the fruits checkbox, an ajax

Ajax calls just aren't working

2006-08-24 Thread codecowboy
I have been trying to make a remoteCall using the AjaxHelper::remoteFunction(...). All that the following code does is print the javascript to the browser : new Ajax.Updater('menu','/organizations_list/getSchoolOrganizations', {asynchronous:true, evalScripts:true, requestHeaders:['X-Update', 'me

Is ACL explained in great detail anywhere

2006-08-18 Thread codecowboy
f ACL and how to use it correctly. If not, is there anyone who would consider themselves a good candidate to build such a system (wink wink!!!) Thank you, codecowboy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: can actions return a value without doing anything with a view

2006-08-17 Thread codecowboy
This seems pretty heavy wieght. I wouldn't want the server to go through all of the extra logic of rendering an empty view just to simulate a function returning a value. Is there another way using cake or is cake just not meant for ajax enabled applications? --~--~-~--~~---

Re: can actions return a value without doing anything with a view

2006-08-16 Thread codecowboy
So does that mean that the original view which makes the ajax call has access to variables that the returned view has access to? Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post

can actions return a value without doing anything with a view

2006-08-16 Thread codecowboy
Hi, I want to make an ajax call to to a controller action that simply returns data that is retrieved from the database. I don't want the action to render a view or anything extra ex. pseudo code: 1 var temp 2 ...onclick -> make ajax call 3 store value returned from ajax call in temp 4 print t

Re: Dynamic Navigation Menu

2006-08-16 Thread codecowboy
Second part of my question = 'There is an extra problem, each link in every menu requires arguments (like /user/view/32)'. Our site is going to allow registered users to build profiles. These profiles will be muilt-paged. We are using a navigation menu to take people to different pages inside o

Dynamic Navigation Menu

2006-08-13 Thread codecowboy
Hi, I have been trying to create a system that will dynamically generate the navigation menu on my site. Various pages have different navigation menues. There is an extra problem, each link in every menu requires arguments (like /user/view/32). Is there a graceful way to do this? Thank you

Re: Make AJAX call from onLoad event

2006-08-13 Thread codecowboy
I am trying to figure out something similar. Is there a way to just simply call an action remotely with something like $ajax->remoteCall('controller/action/params/'); I have read the manual many times over and all i can find are ajax functions that return a link. --~--~-~--~~--

Midwest Cake Bakers

2006-08-11 Thread codecowboy
Hi, I am putting together a team in Columbus Ohio to build a website (yes, i have lots more details for anyone interested). I am curious if there are any bakers in the midwest who are looking to join us. Thank you --~--~-~--~~~---~--~~ You received this message

How can i call an action from a different controller from an action

2006-08-02 Thread codecowboy
Hi, Let's say that i want to handle form data which affects several models. I would like to have a controller for each model that stores data only for that model. I then want to be able to mix and match the edit actions from various controllers. An example might be a registration page fooCont

Re: website prototyping

2006-07-22 Thread codecowboy
Thank you that nvu is pretty nice. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAI

website prototyping

2006-07-22 Thread codecowboy
Does anyone know of any open source software for building prototypes (screen shots) of your website. Something that would be useful for describing various UI possibilities. thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

uml for php

2006-07-20 Thread codecowboy
Does anyone know if there are any open source uml (or similar) design software catered toward php? If not, are there any open source uml projects (not geared towards php) that aren't worthless. I tried poseidon but they keep making me reregister the community edition. thank you --~--~

How do I create a login element

2006-07-11 Thread codecowboy
that I am running into is that cake requires the view to be related to an action. I do not know how to tell cake that the login element is the view for the users/login action. Does anyone know how to do this? Thank you, codecowboy --~--~-~--~~~---~--~~ You