Hi TJ,
I got the idea. I think you are right. I will try it and let you know
tonight.
/* Edit the following line with the proper controller, and action*/
$this-redirect(/controller/action/$id);
exit();
This is thing is going to do the trick i guess. but i am again
concerned about one more
Hi abing and all,
I heard on the grapevine that the acl code is currently being
refactored, so some of what I write below may be obsolete before too
long.
On Jan 3, 4:09 am, Nimrod A. Abing [EMAIL PROTECTED] wrote:
snip
I have tried using a stack-based algorithm instead of recursion, but
Ámon Tamás wrote:
There is any way in cake php for ajax file uploading?
Check out:
http://www.thinkingphp.org/2006/04/27/an-ajax-file-upload-progressbar/
http://thinkingphp.org/demos/cake-timer/
I like to make a form where I have a file uploading field. If upload a
file I like to put the
http://lov.li is online - thanks very much to the cake development team
and everyone in #cakephp for your help. lov.li is a 'community art
market' - like flickr for art, crafts and handmade products. The site
allows blogging, groups, events, image management, video uploads with
transcoding into
On 1/3/07, expatrick [EMAIL PROTECTED] wrote:
http://lov.li is online - thanks very much to the cake development team
and everyone in #cakephp for your help. lov.li is a 'community art
market' - like flickr for art, crafts and handmade products. The site
Congratulations - looks and sounds
Another thing is that when I put a default.po in /app/locale/langid/,
the core translation is not being read anymore. I think the
core-translation should always be loaded, because it is undependend of
the capplication I'm writing.
Worth a ticket?
Congrats Patrick. Looks nice..although the homepage loading is bit
slow, I found tat dragdrop.js+effects.js took 15 sec to load. assuming
its a scriplecous stuff, if not needed at homepage u might consider
removing the reference.
nice to see such polished website build on cake.
wish you best of
I have the Code below.
---star.thtml-
div id=first
?php $current=0;
foreach($all['0']['Star'] as $star)
{$current +=$star['star'];}
$num=count($all['0']['Star']);
echo Have.$num.Peolpe Vote;
$avg=$current/$num*25;
echo --Total:.$avg;
?
ul
but I'm not sure how your doing your
sequential outputs, or how you are calling pass.
Yeah, that's the problem, and I think it maybe the limitation of
CakePHP or in general MVC frameworks.
In actual, we can't get the desired output since we can't do the
sequential outputs, call pass().
On 1
Hi abing and all,
On Jan 3, 12:50 pm, Nimrod A. Abing [EMAIL PROTECTED] wrote:
snip
Will this be available on the 1.2 or 1.1 branch or both?
I assume 1.2 only.
snip
http://www.sitepoint.com/print/hierarchical-data-database
I maintain that recursion isn't necessary to display MPTT tables.
Congratulations, but the debug is active
SQL Error in model User: 1064: You have an error in your SQL syntax;
check the manual that corresponds to your MySQL server version for the
right syntax to use near ') LIMIT 1' at line 1 ??
[]s
2007/1/3, sumanpaul [EMAIL PROTECTED]:
Congrats
well, look we are at analysis step yet.
it's a community website with a development size like DeviantArt.com
but more oriented to musicians.
I think it could have a minimum of 10k unique visits daily at start.
And after some marketing it will growth.
On Jan 3, 1:59 am, Dr. Tarique Sani [EMAIL
I am using admin routing, is it possible to set a default layout for
all actions called through /admin, or does it have to be specified in
every admin controller function with $this-layout.
Thank You in advance
Duncan
--~--~-~--~~~---~--~~
You received this
I agree with this too. And about the budget is ok, because we've
spending some company resources in the building of that with no limit
of time/budget.
It's enough to have the rest of the resources working on our clients
and some of us on the development of this app.
After completion and site
Hello,
On 1/3/07, AD7six [EMAIL PROTECTED] wrote:
Hi abing and all,
On Jan 3, 12:50 pm, Nimrod A. Abing [EMAIL PROTECTED] wrote:
snip
Will this be available on the 1.2 or 1.1 branch or both?
I assume 1.2 only.
Oh well, I might as well port my CMS to 1.2. A lot of the new stuff in
1.2
I was monitoring the other thread you started and I was not aware of
this new thread. Anyway, just read my last two replies to your
original thread to get a picture of what I am trying to use MPTT for.
I took a recursive approach for rebuilding tree traversal data for
reasons described in my
I don't have that book. But the best link that I can find about the
subject (with an example in Access 2000) is here:
http://www.mvps.org/access/queries/qry0023.htm
I'm not on Windows right now and I haven't looked into it yet to see
if this is what you mean.
On 1/3/07, Dr. Tarique Sani
I have a very simple program.
Here is the controller.
?php
class TestsController extends AppController {
var $name = 'Tests';
function pass() {
for ($i = 1; $i = 3; $i++) {
$this-set('message',i is . $i . br);
}
}
}
?
And here is the view.
?php
echo $message;
?
I expected
On Jan 3, 1:34 pm, FrenchEscapes [EMAIL PROTECTED] wrote:
I am usingadminrouting, is it possible to set a defaultlayoutfor
all actions called through /admin, or does it have to be specified in
everyadmincontroller function with $this-layout.
Thank You in advance
Duncan
Try this:
Thanks, Chris.
But what if the loop takes much time to complete the whole cycle ( $i =
1, 2, 3), and makes the user impatient? The user wants see the first
outout for $i =1, and then next output for $i = 2, and so on
sequentially rather than to wait for the completion of the whole loop.
This is
The out put that you got is right.
When you are using set it is setting the value not appending.
In your code you are not printing the value after it has been set each
time.
By the time the code gets to the call to echo the value of message your
loop has already completed and it print outs the
On 1/3/07, skyblueink [EMAIL PROTECTED] wrote:
I'm a newbie in CakePHP, but this lack of on the fly output in loops
seems to be resident in MVC frameworks such as Cake.
/me shrugs
You're doing a loop either way, so this is a case of perception vs.
reality. Perception demands that on the
Hi, rpetrain1
yes there is also a synchronization problem between the controller and
the view.
I know that $this-set doesn't do appending, but appending is time
consuming in real life. What I aim at is 'not appending': instead of
appending string data, I want to send each datum to view so that
AJAX itself can't handle file upload. It's a big no no apparently and a
security hazard if it was allowed...however, what goes on is there is
an iframe and the file upload takes place there within that form.
There are several tutorials on this, TJSinglton linked one there,
here's another:
Thanks for all the replies.
It seems like Cake's ActiveRecord implementation is great for what I'd
consider straight forward CRUD activities, but we have a couple
scnearios that don't seem to fit so well, in a currently existing app I
am thinking about porting to Cake:
1) The table name is not
Chris, very insightful opinion!!
Now it seems to be a time for me to learn something like ajax in
cakePHP.
Could anyone show me how to apply ajax to my tiny program for doing on
the fly output?
It could present with a good starting point for studying ajax in
Cake.
On 1월4일, 오전1시35분, skyblueink
Hi,
I'm building a site using cakePHP. I have a working HABTM association
working between a Company model and a Category model using a
companies_categories table. Each company has many categories and each
category has many companies. However, I now need to have stats for the
site - how many
Start here:
http://manual.cakephp.org/appendix/blog_tutorial
It'll give you a good feel for how to handle basic things like that in
Cake.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to
You could just move the whole loop to the view and pass the array from
the controller to it. I guess it really just depends on what you mean
by on the fly. When I get a chance I'll update my example in the
other thread to produce your desired output.
On Jan 3, 12:02 pm, skyblueink [EMAIL
In actual, we can't get the desired output since we can't do the
sequential outputs, call pass().
ok, so is this what you mean?
VIEW
Header 1: Fruits are here. br /
?php
foreach ($fruits as $fruit) {
echo $fruitbr /;
}
?
Header 2: Animals are here. br /
?php
foreach ($animals as
Well, I ended up setting $this-params['hashkey'] with the hashkey
value, and then using $this-params['hashkey'] to check the Session.
Anyone know if this is the right way to do things?
On Jan 3, 10:17 am, dkarlson [EMAIL PROTECTED] wrote:
Hello,
I'm running the latest cake 1.2.x.x code from
I used iframe, I was the only solution that I found.
[]s
Marcelo Linhares
2007/1/3, Erich C. Beyrent [EMAIL PROTECTED]:
Maybe this will help:
http://seemysites.net/projFolder/uploader/
Ámon Tamás wrote:
[EMAIL PROTECTED] wrote:
AJAX itself can't handle file upload. It's a big no no
Marcelo Linhares wrote:
I used iframe, I was the only solution that I found.
I know this is the only solution (because security), but how You can
send the file to the iframe and how get back the results with javascript
(for example with prototye)?
[]s
Marcelo Linhares
2007/1/3, Erich
Thanks Widi,
The translations have been added to the svn repository and the site
http://translation.cakephp.org/ has been updated also.
If you find any errors and would like to correct them use the svn version of
the .po file and upload it renaming it to core_ind.po
--
/**
* @author Larry E.
AD7six wrote:
On Jan 3, 1:34 pm, FrenchEscapes [EMAIL PROTECTED] wrote:
I am usingadminrouting, is it possible to set a defaultlayoutfor
all actions called through /admin, or does it have to be specified in
everyadmincontroller function with $this-layout.
Thank You in advance
Duncan
Try
Hey, I'm currently doing a little series on JavaScript programming
http://www.thinkingphp.org/2006/12/30/a-php-developers-guide-to-javascript-part-i/
on my blog and I think this would be an excellent tutorial for one of my
upcoming posts. So if you can wait I might write up an excellent how-to
Felix, show us you jNinja skills by doing that in an one-liner ;}
happy with jQuery
spark
On 1/3/07, Felix Geisendörfer [EMAIL PROTECTED] wrote:
Hey, I'm currently doing a little series on JavaScript programming on my
blog and I think this would be an excellent tutorial for one of my
On Dec 31 2006, 1:30 pm, Langdon Stevenson [EMAIL PROTECTED]
wrote:
snip
Langdon
Oh the joy, my message went missing - sorry for the pseudo-duplicate if
it turns up.
I had a thought regarding the originally posed problem, so thought I
would reply.
ACL doesn't lend itself very well to
As a newbie, I am having a hard time grasping MVC thinking and how to
structure my application.
Lets say I would like a website with this structure:
div wrapper
div header/div
div content
???
/div
div footer/div
/div
... where ??? could be i.e. a 2 or 3 column layout
Are you saying that the user would get to choose which layout they
wanted, or is the layout chosen for them based on which page they
navigate to?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To
As aforementioned, more info is really needed. But I think you will
only need one layout, you can use two views. One with two columns and
one with three.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP
Job Opportunity:
Senior level PHP programmer to do code reviews of on-going project.
You will review our existing code base as well as new code and make
recommendations to increase the quality and reusability in our code.
Must have extensive experience with MVC paradigm. Applicants with
with
Suman,
I think you're right, the nifty effect is not worth the huge load time.
I pulled it.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
Not much yet, about a hundred uniques is my best day - although the
site seems really sticky, lots of pageviews/user.
This is interesting - my users are 20% mac (up from 8% on my other
sites) and 50-50 IE/firefox!! probably because most of them are friends
of mine.
Dr. Tarique Sani wrote:
Sorry for not being clear!
What I really am looking for, is a way to substitute the usual
(old-fashioned) php practice of including content based on i.e. GET
variables.
What is the counterpart in CakePHP and what is the BEST practice (...
or at least a good one ...)?
In detail:
- When should
Thanks Chris, I'll answer you in other thread.
On 1 4 , 6 00 , Chris Hartjes [EMAIL PROTECTED]
wrote:
On 1/3/07, skyblueink [EMAIL PROTECTED] wrote:
Yes, surely it will give the output I wanted. Thank you for your work,
but what if I have to call myfunction one thousand times?
Does anybody have a working ISAPI_REWRITE httpd.ini file for IIS I can
peek at?
This link no longer resolves:
http://wiki.cakephp.org/tutorials:cake_under_iis
Thank you
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
1. MODEL
$this-Test-scraper($shop, $author)
The function scraper() gets $shop(the name of a internet bookshop site)
and $author as arguments and returns a title list of the first 10 books
being sold there with $author as the author.
$booklist = $scraper('amazon','Shakespeare');
will return.
Hi, i hope help you lets see:
- When do I need to create new layouts?
you just have to create one layout, the default layout. Then you just
to have to create the views files that only have the content.
- How is the $content_for_layout supposed to work?
the $content_for_layout works like a
Hi,
I think you're looking for elements. You can render elements within your
layout, such as a menu, search, etc. Your $content-for_layout is the content
that is to go within the layout for the page. That variable will be set to
the content of the view that was rendered.
Only make new layouts
Here you go:
http://groups-beta.google.com/group/cake-php/browse_thread/thread/263d3ffd6fb7533d
I need to get back to work :) I'll keep monitoring both threads for
any new developments. I'll also be taking a look at implementing the
alternative tree traversal method that I pointed out. When I
Thanks Nimrod, I forgot that I changed the subject line ...
Here you go:
http://groups-beta.google.com/group/cake-php/browse_thread/thread/263d3ffd6fb7533d
I need to get back to work :) I'll keep monitoring both threads for
any new developments. I'll also be taking a look at implementing
The IIS tutorial is missing from the wiki? If you look, you'll
actually notice that the wiki is missing from the wiki:
http://wiki.cakephp.org/
We're not doing that whole wiki thing anymore.
UpWorks wrote:
Does anybody have a working ISAPI_REWRITE httpd.ini file for IIS I can
peek at?
This
On 1/4/07, AD7six [EMAIL PROTECTED] wrote:
1) adding a field to the relavent table (access_level = 1,2,3) and
adding a condition such that only data meeting the condition is
returned (access_level = $userAccessLevel). Obviously this doesn't use
ACL at all, but then ACL isn't always the right
Hello All,
This is a bit off topic - so apologies for that.
Which ER / DB design tools do you folks use or rather do you use an ER
tool at all?
I use DBdesginer from fabForce but
#1 it is no longer maintained
#2 it stopped working on my Linux machines (code too old)
Have been unable to find
I am currently using ERStudio by Embarcadero. However, its support of MySQL
5 data types is a bit lacking.
On 1/4/07, Dr. Tarique Sani [EMAIL PROTECTED] wrote:
Hello All,
This is a bit off topic - so apologies for that.
Which ER / DB design tools do you folks use or rather do you use an ER
56 matches
Mail list logo