I see your point, its a good one, I'm going to copy the pdf to my
smartphone now for light reading.
Just gotta delete some Discworld books to make space.;)
On Apr 6, 11:23 pm, Mike Cook wrote:
> psykro, no offence taken :)
>
> The reason I made mine in EPUB was because that works nicely on m
George if Dardo doesnt get back to you let me know and I can forward
the script to you, I just hope he's ok with me forwarding his work to
others.
On Apr 6, 5:04 pm, George Hickman wrote:
> Dardo,
>
> I'd be interested in that script too, if you could send me a copy that
> would be a great help
Hello!
I've noticed, that by default, Auth loads and saves to Session every
field from the users model, except the field designated as the one with
password.
In my case, the user model contains fields which I don't want to be
stored in session.
I've read the AuthComponent API, but so far it i
thank you so much
On Apr 6, 9:35 pm, jsundquist wrote:
> Here is a good place to start.
>
> http://www.ntatd.org/mark/?p=29
>
> Then read this tutorial as well
>
> http://www.ntatd.org/mark/?p=32
>
> On Apr 6, 11:28 am, loguKK wrote:
>
> > Is there simple grid paginate with search and sort exam
Hello Everyone,
Is there an easy way to route all 'missing view' error messages
through a defined method in the app_controller (or any controller
for that matter)?
Also, is the same possible for 'missing controller' errors?
My site's header and footer are database driven so I need to access
the
Hello,
I 've open sourced my forum written in CakePHP 1.1 two years ago:
http://code.google.com/p/expertforum/
So if you need to integrate some forum into your CakePHP application,
or just need some forum code, this project is for you.
Sergei.
--~--~-~--~~~---~--~-
I have a model, Volume, for which I want to limit access from Group,
using record-level ACL. Volume is also stored using MPTT
(TreeBehavior). So far, I've been able to create the entries in aros,
acos, & aros_acos.
Now, what I need to do is figure out a way to display the Volume tree
(easy) but,
How can I direct a visitor to a specific page.
What I have is:
posts/index (public)
posts/view/ (registered logged in members only)
I need to direct non-logged in visitors who try to view a post to be
directed to a page other than the $this->Auth->loginAction
In the posts_controller the only
Fixed, I removed all formatting IE tables, and it worked. No idea why!
--~--~-~--~~~---~--~~
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 fro
Im a bit confused on how to get this installed and working. And I did
not find any information in the guide.
I understand that we place scripts like cssminify in vendors, but what
do we do after that.
--~--~-~--~~~---~--~~
You received this message because you are
Update.
create('vote',array('onSubmit'=>'return false'));
echo $form->input('vote.poll_id', array('type' => 'hidden', 'value' =>
"mook"));
echo $ajax->submit('Vote!', array('url'=>'/polls/vote/',
'update'=>'test'));
?>
Changed to using the code, and nothing changed. However have noticed
the code
@Dr. Loboto
> Your problem is unclear. What is "sessions mixed up"?
For every person who logs in, there are some session variables stored
in an object built-in in PHP called Session. So one customer somehow
gets allocated the session variables of some other person.
> If someone see information o
i think that the answer is at the end of this page:
http://book.cakephp.org/view/249/Custom-Query-Pagination
On 1 أبريل, 22:58, depi wrote:
> BUMP.
>
> I'm wondering too.
> It is pity that DISTINCT not applies to COUNT as well.
> I'm trying to solve this issue as well. However if I replace the
>
Hey All,
This is my first attempt with an $ajax->form, and I am calling it from
within an element. Anyway, when I use this code:
create('vote', array('url' => '/polls/vote', 'action' =>
'add'));
echo $form->input('sometestvalue', array('type' => 'hidden', 'value'
=> "test"));
echo $form->end('Vo
Page is also attached to a bunch of other things. I want to grab a
page and everything else.
On Apr 5, 11:39 pm, mscdex wrote:
> Why not also have PageSnippet belongs to Page? That way you can then
> just do a find on PageSnippet instead and get the associated Pages.
--~--~-~--~~
bump?
On Apr 1, 9:00 am, Matt wrote:
> I have a really weird issue here... I have a supplier update
> controller action that checks whether or not the user has update
> permission, if not, it displays an error message, and redirects to the
> controller index page. Here's the code:
>
> $aroAlias =
Set the session security to medium, if its on high it doesnt work.
--~--~-~--~~~---~--~~
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 th
Try this:
http://noserub.com
Cheers,
Graham
jwerd wrote:
> I am building a Cake-PHP based project but I feel instead of
> reinventing the wheel, I'd like to just integrate an existing open
> source social networking solution that is Cake-PHP friendly.
>
> What I mean by friendly is: You have
psykro, no offence taken :)
The reason I made mine in EPUB was because that works nicely on my
Sony Reader. It isn't meant as a "reference" manual, but something I
just browse through while on the train to work -- yeah I know, while
most people are reading Terry Pratchett or something of the like
I checked, it seems that the Session breaks, what do I have to do so
it won't?
thx
Aurelius
On 5 Apr., 02:46, Miles J wrote:
> Heres an example of my js and action. Btw im using jquery.
>
> // Js
> function deleteAvatar(user_id) {
> $.ajax({
> type: "POST",
>
Perhaps one way to do it. Take a look at:
http://api.cakephp.org/class/auth-component#method-AuthComponentisAuthorized
Property: authorize
Method: isAuthorized
Regards,
Alfredo
On Mon, Apr 6, 2009 at 3:36 PM, Mauricio Tellez
wrote:
> Hi, I'm building a cake app that need to authentify agai
never mind. I got it
On Apr 6, 3:07 pm, greg2000 wrote:
> I just downloaded the source for the Bakery in order to work with
> CakeBook (fromhttp://thechaw.com/bakery) and I am confused. It seems
> like it is pretty much an empty shell of a cake app. Am I missing
> something?
--~--~-~--~
Hi, I'm building a cake app that need to authentify agains a legacy
database. That database has a user table with users login and password data,
but the password is encrypted with MySQL's aes_encrypt. Looking at cake Auth
mechanism there is no way I can auth against this table, so I'm wondering if
I just downloaded the source for the Bakery in order to work with
CakeBook (from http://thechaw.com/bakery) and I am confused. It seems
like it is pretty much an empty shell of a cake app. Am I missing
something?
--~--~-~--~~~---~--~~
You received this message beca
I am building a Cake-PHP based project but I feel instead of
reinventing the wheel, I'd like to just integrate an existing open
source social networking solution that is Cake-PHP friendly.
What I mean by friendly is: You have integrated it in your projects
and it works wonderfully.
Please let m
Forgot to mention i need to display Items with list of buckets they
belong to.
--~--~-~--~~~---~--~~
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 unsubs
Thanks for the suggestion. I see what you mean. It might allow me to
correctly save NULL data, but I think I'm still gonna need a way to
correctly retrieve the NULLs from the database too. Also, I'm
concerned that I'd then have to set the fieldlist manually every time
I call save(), which sound
Problem seems pretty easy from business point of view.
Situation:
I ve got 2 Models:
Item , Bucket
These models are related with buckets_items table (HABTM).
Now i want to display all Items from certain bucket or set of buckets.
conditions for bucket look like this:
$condition=array("Bucket.prope
Thanks for posting this. I'm currently trying to work out how to do
this. I took a look at your behavior and think it'd work for me.
About the point you mentioned with Tree-based models: I'd think that
if a User needed to be granted access to some row which had a parent
that the User had been den
Duh. Thanks Brian.
-mike
On Apr 6, 8:41 am, brian wrote:
> It doesn't return anything because it's been deleted. Your model's ID
> may still be set but it no longer points to a row in the DB. So
> field() comes back empty.
>
> For your purposes, use beforeDelete(). The afterDelete() callback
>
Here is a good place to start.
http://www.ntatd.org/mark/?p=29
Then read this tutorial as well
http://www.ntatd.org/mark/?p=32
On Apr 6, 11:28 am, loguKK wrote:
> Is there simple grid paginate with search and sort examples using
> CakePHP 1.2
--~--~-~--~~~---~--~--
Is there simple grid paginate with search and sort examples using
CakePHP 1.2
--~--~-~--~~~---~--~~
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 unsubscr
Hi Everyone,
My husband & I have been trying to determine this problem for a long time
now, hoping someone can shed some insight. We have chained selects on one
form, you choose data from the first select box, and with an observeField we
are watching with AJAX and then triggering a change to the
What are you using to call the elements? I you can all any element
from any page just by doing
element('(folder)/(file)');?>
On Apr 6, 9:59 am, "gaurav.v.sharma"
wrote:
> I created a simple element for displaying the topics list. This
> element is working fine under the urlhttp://localhost/weba
You should be able just do a $this->Moviegenre->save($this->data)
The save function will loop through your array and save all the data
into the correct fields along with the value set by your check box.
On Apr 6, 4:10 am, Ranju wrote:
> hello i want to insert multiple chekbox values...
>
> Vi
I'm not sure this will work (or if it's the best way) but have a lok
at the 3rd param for Model::save, $fieldList. I suppose you could
create an array from the return of schema() (using just the main keys,
I mean) and unset those fields that were not answered by the user and
pass that to save().
It doesn't return anything because it's been deleted. Your model's ID
may still be set but it no longer points to a row in the DB. So
field() comes back empty.
For your purposes, use beforeDelete(). The afterDelete() callback
would be better used (AFAIK) where you need to, say, remove images or
o
I'm having a really weird problem that just started appearing for
me.
For some reason when I submit a form, the returned page is compltly
blank. No debugging errors or anything. After I try to submit a form,
the rest of the site will display blank pages. (If I use the URL to
move around).
I
By "not working" do you mean that the request is not made? I suspect
it's a javascript event binding issue. Are you updating the page?
Specifically, the "add comment" button/form?
I can't go into details of how to deal with this, though, as I use
jQuery and so never use Cake's ajax helper stuff.
On Mon, Apr 6, 2009 at 12:28 AM, catfish wrote:
>
> new member here.
>
> I am playing with cake now. One problem that bothers me is the search
> function. The search function will process post data, when in
> pagination, the paginator does not pass the search src.
>
> For example, I would like:
>
Thanks Brian. And thanks about the error code.
Am fairly new to CakePHP. Have played with it for a little while, but
am working on my first commercial project with it now.
T
On Apr 6, 4:07 pm, brian wrote:
> On Mon, Apr 6, 2009 at 10:53 AM, Toby wrote:
>
> > Thanks for this. And thanks Bri
Are all of the Pictures in a particular Gallery associated with a
specific Product? If so, you might want to consider associating
Gallery to Product instead of Picture to Product.
It would probably help if you posted the model associations you have now.
On Mon, Apr 6, 2009 at 8:29 AM, nahom wro
The problem is mostly about correlation between Table
I'm trying to make a relation between 3 tables:
my first table is The Product and he has many Pictures
and each picture is taken from a Gallery
now the relation works fine the thing is how can i call My Gallery in
Product controller
I tried us
I created a simple element for displaying the topics list. This
element is working fine under the url
http://localhost/webapp/topics
but it is not working in the home page. http://localhost/webapp
I mean the element contents are not displayed on the home page as they
are displayed on the topics p
Dardo,
I'd be interested in that script too, if you could send me a copy that
would be a great help
Cheers
George
On Apr 5, 9:24 pm, Dardo Sordi Bogado wrote:
> > Dardo, if I could ask you to either send me the source or publish it,
> > as it looks like a nice script to have for creating a pdf
Hi Everyone,
I'm excited to be embarking on my first project using CakePHP, but
unfortunately after only 1 afternoon, I seem to have hit a real
problem.
I have several boolean fields in my postgres table which can also take
a null value. This is because I want to make a distinction between a
us
I have the following callback in my model:
public function afterDelete() {
Cache::delete('client_' . $this->field('name'));
}
Although $this->id is set, the field function (or any similar
function, such as read(), find(), etc.) doesn't return any data. I've
had to resort to beforeDelete
On Mon, Apr 6, 2009 at 10:53 AM, Toby wrote:
>
> Thanks for this. And thanks Brian for the comment. Is it not better
> to redirect the user though, so that they see that the action doesn't
> exist (and any search engines can too)?
Yes, absolutely. I misunderstood what you wanted to do. In this
Good to know other people are working on this.
My implmentation presented in last cakefest (Buenos Aires 2008) well
described by Mark Story here:
http://cakedc.com/developer/mark_story/2008/12/04/martin-radosta-record-level-security-based-on-sql
The ppt or odp slides I've prepared for the cakefe
Thanks for this. And thanks Brian for the comment. Is it not better
to redirect the user though, so that they see that the action doesn't
exist (and any search engines can too)?
T
On Apr 6, 12:08 am, Miles J wrote:
> Besides using the index action, there is no such feature. You could
> howeve
This looks like a job for model associations.
http://book.cakephp.org/view/78/Associations-Linking-Models-Together
Basically set Parent to have many Entity (Or what every relationship
is the correct one for your case)
On Apr 6, 4:07 pm, Manisha wrote:
> Hello All,
>
> Here is the Controller
>
Hi
I have a web application where I would use session.security at higt
level but it uses ajax call.
Is it possible to have both things working togheter?
Marco
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP"
Unfortunately that did not work for me. I ended up using the check()
method in my app_controller to determine access:
var $userId = null;
function beforeFilter()
{
if (null != ($this->userId = $this->Auth->user('id')))
{
On Apr 5, 10:46 pm, Miles J wrote:
> If the file name is titles.po it would be __d('titles', 'key');
Ah. I had tried using __d(), but didn't properly understand the
relationship between the domain and the name of the po file. The
difference, as they say, makes all the difference. Now that I
Hello All,
Here is the Controller
class userController extends AppController {
var $name='User';
}//This is controller having model User
and I have to make a join query between two models 1)parent 2)entitie
for example:
select * from tbl_parents a, tbl_entities b where a.parent_id =
b.en
since i've seen it talked about in the groups many, many, MANY times:
http://jmcneese.wordpress.com/2009/04/05/row-level-model-access-control-for-cakephp/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" gro
Hi,
I would like to set the default parameter for URL in paginator so that it
will pass the URL parameter. For example,
I want to user paginator->numbers(array('url'=>$paginator->params['pass']))
I want to make it default to pass URL params. Further more, I would like to
make it default for all
Important tutorial on ACL :
http://brolly.ca/blog/web-development/cakephp-acl-tutorial/
--~--~-~--~~~---~--~~
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
i have solved this issue like this
if($this->Auth->user('group_id')== 5){
$this->redirect(array('controller'=>'admin/categories',
'action'=>'add'));
}
else if($this->Auth->user('group_id')== 6){
$this->redirect(array('controller'=>'Pages', 'action'=>'display'));
}
but it more looks like a hack as
hi
how can i check for group id and redirect after login to admin site
and if it was a member then public member area.
I have same login section for both Admin and members.
I am trying to do something like this.
if($this->Auth->user('group_id')== 5){
$this->Auth->loginRedirect = array('c
Hi!
Is it possible to restrict the languages from which the
TranslationBehaviour chooses?
Is it possible to set a default language if non of the available one
matches?
thx
Aurelius
PS: Can you recommend anything whichs gets further with
translationBehaviour than the Cookbook?
Are there any Plug
I did try using the cache, but because I may be calling the same
element a few times but with different inputs it won't work (It just
redisplays the first item for that element).
On Apr 6, 1:23 pm, majna wrote:
> Use elements cache
> :)http://bakery.cakephp.org/articles/view/creating-reusable-e
Use elements cache :)
http://bakery.cakephp.org/articles/view/creating-reusable-elements-with-requestaction
On Apr 6, 12:06 pm, Walther wrote:
> I believe I've found a solution.
>
> For each possible item that can be added to the homepage I store the
> name of the controller that is called. By s
In your controllers do you have something like:
function beforeFilter()
{
parent::beforeFilter();
$this->Auth->allowedActions = array('register', 'index');// allow
public access to these only
$this->Auth->autoRedirect = true;
}
Dave
Hey Guys,
i have an little problem!
I wanna add in my sql-db 'ftopics' the values 'name' & 'forum_id'.
The forum_id is an parameter in the URL like : 'cakeboard/topics/add/
5'. Than I wanna add an topic in forum with id 5...
Of Cource I want add a content and a subject to the topic.. In my view
Hey guys,
I've been trying to solve an issue with ACL for two days now, but I
just can't find any answers.
Basically I'm trying to set up an application to work with Auth and
Acl. I followed the tutorials in the Cookbook - I created the database
tables, all of the ACOs and AROs are created. Then
I just encountered a quite annoying thing that took me a while (alot
longer than it should have) to figure out.
I took a working project and renamed it to "wapp" and suddently the
html_helper did not work. The solution is obvious now that I found out
but darn I have almost screamed out when I cou
new member here.
I am playing with cake now. One problem that bothers me is the search
function. The search function will process post data, when in
pagination, the paginator does not pass the search src.
For example, I would like:
site.com/search/search-string/page:1
In stead, the paginator w
ARO - access request object
ACO - access control object.
On Apr 5, 1:56 pm, bearlee wrote:
> It a novice quesiton, but these acronyms bother me if I don't know
> what they mean (my pet-peeves).
>
> What do ARO and ACO stand for?
>
> -Brian
--~--~-~--~~~---~--~~
Y
I believe I've found a solution.
For each possible item that can be added to the homepage I store the
name of the controller that is called. By simply changing this to the
model name and using App::Import in the homepage model (Where I fetch
the items from the database) I have gotten rid of the r
Hi All,
I have a form in which I have add and delete operations for comments
section. I am implementing them using Ajax.
My first Ajax operation (i.e. either add/ delete) is working fine.
when i go for my second Ajax operation it is not working.
For Ex:
step 1: Adding a new comme
i have done a couple projects that are extjs front-ends backed by
cake. what exactly are you trying to do?
On Apr 3, 10:35 pm, baur79 wrote:
> Hi everyone,
>
> is there any of you have experience to implement this libraries into
> your Cakephp projects.
> we want to implement advanced feather o
Hello, sorry for my english, I'm french.
I have a god damn problem with sessions of cakephp : they don't work !
When I flash to another controller/action, everything is lost. I went
into the core.php file and lowered everything possible and tried all
the session handlers :
Configure::write('Ses
I've read here that hasMany doesn't work with automagic forms
automatically. So how to map, for example, checkboxes in the view file
to each group_id of users of the data array in my case?
Thanks, Ivan
On Apr 2, 5:19 pm, Givano wrote:
> Hi All!
>
> I hope you can help me, I've tried everything
Hey guys,
I hope someone can give me some hints; this problem has had me stumped
for quite some while now. I'm sort of new to CakePHP. I'm trying to
set up my own application using ACL. I've read all of the tutorials at
the Cookbook, and I'm pretty sure I followed them correctly. I have my
databa
Your problem is unclear. What is "sessions mixed up"? If someone see
information of other customer maybe it is just currently logged
person?
On Apr 6, 3:42 pm, SeeVik wrote:
> I found out that this problem is occuring only for users in Kenya. I
> found one more case of such a website with users
Hello all,
just happily finished setup of group-based ACL in my app, thanks to
brilliant tutorial on Cake site.
Nevertheless, despite looking around I haven't found any way (known to a
noob like me) to use a function similiar to $this->Acl->check() in View,
for, say, hiding certain sections o
hello i want to insert multiple chekbox values...
View File
input('Moviegenre.genreid[]',array('label'=>false,
'type'=>'checkbox','multiple'=>true,'value'=>$genre['Genre']['id'])); ?
>
Controllercode
$genreid= $this->data['Moviegenre']['genreid'];
foreach($genreid
Hi all
In an app that I am currently developing I wish to give the
administrator the ability to customise the home page of the app by
being able to include various other things into the home page (For
example, the admin may wish to show a welcome message which uses the
pages controller, and they
I found out that this problem is occuring only for users in Kenya. I
found one more case of such a website with users in Kenya who are
getting sessions mixed up.
Does anybody have any idea about this strange problem?
On Apr 6, 1:21 pm, SeeVik wrote:
> Regarding this problem, can anybody tell me
80 matches
Mail list logo