Nobody knows how to send a form's data using Jquery and updating a DIV
with a success message or the validation error messages? it was pretty
easy to do with Prototype and cake's Ajax Helper... but I can't manage
to do it with JQuery. I'm using CakePHP 2.2. Thanks
Rohman
--~--~-~--~~-
Thanks for the help it worked! I realize now that the cookbook has
added a lot of documentation since I last downloaded a copy! Is it
possible to download a copy of the most current cookbook for viewing
offline?
--~--~-~--~~~---~--~~
You received this message bec
Does anyone know offhand if the ajax layout alters the Content-Type
header?
On Feb 14, 6:53 pm, "dr. Hannibal Lecter" wrote:
> Use the ajax layout in controller, $this->layout = 'ajax', that should
> do it.
>
> On Feb 14, 4:21 pm, pavan wrote:
>
> > Hi Friends,
>
> > I have problem in renderi
1.2.1.8004
I've just discovered that upgrading has introduced a problem with my
app related to output buffering. I remember, a little while back after
a previous upgrade, that I found a another problem, in my email
component, because of the way buffering is handled in the controller.
I'm posting
On Feb 14, 6:08 am, Sergei wrote:
> First of all, HTTP_REFERER is NOT set by my local Apache, or PHP or
> whatever. It absent. That's why it didn't work.
Have you tried different browsers? I know some browsers (i.e. Firefox)
allow you to not send referrer information to the server.
--~--~---
The CakePHP manual already explains how to change the scaffolding
template for the views, but how can you change the way controller
functions are scaffolded? I would need to change some of the logic
there.
Thanks.
--~--~-~--~~~---~--~~
You received this message be
Create a groups table (Group model) and specify a Member.group_id in
your condition (add group_id to members table, of course).
If that won't cut it, you might want to look into using separate
models as subclasses of Member. Look for InheritableBehavior, which
will allow you to do that.
I recomm
Hi,
I am writing a project in which users belong to different groups and
depending on the group they belong to they can see other members in
their own groups, but not in others. I really have no idea how to
setup my models so that when I do a find('all') I get all the members
that belong to the u
Hi Brian, will give this a try and thanks heaps on the heads up and
alterations.
On Feb 9, 3:15 pm, brian wrote:
> On Sun, Feb 8, 2009 at 10:38 PM, Zolthar wrote:
>
> > Thanks for the explanation - looks like I jumped into waters deeper
> > than I first thought.
>
> > I did the first part, alt
A little more info. When I paginate as above, Cake makes the following queries:
SELECT `User`.`label`, `User`.`slug`, `User`.`id` FROM `users` AS
`User` WHERE 1 = 1 ORDER BY `User`.`sort_label` ASC LIMIT 20
SELECT `Publication`.`title`, `Publication`.`slug`,
`Publication`.`thumbnail`, `Publicati
I'm trying to paginate a on a model, Publication, which belongsTo
User. User hasMany Publication, though not all Users have any
Publications. In PublicationsController, I'd like to paginate a list
of Users and each of their Publications.
User:
public $hasMany = array('Publication');
Publication:
I don't see anything wrong with that, and if it works then great. I
currently do something like this but instead of saving to the session,
I post to another action and redirect with the named params. Perhaps
the session would be easier since it doesn't require so many
redirects.
/**
Wow, looks great!
For CAPTCHAS have also a look on
www.recaptcha.net
I decided to put it on my site. Scans an actual OCR can't read seem to
be pretty safe to me.
Regards,
H.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Like many others I needed paginate with a search form. Instead of
using get and passing the url parameters around I used post for search
form. I know that takes away the user bookmark ability, but oh well.
This solution involves storing $this->data into the session when the
form is submitted and
$this->autoLayout = false;
(in controller)
--~--~-~--~~~---~--~~
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
Use the ajax layout in controller, $this->layout = 'ajax', that should
do it.
On Feb 14, 4:21 pm, pavan wrote:
> Hi Friends,
>
> I have problem in rendering a view bascially which belongs to
> different controller without layout.This is my following code
>
> pages/index.ctp:
>
> element('note');
Hi Friends,
I have problem in rendering a view bascially which belongs to
different controller without layout.This is my following code
pages/index.ctp:
element('note'); ?>
render('/learning/index',null,null); ?>
i am using cakephp1.2
Please help me to fix this problem.
--~--~-~--~
If I would to avoid this thing without change always the name of file
how can I do it?
On Feb 14, 5:38 pm, fain182 wrote:
> > Hi
> > I have a page where the user can upload its photo.
> > I save the photo always in the same location.
> > In FF when I reload the page after the save operation I se
> Hi
> I have a page where the user can upload its photo.
> I save the photo always in the same location.
> In FF when I reload the page after the save operation I see the right
> photo.
> In IE instead i see always the old photo.
> I try to use disableCache() function but I can't to resolve the
>
Thanks for the advices
--~--~-~--~~~---~--~~
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
cake-php+unsubscr..
I don't tend to cache data by itself, as like you've said it generally
won't save you much time vs mysql alone. I do use view caching on busy
sites for static content and also for elements, as it can give a
noticeable improvement.
I guess it really depends on your traffic and the type of site
Hi
I have a page where the user can upload its photo.
I save the photo always in the same location.
In FF when I reload the page after the save operation I see the right
photo.
In IE instead i see always the old photo.
I try to use disableCache() function but I can't to resolve the
problem.
Can so
With the HTML helper it is easy to set a CSS class for a :
tableCells(
'one',
array('two',array('class'=>'myCssClass'),
'three'
);?>
As I understand the documentation, it is only possible to set a CSS
class for and for all the 's:
tableHeaders(
array('Date','Title','Active'),
array('cl
Hi all,
I am investigating the use of data caching at the moment and was
digging around this google group. I found some very interesting posts
on how to optimize cake but no satisfactory answer to "when should I
actually use a file cache for my data".
I took over a website which uses data cachin
Ok I solved the problem:
First of all, HTTP_REFERER is NOT set by my local Apache, or PHP or
whatever. It absent. That's why it didn't work.
What I did:
added in app_controller's beforeFilter:
...
$this->Session->write('Auth.redirect',$this->params['url']['url']);
...
so after this
$this->re
Or even like this:
$this->paginate = array(
'sort' => array('date' > 'desc')
);
$this->set('data', $this->paginate());
Hope this helps,
Faifas
On Sat, Feb 14, 2009 at 03:47, brian wrote:
>
> like this?
>
> var $paginate = array(
> 'sort' => array(
> 'date' => 'DESC',
> 'hours' =>
Hello Paris,
if you would like to make all users go to www. instead of your domain only,
you should change some settings in your apache config.
First, modify your vhost file (if possible):
AllowOverride all
Then all you have to do is edit your .htaccess file which should be in
/path_t
Hi. I am trying to bake views for my cakePHP app, and I get the
following error:
Fatal error: Class 'UsersController' not found in c:\wamp\www\myApp
\cake\console\libs\tasks\view.php on line 250
There really is a Users Controller. I promise. :-) Here is the output
from when I hit "cake bake" o
I surprised that find call fetches any data as you have your contain
criteria mixed in with your conditions array.
It should be something like:
$this->User->find('all', array(
'conditions' => array('User.id' => $user_id),
'contain' => array(
'Event' => array(
'Eventtype' => array(
You see, I looked at the Auth component code and it handles
HTTP_REFERRER and saves it in session Auth.redirect. But it doens't
redirect there :-( Don't know why.
Maybe hardcore CakePHP developers know what's wrong with it?
On 14 фев, 16:47, Miles J wrote:
> Are you trying to make it go to the
Are you trying to make it go to the referrer? You would have to grab
the referrer yourself and set it to loginRedirect.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send emai
I'm trying to implement auto login by cookie in Cake 1.2 with Auth
component. It works but this:
$this->redirect($this->Auth->redirect());
*always redirects to index /*, not the page which user requested (for
example /profile/).
I have Auth->loginRedirect disabled and Auth->autoRedirect set to
32 matches
Mail list logo