Oops! I finally got it.
In my view, the key to use $ajax-submit function is to understand
what's the '/controller/function'.
In my project, I use $ajax-link to update a edit function without
refreshing. And i use $ajax-submit to update a form information.
There is a checkling list for this:
For another page I can do the ajax-form, it works fine.
And also I try to find the answer also.
3 params instend of 2 ?
What do u mean ?
Like u post $title= 'Submit', $options=array()) ?
Sorry.
I am rookie.
Ismael S. Kafeltz wrote:
Did you try to figure out before open this topic?
look
You can use two views, but that's not what I wrote the feature for.
Also, in order to have Ajax requests properly handled, you need to add
the following to your controller:
var $components = array('RequestHandler');
--~--~-~--~~~---~--~~
You received this
Thank you! I got it. The principle is to embedding the videos into
flash and put the flash into the page?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
This probably comes under the 'newbie' category but i can't work out why this is happening and i have searched the groups...
I have two models - Users and Subscriptions - each with HABTM relationships with each other...
I want to collect all the Subscriptions for a particular User
this is my
Having run a mailing list that ran into just such growing pains, I can
suggest splitting up this group into two groups. One group will be for
New Cake Users, aka newbies, and the other one will be for
intermediate to advanced users.
After the split, I suggest that the hyper-experts not answer
This shouldn't be something like this:
$data = $this-Subscription-find(user_id = $id AND subscription_id =
blablabla);
if HABTM is corrected built, it will return all subscription from userid
--~--~-~--~~~---~--~~
You received this message because you are
SQL Error in model Subscription: 1054: Unknown column 'user_id' in 'where
clause'
i'm sure this is built correctly - but i'm not getting the results so maybe it isn't
subscription model
class Subscription extends AppModel
{
var $name = 'Subscription';
var $hasAndBelongsToMany =
I'm just triyng to get the basic auth working. While in the login()
function I can read my session data fine be using
$this-Session-read('User').
However once I redirect to another function, index(), calling
$this-Session-read('User') nothing. Similarly in my view:
index.ththml if I use
Ok so I hopped on the IRC and got some more information with
pr(session_id());
showed that i'm not getting the same session id accross requests. It
looks like it could have something to do with the way php is set up. i
was recommended to edit the enable-trans-id in my php.ini file. I
don't
hi Mikee,
read this post...this might give you some ideas
http://groups.google.com/group/cake-php/browse_thread/thread/c33b78642ee9d395/#
Cheers
bingo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP
hey bingo,
had a look at it and it was useful in a way. however it seems the
multi step was more in processing the data rather than any kind of
display to the user. i've got a handle on how i am searching for the
data and it is using the very handy findAll method with some creative
use of
morning mate,
you could always employ the advanced validation technique outlined in
the bakery to check for min and max length.
http://bakery.cakephp.org/articles/view/55
i use this method to check for:
- min length
- max length
- email
- uniqeness
- field confirm
- and a few others
best
Ok so session management wasn't working at all before as I tested it
with using regular php session management code. The problem was in my
php.ini conf file. I changed the line to this:
output_buffering = Off
and regular php session management started working. the session ids
were the same
Hi everyone!
I'm having some troubles in development with CakePHP. I've created a
menu controller, view and model. When I set DEBUG 0 in
app/config/core.php I can access all my actions in menu controller
without problems, but when I set DEUBG 0 I always get a 404 not found
page:
---
Not found
15 matches
Mail list logo