Finally!Finally
sortable('sections',array('onUpdate' => " function(t){new
Ajax.Request( 'http://localhost/cake/sections/order',
{method:'post',
postBody:Sortable.serialize('sections'), asynchronous:true})}"))?>
MUST change the new
Ajax.Request('http://localhost/cake/sections/order',.
It doesn't work...
When I try to open http://localhost/cake/sections/order
Notice: Undefined index: form in D:\Program
Files\xampp\htdocs\cake\app\controllers\sections_controller.php on line
12
"purepear 写道:
"
> Check this :
> http://groups.google.com/group/cake-php/browse_thread/thread/e921
When I try to type like http://localhost/cake/sections/order
Notice: Undefined index: form in D:\Program
Files\xampp\htdocs\cake\app\controllers\sections_controller.php on line
12
Still donesn't work...
Always the same order...
Why...
I do the exactly the same.
Form the database to view file.
Thanks for your patient!
BUT i am confused where should I put the submit_sort?
Creat a new js file? or PUT them in the index.thtml?
I was created a new function in my controlloer called submit_sort( ),
and paste your code. It was wrongl
THanks.
Asking so silly question.
f. wrote:
> Hi,
>
> > Sh
>Where "order" is an action in your controller where you can do
> something like:
>
> if (isset($_POST['items']))
> {
> $sortableitems = $_POST['items'];
>
> $i = 0;
> foreach ($sortableitems as $item)
> {
> $this->Use
Still not very clear. Add a new field called sorted in the Menu table ?
right?
--~--~-~--~~~---~--~~
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 uns
Quite Strange...!!
It doesn't work
This is the first list
sortable ("firstlist",array()) ?
Last day was OK !!!
BUT now
Error: Sortable is not defined
Source File: http://localhost/ck/topics
Line: 131
Why It Happen ???
I do nothing about this page
Someone occur it before?
I got it! Answer by myself
1. config the routes.php
add $Route->connect('/*/add/*', array('controller' => 'users',
'action'=> 'add'));
2. add new function in the users_controller.php
function add($username)
{
$user = $this->User->findByUsername($username);
$this->set('user
Hi,
I know how to do like localhost/eric.
But How Can I make fuction add( ) works for localhost/eric/add.
Cause I should pass the param to the add function, i think
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Hi, kind bakers,
I am reading the http://wiki.cakephp.org/tutorials:ajax_sortable_list,
about how to make a $ajax->sortable list.
I am do the Create the List of Items and make it works.
BUT for the following
Create the Form: The form contains a hidden text area that is filled
with the data that t
Hi, kind bakers,
I am reading the http://wiki.cakephp.org/tutorials:ajax_sortable_list,
about how to make a $ajax->sortable list.
I am do the Create the List of Items and make it works.
BUT for the following
Create the Form: The form contains a hidden text area that is filled
with the data that t
I look at the wiki.cakephp.org, and there is a tutorial about the
$ajax->sortable.
Now, I can use it to drag and sort the items,like the code I paste
below.
This is the first list
sortable ("firstlist",array()) ?>
It works!
I can get data for ['Topic']['created']. BUT I am quite confuse
I set it in my App_controller.php already
Don't know why
--~--~-~--~~~---~--~~
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 thi
Hi, everybakers,
1. I upload the prototype.js and scriptaculous.js into my
/app/webroot/js/ folder.
2. And I edit my layout(default.thmtl)
charsetTag('UTF-8') ?>
link('prototype') ?>
link('scriptaculous.js?load=effects') ?>
3. I
This is the first list
Item 1 from
firstlist.
Item 2 fr
I got it!
Thanks...
Cause the sequence of the route.php. I should put the following in
the last line.
$Route->connect('/*', array('controller' => 'users', 'action'=>
'view'));
Loving Cake!!
--~--~-~--~~~---~--~~
You received this message because you are su
I got error message like :
Warning: Missing argument 1 for UsersController::view() in D:\Program
Files\xampp\htdocs\ck\app\controllers\users_controller.php on line 65
Notice: Undefined variable: username in D:\Program
Files\xampp\htdocs\ck\app\controllers\users_controller.php on line 67
The cod
Hi, everybakers
I am quite new to use CAKE.
As the title mentioned, I want to make a blog like the rdBloggery. I
download the code for rd.
It do the way like www.example.com/posts/by/usersname. When You type
like, www.example.com/eric. It will show a default page for eric. Like
normal blog
Is there someone tried it before?
So,any advice to do it ?
Appreciate any relpy!
--~--~-~--~~~---~--~~
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
I try the SimplePie. But there is an error like
Fatal error: Cannot use object of type SimplePie_Item as array in
D:\Program Files\xampp\htdocs\cake\app\views\feed\index.thtml on line 9
Don't why.
Thanks..
Loving Cake!
--~--~-~--~~~---~--~~
You received
Can baker help me ?
I saw the API for Cake 1.2. It contains helper for RSS and XML.
Is it the solution for this?
Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, s
I think the problems is the Mysql not Cake.
Cause I faced it.
Try to set your MySQL charset: UTF-8 Unicode (utf8)
and MySQL connection collation utf-8_unicode_ci.
Jerry wrote:
> Hello Bakers:
>
> I found something interesting in CakePHP. It's about utf8.
>
> Some bakers suggest below approach
I don't think it is that simple just watch the manual
It define findAll() in the Rss.php like function findAll($feedUrl,
$limit = 10, $cacheExpires = null).
So, How Can I do it ?
Chris Hartjes wrote:
> On 11/1/06, Eric <[EMAIL PROTECTED]> wrote:
> >
> > AND, Ho
It's possible that year is a reserved word. Have you tried simply renaming that database field, maybe to event_year? Give it a shot!
HTH,
Eric
On 11/1/06, Jerry <[EMAIL PROTECTED]> wrote:
Hi Bakers:When I try to bake my app (scaffold is on) with a field type "year"(also nam
developers of othAuth will release a version that either works with the current Cake release, or (in the case that we're doing something wrong) is easier to install and get running.
HTH,
Eric
On 11/1/06, funksplutter <[EMAIL PROTECTED]> wrote:
Hi All,I've come across a strange p
http://wiki.cakephp.org/tutorials:blog_tutorial_-_2
Adding an RSS feed using FeedCreator
I follow the steps.
There is an error message:
Fatal error: Call to undefined method
UniversalFeedCreator::outputFeed() in D:\Program
Files\xampp\htdocs\cake\app\views\posts\rss.thtml on line 31
Why call t
AND, How Can I use Mysql to store the URL? ;
To creat a new normal model or modify the exist model related to
webmodel?
A table contains id(pk), title, url.
Modify the feeds_controller to
function index()
{
$this->set('feeds',$this->Rss->findAll());
}
But How to do the view fiel
First of all, thank Daniel Hofstetter and Tim!
I find the way to enable cURL for xampp.
AND, When I try to add http://feeds.feedburner.com/TechCrunch
It works fine.
BUT, How Can I make my page to show the image include in the rss?
BTW, I try the SimplePie. But there is an error like
Fatal e
Thank God! My xampp is great. Very easy to enable cURL.
http://www.menyhart.net/blog/developer-stuff/enabling-curl-on-xampp/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, s
When I add this to pass the items to $feed.
There is an error mentioned
Fatal error: Cannot use object of type SimplePie_Item as array in
D:\Program Files\xampp\htdocs\cake\app\views\feed\index.thtml on line 6
Can't use object of type SimplePie_item?
--~--~-~--~~
. Likewise, if you run http://localhost/notes/edit/, that will run the notes controller, method edit, and display
edit.thtml from /app/views/notes/.
Get it?
HTH,
Eric
On 10/31/06, Adrian Godong <[EMAIL PROTECTED]> wrote:
More information about the error?
From:
cake-php@
Hi everyone,
I am try to set a RSS parser for my project. And I follow the steps as
follow.
http://www.thinkingphp.org/2006/06/14/cakephp-rss-20-feed-parser-model/
BUT I got an fatal error like this "Fatal error: Call to undefined
function curl_init() in D:\Program
Files\xampp\htdocs\cake\app\we
I put the code below between head. It works!
For the function doAjaxCall( ), I really don't know where should I put.
So, I just combine the two parts together. Now, I know the logic to do
it.
Thanks.Tim
Have a good Day!!
event('window','load',$ajax->remoteFunction(array("url"=>"/posts/index/",
Thanks.
I am getting clear about 'S 'and 'A'.
I think I should add a event-onload to the body tag, to do it when the
page is loading and let the divs to load Asynchronous.
I chech the remoteFunction:
Creates JavaScript function for remote AJAX call.
This function creates the javascript needed
Is the Right code for body Tag ? But I am not clear about what is the
'window' and 'load' . Is the part of onload event or what ? I can't
find any refrence.
"/posts/load/",
"update"=>"posts_view",
"type"=>"asynchronous"
Do the "bit of magic" in another method in the controller which returns the array. Call the method from each action. And if the array is based on data from a specific model, you should probably put the new function in that model.
Eric
On 10/31/06, jamdown <[EMAIL PROTECTED]> w
Your URL should be http://localhost/cake/notes (I think...without actually seeing your setup). What webserver are you using? If it's not Apache, you might try
http://localhost/cake/index.php/notes (right guys? correct me if I'm wrong).
HTH,
Eric
On 10/31/06, Gayathiri Balachandr
A really quick search of the group for "routing" came up with many examples, but all you need to do is put something like the following in your /app/config/routes.php:$Route->connect('/articles/:param1', array('controller' => 'yourController', 'action' => 'yourAction'));
$Route->connect('/articles/
For the Question B.
I check the script.aculo.us Wiki and got one solution.
use Ajax.Updater for onclick
The code below:
onclick="new
Ajax.Updater('posts_view','/posts/refresh',{asynchronous:true,evalScritps:true});return
false"
Is it the right way to do this even it works?
Thanks.
--~--~
I am not so clear. The div synchronous means each div are loading at
the same time. Is it correct?
BUT for the example website www.netvibes.com, is it the each div are
loading asynchronous or indivually?
AND also, if I want to load the index page to load like
www.netvibes.com, Where can I write
You mean useing the loading options to do that ? Set the three DIvs
holding three different loading options ?
nate wrote:
> http://manual.cakephp.org/chapter/helpers
>
> Read up on the Ajax section. There is a method in there that will
> accomplish what you're looking for.
--~--~-~--
Thanks. I think it slove the question B. To click "todo" to load the
"todo" tasks.
BUT, I think it is not my goal for A.
How the Divs, for instance, three Divs, to load indivially?
Like the www.netvibes.com. Each elements are loading according their
speed or asynchronous.
Should I creat a new co
Hi,
Can anyone who help me to figure out the following questions?
A.Like the subject said. Normally when u loading a new page like
index.php, all the elements or DIVs are loading simultaneously. How Can
I make all the DIVs asynchronous or one by one?
B.How Can I reload or refresh a sing
Thanks nate!
I have another problem.
If I have a index page which contains 3 Divs, I want to load them
indiviually. Not like normal way to load all the componets in the page
at one time.
How I can use AJAX to do it like that ?
--~--~-~--~~~---~--~~
You receive
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:
1
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
Thanks...
Finally, I got it...
BUT I think the problems is VIEW code is wrong. The whole map about
views is recode.Like http://cakebaker.42dh.com/tags/ajax/ show me.
index.thtml
and also the update.thtml.
BTW, what do u mean by only involve the use of one view, not two?
and Include RequestHandl
Sorry for the duplicate post. I thought it was an error. Cause I havn't
see it update...
nate wrote:
> The 'bla' is the template. It's for when you want to use a template
> that isn't named the same as your action name.
>
> @Ismael: refer to my comment on your duplicate post:
> http://groups.g
Hi, everyone
I use the $ajax->sumit to save form without refresh. I can see the
whole form except the save button and also got error message like
below:
Fatal error: Cannot unset string offsets in D:\Program
Files\xampp\htdocs\cake\cake\libs\view\helpers\ajax.php on line 697
This is my code abou
ya.
I use the latest verion of scriptaculous-js-1.6.4
--~--~-~--~~~---~--~~
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,
$this -> render ('bla' , 'ajax' ) ;
What is the 'bla' ?
--~--~-~--~~~---~--~~
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 grou
Hi everyone,
I used CAKE 1.8 , Uniform Server 3.3, WIN2003, firefox 1.5 and ie 7.0.
I try the fuction about $ajax->link.
I can make the $ajax->link to update single DIv's works perfect either
in FF or IE.
But when I try $ajax->div and $ajax->divEnd, there is no responding at
all.
Can anyone he
Hi everyone,
I used CAKE 1.8 , Uniform Server 3.3, WIN2003, firefox 1.5 and ie 7.0.
I try the fuction about $ajax->link.
I can make the $ajax->link to update single DIv's works perfect either
in FF or IE.
But when I try $ajax->div and $ajax->divEnd, there is no responding at
all.
Can anyone he
Javascript is undefined, which means you do not have the javascript
helper
var $helpers = array('Html', 'Javascript', 'Ajax');
In your App_controller or the controllers you have.
Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribe
Hi, everyone
I just follow the instrction from the "to-do list" ajax function. I got
everything copy and pasted.
When I click the Add button there is an error message
To do
Notice: Undefined variable: javascript in
W:\www\blog\cake\libs\view\templates\layouts\default.thtml on line 36
Fatal err
elete function, the
same error message comes again.
I just copy the following code and insert between in to my
default.thtml in the location of cake/libs/views/templates/layouts/.
charsetTag('UTF-8') ?>
link('prototype') ?>
link('scriptaculous.js?load=effects') ?>
Thanks a lot.
--~--~-~--~~~---~--~~
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 more
result.
If you get one, save the new values with $this->YourModel->save($newValues).
If not, call $this->YourModel->create() before the save().
Have Fun!
Eric
On 10/22/06, Eric <[EMAIL PROTECTED]> wrote:
Thanks Eric...hehe (another Eirc)The cakephp AJAX library (prototype ,
Can Post the error message about your pro?
I just install it correctly.
Maybe You can wiki.cakephp.org to find artical about for beginner. It
really helps
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP"
Thanks Eric...hehe (another Eirc)
The cakephp AJAX library (prototype , script.aculo.us) seems just have
endDrag() ,which is "caught by the window's mouseup, stops dragging
the activeDraggable, if any, via its endDrag function. "
Is it the function?
More appreciate if you can
d the values for the user and position the div
HTH,
Eric (the other Eric, confusing)
On 10/22/06, Eric <[EMAIL PROTECTED]> wrote:
Hi,I am just learing Cake. I follow the instruction from the Tuto. to useajax to drag a element. But How Can I just save the postion after
draged baseon the use
Hi,
I am just learing Cake. I follow the instruction from the Tuto. to use
ajax to drag a element. But How Can I just save the postion after
draged baseon the user_ID.
Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Go
Maybe I'm wrong, but I think you should just use the $templetter array, not $this->data->templetter. Check the contents of that array, but I think it should be $temptext = $templetter['Letter']['text']; If not, check print_r($templetter); to see the array.
Eric
You need to feed the attributes as an array, as such:
$html->image('map.JPG', array('width' => '504', 'height' => '272', 'usemap' => '#worldmap'));?>HTH,
Eric
On 10/15/06, Gayathiri <[EMAIL PROTECTED]> wro
Thanks a bunch, I'll definately check them out. I got something going with obAuth.
Eric
On 10/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
or use this:http://wiki.cakephp.org/tutorials:secure_logins_with_challenge_response
don't be scared by the "tutorial" p
ure what's going on here...
Any help at all is appreciated.
Also, is there an easier authentication component I should use? I really just need a simple login system (not even groups!), and I just didn't want to roll my own.
Thanks,Eric
--~--~-~--~~~
I reported the bug, thanks.
Eric
On 10/7/06, John Zimmerman <[EMAIL PROTECTED]> wrote:> On 10/6/06, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote: > > > > > So that someone knows, I tried _seven_times_ to post a comment on an> > article in the Bakery before
As AD7six said earlier, you need to "include the RequestHandler component" in the controller's $helpers array. I think that'll fix it, as Cake is rendering the entire page, and RequestHandler should make sure that doesn't happen with an AJAX request.
Someone correct
ythingAfterSlash', array('controller' => 'pages', 'action' => 'display', 'basepage'));
Then you can access the data with $this->params['everythingAfterSlash'].
It might work!! :-)
Eric
On 10/2/06, WeeJames <[EMAIL PROTECTED
ontroller' => 'articles', 'action' => 'view'));
In the view method of the article controller, you can access the $this->params['articletitle'] variable to see the title.
Have fun,
Eric
On 10/2/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Yes, great job! I'm looking forward to more great articles and tutorials.
Also, I second the "password validation rules are a bit restrictive" comment. Too many sites have too many different rules now - too many different passwords!
Thanks,
Eric
On 9/22/06, Brian French &l
This works on Apache and will send it immediately to the client. 2. Use the AJAX mentality and output _javascript_ each time the status changes that will change the status DIV tag.
3. Use HTTP multipart/x-mixed-replace to update the entire browser page.
4. Maybe some other way... :-)
HTH,
Eric
Perfect! Thanks a bunch!
On 9/20/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
lower $this->Category->recursive? (set it 0 or so)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this gro
can I do?
Thanks again,
Eric
On 9/20/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I think you need findAllThreaded for that
http://api.cakephp.org/class_model.html#181aefe1bf7efe1504692c485c83caa8
--~--~-~--~~~---~--~~
You received this message beca
Has anyone done a tree in Cake?
Thanks in advance!
Eric
--~--~-~--~~~---~--~~
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 fr
their site only calls yours once a month. Just don't make the key encoding obvious!
Eric
On 9/14/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
No I am not Zend Guarding it. But the people that I am installing thisapplication for don't understand HTML much less PHP and CakePHP
Just to say a bit more, I found this in the article for UTF-8 on
Wikipedia:
"A badly-written (and not compliant with current versions of the
standard) UTF-8 parser could accept a number of different pseudo-UTF-8
representations and convert them to the same Unicode output. This
provides a way for
I can't seem to find the specific example I was looking for, but I did
find this when looking back in my database for one of the tests I did:
¼script¾alert(¢Another Test¢)¼/script¾
It didn't seem to cause a problem, though I don't know if that's
because of some PHP or Apache setting; my fear is
Sorry if it sounds like I made that assumption -- I guess my question
was a little too broad and the title a bit sensational.
To focus my question a little further, I pointed out that in the
Sanitize->html function, a simple find and replace was done on certain
characters. My (very basic) unders
Surely someone must know a bit about XSS vulnerabilities! :)
--~--~-~--~~~---~--~~
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
Regarding your section question, and pulling only certain
information...
Check out:
http://api.cakephp.org/class_model.html#c2d8fb14f5398c85452d978bd013436f,
which is the API page for FindAll(). One of the parameters is
'fields', where you can specify fields returned. I'm not certain, but
you m
I've been reading about all types of security vulnerabilities common in
online applications, and realized that my application had some rather
large XSS holes. I found that using the Sanitize function 'cleanArray'
did a nice job in removing all? of the vulnerabilities, but I am
curious whether it
I did this in my application recently. I created a 'CommonController',
defined actions / views for that, and redirected the user to these
common pages when applicable.
For instance, I had an edit function for several different models. For
a success, I redirect to common/success. Seems to work,
I'm curious about your topic title, because that is what I am finding
too. That if I set the findAll parameter $recursive to greater than
one, then the hasOne relationships seem to get *every* record from that
table. And then my queries time out. I've checked and I have indexes
set up for the rela
. Cycling through all of the relationships and getting all
of the data is complex, so before tacking it I thought I'd ask if it had
already been solved by someone (seems a common need). If it's not
already out there, I'll share the solution when I get it done
eated", $tabl['name'], 7 ) && 0
!= strncmp("modified",$tabl['name'], 8))
I found it because a date field called "create_date" was not showing up
due to its type being null rather than "date". I renamed the field for now.
Thanks,
Eric
MySQL SQL command rather than the PHP mysql_insertid method. So,
> maybe that enhancement would apply here?
This helped, thanks!
Eric
> On 4/28/06, *Eric Banford* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>
> I'm seeing a production issue with
ere.
Does anyone know if this is a known issue with PHP4. Thanks for any
direction on this.
Thanks,
Eric
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, se
201 - 287 of 287 matches
Mail list logo