Did you try
http://manual.cakephp.org/appendix/blog_tutorial
On 12/20/06, eric <[EMAIL PROTECTED]> wrote:
I just download Cakephp , and read around Document,but also dont know
how to create project and code or action ...
does someone can help me ! show me some example let me know what a
use
I just download Cakephp , and read around Document,but also dont know
how to create project and code or action ...
does someone can help me ! show me some example let me know what a
usefully develop is CAKEPHP
thx!! guys!
help from china!
Regards!!
--~--~-~--~~~-
Never mind figured it out!
Tazz wrote:
The component is working fine. I passed around different limits and
pages and the right data is displaying. Just that the pages wont
render...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
On 12/20/06, Mariano Iglesias <[EMAIL PROTECTED]> wrote:
Here's the public URL for consolidated list:
http://www.bloglines.com/public/cakephp
Cool - thanks for the effort
Tarique
--
=
PHP Applications for E-Biz: http://www.sanisof
The component is working fine. I passed around different limits and
pages and the right data is displaying. Just that the pages wont
render...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To po
OK, so basically you have an array on top of everything. That's why you
can't debug($data['Product']); or loop it directly.
For this particular $data, to iterate through each product, you will need to
use:
Foreach ($data as $holiday) {
Foreach ($holiday['Prodcut'] as $product) {
[Write your
first off, it seems like the page would probably run faster if it was
just one query instead of 30 or 40.
but the other reason is to filter results or get variables from the
other model. for instance, if Forrest has many Trees and i query
Forrest wanting to only return Trees that are Brown, how
On 12/21/06, keymaster <[EMAIL PROTECTED]> wrote:
tried restarting, now it gives 500 internal server error.
That means there's an error in your .htaccess file or you forgot to
AllowOverride All for the Directory that holds your CakePHP
installation. By default XAMPP (you are using XAMPP aren'
I had remove ['Product'] from $data['Product'] otherwise it would cause
an error if I debug($data).
The output for $data is:
Array
(
[0] => Array
(
[Holiday] => Array
(
[id] => 1
[holiday_name] => Halloween
Hi,
I have a cakephp app with lots of models connected with hasMany and
belongsTo relations.
I just discovered that when php4 compatibility mode is turned On in
php.ini file and I do findAll or find with high recursion number, I
get:
Notice: Undefined index: className in
/dev/mysite/cake/libs/mo
oh my goodness. *smack's hand over forehead*
Here are the correct links:
HolidaysController: http://bin.cakephp.org/saved/1308
ProductsController: http://bin.cakephp.org/saved/1309
Holiday Model: http://bin.cakephp.org/saved/1310
Product Model: http://bin.cakephp.org/saved/1311
Christmas.thtml:
Yeah!!I As you said before I speak Spanish but I don't know where find
documentation or better who here in this group talk Spanish and can help me.
Also I speak and write a little English so this is not a difficult for me.
Can you tell me if exists something in the Bakery wrote in Spanish?
Thanks
I think it has something to do with the result parser. It's not a bug, it's
by design.
Other association that does join tables are belongsTo.
Why do you need it in one query?
-Original Message-
From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of [EMAIL PROTECTED]
Sen
Isn't this what RequestHandler->isAjax() is for?
--~--~-~--~~~---~--~~
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
Beautiful, don't know how I missed it. I'm using it to lay out some specific
actions under the ajax or standard layout depending on call method, and the
setAjax() thing was just what I was looking for.
Good call Samuel.
-MI
--
I would suggest looking in your list of enabled modules to see if you have
enabled mod_rewrite.
Jose
On 12/20/06, Dave <[EMAIL PROTECTED]> wrote:
Experimenting a bit more I've gotten it to work. With the .htaccess
files disabled and BASE_URL enabled, I have to access controller
actions like t
If you are using prototype/ scripta as the ajax framework then you can use the
http://manual.cakephp.org/chapter/request_handler
$RequestHandler->isAjax(); for things like that because it sends
information in the header to identify it as a ajax request. Other
libraries are not (as far as I kn
My fellow bakers,
I was wondering if there's a way to figure out when a CakePHP action is
called as a result from direct URL access or an Ajax update call.
I've tested debugging some data such as:
$this->params
$_REQUEST
But it's the same in both cases. So say we have an action called list()
Experimenting a bit more I've gotten it to work. With the .htaccess
files disabled and BASE_URL enabled, I have to access controller
actions like this:
https://mydomain.com/mydir/cake/index.php/controller/action
Not ideal, but functional anyway. Not sure why mod_rewrite is misfiring
in this cas
It's just my way of giving support for all CakePHP developers who have
Spanish as a mother tongue.
I mean from what I read I figured you also speak Spanish. Correcto?
-MI
---
Remember, smart coders answer ten questions fo
Thanks for the responses. Since I *can* view the home page under the
circumstances already described, I don't think it's a php.ini thing.
I've done .htaccess-based authentication in this directory already, so
I know the .htaccess is being read. And I can copy the entire Cake
distribution down to
tried restarting, now it gives 500 internal server error.
I give up on mod_rewrite on windows.
Is there any major disadvantage if I just use the cakePHP pretty urls
without mod_rewrite?
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Chris Hartjes wrote:
> Field values that contain " (double quotes), <, > etc are also escaped
> when re-rendered back to the form fieled value attribute - is this cake
> doing this?
That could also be from PHP itself. I believe there is a magic_quotes
option that can be turned off or on that
Hi again:
What you mean with that: PS: Go spanish speaking bakers! My English is poor
and I dont understand this ...
2006/12/20, Mariano Iglesias <[EMAIL PROTECTED]>:
I think you will soon learn how helpful our fellow bakers are.
PS: Go spanish speaking bakers!
-MI
i had some strange results today when working w/ associations in cake.
from what i can tell, defining an association as hasMany, does not
result in a table join query. instead, it queries the first table, and
then queries the second table once for each result in the first table.
when i changed t
You might be out of the allowed path in you php.ini file. I'd check
that.
If so just add the correct path to webroot as usual.
On Dec 20, 12:09 pm, "Dave" <[EMAIL PROTECTED]> wrote:
I've worked with Cake on several sites now, but am having trouble
getting it to function on a new (HTTPS) server.
Hello CakePHP Community..
I'm new to the framework and excited to get some work done for my
clients. It looks to be a very good framework with improving
documentation. On to my issue..
Traversing through this group and on IRC I know this topic has come up
many times, but I must ask for an assis
I would suggest double checking your apache config settings. Maybe place a
regular html page in that directory and see if you can view it.
Jose
On 12/20/06, Dave <[EMAIL PROTECTED]> wrote:
I've worked with Cake on several sites now, but am having trouble
getting it to function on a new (HTT
On 12/20/06, Dave <[EMAIL PROTECTED]> wrote:
Next I tried disabling all three .htaccess files and uncommenting the
BASE_URL line in core.php. This improved things but not completely: I
can now see the app's home page (or anything else I specify using the
default route in routes.php), but when t
I think you will soon learn how helpful our fellow bakers are.
PS: Go spanish speaking bakers!
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowled
On 12/20/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Field values that contain " (double quotes), <, > etc are also escaped
when re-rendered back to the form fieled value attribute - is this cake
doing this?
That could also be from PHP itself. I believe there is a magic_quotes
option th
I've worked with Cake on several sites now, but am having trouble
getting it to function on a new (HTTPS) server.
I downloaded the latest Cake from the Web site today and uploaded it to
my server in a subdirectory. After configuring the database, I
attempted to access my new app at https://mydom
Being the paranoid type (I'm not really, they actually *are* out to get
me), I started looking at data cleansing today, which is one area of
cake I'm a little unsure of, but getting it right is pretty important
:)
From the testing I've done, it appears that values are automatically
sql escaped
Yeah, that's one way to do it. The other way is to go into
webroot/index.php, and change CAKE_CORE_INCLUDE_PATH to the absolute
path to your Cake install.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP"
I got this working a-ok on MediaTemple, so that I can host N domains
using the same Cake install.
DIRECTORY STRUCTURE:
/home/USERNUMBER/domains/APPS/cake/
This should contain cake/, docs/, vendors/, and index.php
/home/USERNUMBER/domains/APPS/YOURDOMAIN/
Put all your /app/ code here. Note: Ther
It seems like you are having a problem with the browser caching the web
pages. You might be able to adjust the header sent to the browser so
it does not cache.
Another approach would be to use a asynchronous update to display the
flash message, instead of the standard way.
To do that, add this
Well, I been testing CI for a long period, maybe 5 or 6 months ago but now I
read some articles in Cake site and it's amazing. Right now I need write an
application and it need to use ACL permissions. CI haven't this only a few
approach contribute by community. Me work in some Spanish languages fo
Oh yeah I studied CI before turning into CakePHP.
They have a very similar framework, but CakePHP miles ahead of CI, much more
stable, stronger, and an excellent support from the community. What more can
you ask?
Oh yes, and CakePHP is COOL.
-MI
---
I realize the english I've used on my last message sounded more like: "Yes,
me can do it." Sorry about that guys :)
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, an
On Dec 20, 2006, at 11:24 AM, Mariano Iglesias wrote:
CI? What does it stand for?
CodeIgniter.
We're much more mature and feature-rich than CI, and there's much
less code to write in a Cake app.
-- John
--~--~-~--~~~---~--~~
You received this message b
CI? What does it stand for?
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
De: cake-ph
Thanks a lot, donwloading now
Cheers
2006/12/20, John David Anderson (_psychic_) <[EMAIL PROTECTED]>:
On Dec 20, 2006, at 11:01 AM, ReynierPM wrote:
> Hi every:
> I've been working with CI since a while and now I try to test
> CakePHP for make a simple comparison. Right now I have a doubt:
>
On Dec 20, 2006, at 11:01 AM, ReynierPM wrote:
Hi every:
I've been working with CI since a while and now I try to test
CakePHP for make a simple comparison. Right now I have a doubt:
exists any way for download all the documentation as PDF or CHM or
maybe an entire .html page?
http://c
Hi every:
I've been working with CI since a while and now I try to test CakePHP for
make a simple comparison. Right now I have a doubt: exists any way for
download all the documentation as PDF or CHM or maybe an entire .html page?
Cheers and thanks in advance
--
Salu2
ReynierPM | 5to. Ing Informát
I'm using smarty in conjunction with cakephp. I am able to successfully
observe my select field and pass the desired value to the controller.
The problem I am having is that the observeField function submits the
value as soon as the mouse is moved over the new value, and before the
user actually
...or download appserv WAMP and uncomment mod_rewrite.
--~--~-~--~~~---~--~~
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
Hi,
Did you restart Apache after making the changes to your httpd.conf?
You need to restart Apache everytime you make any changes to
httpd.conf or the files it includes with the Include directive.
Changing stuff in .htaccess does not require that you restart Apache.
On 12/20/06, keymaster <[EM
That worked beautifully, thank you.
On Dec 19, 7:45 pm, "Samuel DeVore" <[EMAIL PROTECTED]> wrote:
$this->set('manufacturersArray',$this->Product->Manufacturer->generateList());
On 12/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hey, I'm pretty new to CakePHP and had a question:
>
According to the documentation in
http://wiki.cakephp.org/tutorials:flashing I made a site using flashing
to give messages or alerts to users. It works ok, but the problem is
comes when the user goes back (through the browser's back button) and
goes forward (also through the browser's button),
Here's the public URL for consolidated list:
http://www.bloglines.com/public/cakephp
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAK
Doing that
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
De: cake-php@googlegroups
What about somebody making a bloglines folder and share it?
--
http://www.thinkingphp.org
http://www.fg-webdesign.de
Mariano Iglesias wrote:
They do :) Good articles should have their place on the bakery,
though. But
I was talking more about the necessity of having a
Hmm, Sosa's feed seems to be dead and causing the issue. I'll see if I
can find some time to fix soon.
-- Felix
--
http://www.thinkingphp.org
http://www.fg-webdesign.de
Mariano Iglesias wrote:
Felix, are you around? Because on the page Tarique included you have some
n
They do :) Good articles should have their place on the bakery, though. But
I was talking more about the necessity of having a central place where to
look for CakePHP related blogs.
I've seen some lists people included on this thread and though they are all
cool, they share the same dilemma: e
Felix, are you around? Because on the page Tarique included you have some
notices and warnings:
Notice: Undefined index: Items in
/www/htdocs/w00645aa/cakenews/app/models/rss.php on line 40
Notice: Undefined index: Items in
/www/htdocs/w00645aa/cakenews/app/models/rss.php on line 42
Warning: a
On 12/20/06, AD7six <[EMAIL PROTECTED]> wrote:
On Dec 20, 12:03 pm, Tijs Teulings <[EMAIL PROTECTED]> wrote:
> I might be daft but in these cases plain old SQL isn't all that bad is it...
>
> $posts = $this->Post->query("SELECT DISTINCT Post.title, Post.body FROM
> posts as Post
> LEFT JOIN
I have tried just about everything, but cannot get mod_rewrite working
on my windows XP , WAMP devlopment environment.
This is what has been done so far:
In C:\Program Files\Apache Group\Apache\conf\httd.conf:
===
1. Changed:
--
FROM: Al
ajax_index.thml
Ok, I'm retarded. It would be nice if I named the files correctly...
:p
Now that I have, it's working as expected.
thnx,
Christoph
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP"
Your link to the view is the same as the Product model
On 12/19/06, leamas <[EMAIL PROTECTED]> wrote:
You can view the files at:
HolidaysController: http://bin.cakephp.org/saved/1308
ProductsController: http://bin.cakephp.org/saved/1309
Holiday Model: http://bin.cakephp.org/saved/1310
Product
On Dec 20, 1:12 pm, "Javier Ramirez Molina" <[EMAIL PROTECTED]>
wrote:
I think this is could be a little weird but is what the client require.
I have to develop a ckae application wich is going to be used by a lot
of differents users, I can't control what can or can't do each user
with ACL, bu
Yikes, i never knew... i thought (most of) those things would work fine with
query(). thanks for the enlightenment.
tijs
AD7six wrote:
On Dec 20, 12:03 pm, Tijs Teulings <[EMAIL PROTECTED]> wrote:
I might be daft but in these cases plain old SQL isn't all that bad is
it...
SQL certainl
On Dec 20, 12:03 pm, Tijs Teulings <[EMAIL PROTECTED]> wrote:
I might be daft but in these cases plain old SQL isn't all that bad is it...
$posts = $this->Post->query("SELECT DISTINCT Post.title, Post.body FROM
posts as Post
LEFT JOIN posts_tags as pt ON Post.id = pt.post_id
LEFT JOIN tags
Hopefully people will post links to good articles on this group ;)
--~--~-~--~~~---~--~~
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 fro
I think this is could be a little weird but is what the client require.
I have to develop a ckae application wich is going to be used by a lot
of differents users, I can't control what can or can't do each user
with ACL, but I also want to what data to be used depending of the
user.
It have to b
I might be daft but in these cases plain old SQL isn't all that bad is it...
$posts = $this->Post->query("SELECT DISTINCT Post.title, Post.body FROM
posts as Post
LEFT JOIN posts_tags as pt ON Post.id = pt.post_id
LEFT JOIN tags as Tag ON Tag.id = pt.tag_id
WHERE Tag.id = '$id' AND Post.publ
in your case:
$this->layout = 'ajax';
$this->render( 'ajax_index' );
Ok, as I said above, I tried this. When I do, I get a "missing view"
error.
or simply
$this->render( 'ajax_index' , 'ajax' );
I tried this, too. Same error.
but remember... you must have ajax.thtml layout with only on
in your case:
$this->layout = 'ajax';
$this->render( 'ajax_index' );
or simply
$this->render( 'ajax_index' , 'ajax' );
but remember... you must have ajax.thtml layout with only one line
and another thing... you can't just copy and paste index.thtml into
ajax_index.thtml because when you are u
Hi,
For a HABTM you would/could do the following:
1) Create a model for the join table.
2) bindModel a dummy hasOne association for the join table before you
search
3) use a constraint that refers to the main model and the join
table(not the other model)
Working E.g.
$this->Post->bindModel(arr
i think the 'read' list on http://www.cakephp.org/ is a really good place for
such a list. maybe it should g feature a 'more...' link linking to a page
with a longer resources list...
Tijs
Mariano Iglesias wrote:
My fellow bakers,
Does anyone hold a list of CakePHP related blogs? We shoul
On 12/20/06, Mariano Iglesias <[EMAIL PROTECTED]> wrote:
My fellow bakers,
Does anyone hold a list of CakePHP related blogs? We should build something
like this and possibly include it on the bakery, what do you think?
http://www.thinkingphp.org/cakenews/
I usually include the top articles
I'm also a newbie trying to do the same thing.
I couldn't get it to work until I realised that the model name in $uses
needs to be Uppercase e.g.
class HomesController extends AppController
{
var $name = 'Homes';
var $uses = array('Exhibition');
function index()
{
On 12/20/06, Mariano Iglesias <[EMAIL PROTECTED]> wrote:
My fellow bakers,
Does anyone hold a list of CakePHP related blogs? We should build something
like this and possibly include it on the bakery, what do you think?
There's one at LiveJournal:
http://community.livejournal.com/cakephp/
I
Hi Mariano,
I have such a list in my blog:
http://cakebaker.42dh.com/cakephp-resources
--
Daniel Hofstetter
http://cakebaker.42dh.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to t
My fellow bakers,
Does anyone hold a list of CakePHP related blogs? We should build something
like this and possibly include it on the bakery, what do you think?
-MI
---
Remember, smart coders answer ten questions for eve
On Dec 19, 12:44 pm, "Jon Bennett" <[EMAIL PROTECTED]> wrote:
> Anyone has suggestions for this on? I'm having similar problems.hmm, I don't
think you can with a vanilla HABTM, you need to fake it
by creating a hasMany and belongsTo association with a JoinTable
model, check out:
http://www.thi
75 matches
Mail list logo