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
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
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-
> $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
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
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
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
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
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
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
--~--~-~--~~--
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
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
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
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
> 1) By defining it in the association directly
> class CollegeDepartmentextends AppModel
> {
> var $name = 'CollegeDepartment';
> var $hasAndBelongsToMany = array('Organization' =>
> array(
> 'fields' => array('user_id','name')
>
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
Here is the code :
$arrSqlConditions = array('id'=>$departmentId);
$arrSqlFields = array('CollegeDepartment.name',
'Organization.user_id',
'Organization.name');
$arrDepartmentOrganizations =
$this->Col
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
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
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?
--~--~-~--~~
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,
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
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
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
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
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
-- 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
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
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
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
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
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
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
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
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
.
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
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
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
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
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
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
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
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
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"
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
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
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
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
--~--~-~--~~--
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
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
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
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?
--~--~-~--~~---
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
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
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
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
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.
--~--~-~--~~--
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
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
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
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
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
--~--~
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
63 matches
Mail list logo