Re: Does someone has example about cakephp !!

2006-12-20 Thread Samuel DeVore
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

Does someone has example about cakephp !!

2006-12-20 Thread eric
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!! --~--~-~--~~~-

Re: (Error rendering Element: pagination). What could it be?

2006-12-20 Thread Tazz
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

Re: CakePHP blogs

2006-12-20 Thread Dr. Tarique Sani
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

(Error rendering Element: pagination). What could it be?

2006-12-20 Thread Tazz
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

RE: Joining 2 tables - better practice?

2006-12-20 Thread Adrian Godong
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

Re: does cake not join tables when using hasMany?

2006-12-20 Thread [EMAIL PROTECTED]
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

Re: Mod_rewrite on Windows XP

2006-12-20 Thread Nimrod A. Abing
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'

Re: Joining 2 tables - better practice?

2006-12-20 Thread leamas
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

CakePHP goes crazy when zend.ze1_compatibility_mode is On

2006-12-20 Thread sawa
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

Re: Errors in the View

2006-12-20 Thread leamas
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:

Re: Looking for downloable doc

2006-12-20 Thread ReynierPM
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

RE: does cake not join tables when using hasMany?

2006-12-20 Thread Adrian Godong
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

Re: Finding out if an action is called through AJAX, or direct access

2006-12-20 Thread Ryan
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

RE: Finding out if an action is called through AJAX, or direct access

2006-12-20 Thread Mariano Iglesias
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 --

Re: problems installing on new server: 404 errors

2006-12-20 Thread Jose Cedeno
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

Re: Finding out if an action is called through AJAX, or direct access

2006-12-20 Thread Samuel DeVore
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

Finding out if an action is called through AJAX, or direct access

2006-12-20 Thread Mariano Iglesias
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()

Re: problems installing on new server: 404 errors

2006-12-20 Thread Dave
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

RE: Looking for downloable doc

2006-12-20 Thread Mariano Iglesias
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

Re: problems installing on new server: 404 errors

2006-12-20 Thread Dave
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

Re: Mod_rewrite on Windows XP

2006-12-20 Thread keymaster
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

Re: Definitive data cleansing methodology

2006-12-20 Thread [EMAIL PROTECTED]
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

Re: Looking for downloable doc

2006-12-20 Thread ReynierPM
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

does cake not join tables when using hasMany?

2006-12-20 Thread [EMAIL PROTECTED]
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

Re: problems installing on new server: 404 errors

2006-12-20 Thread devon
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.

othAuth Issue

2006-12-20 Thread devon
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

Re: problems installing on new server: 404 errors

2006-12-20 Thread Jose Cedeno
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

Re: problems installing on new server: 404 errors

2006-12-20 Thread Chris Hartjes
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

RE: Looking for downloable doc

2006-12-20 Thread Mariano Iglesias
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

Re: Definitive data cleansing methodology

2006-12-20 Thread Chris Hartjes
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

problems installing on new server: 404 errors

2006-12-20 Thread Dave
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

Definitive data cleansing methodology

2006-12-20 Thread [EMAIL PROTECTED]
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

Re: Setting Up Multiple Domains with One Cake

2006-12-20 Thread nate
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"

Setting Up Multiple Domains with One Cake

2006-12-20 Thread lo_fye
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

Re: Session->flash() and history.back

2006-12-20 Thread [EMAIL PROTECTED]
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

Re: Looking for downloable doc

2006-12-20 Thread ReynierPM
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

RE: Looking for downloable doc

2006-12-20 Thread Mariano Iglesias
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 ---

RE: Looking for downloable doc

2006-12-20 Thread Mariano Iglesias
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

Re: Looking for downloable doc

2006-12-20 Thread John David Anderson (_psychic_)
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

RE: Looking for downloable doc

2006-12-20 Thread Mariano Iglesias
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

Re: Looking for downloable doc

2006-12-20 Thread ReynierPM
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: >

Re: Looking for downloable doc

2006-12-20 Thread John David Anderson (_psychic_)
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

Looking for downloable doc

2006-12-20 Thread ReynierPM
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

observeField and select drop down problem

2006-12-20 Thread Sankaman2k
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

Re: Mod_rewrite on Windows XP

2006-12-20 Thread majna
...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

Re: Mod_rewrite on Windows XP

2006-12-20 Thread Nimrod A. Abing
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

Re: Populating Pulldowns in forms

2006-12-20 Thread [EMAIL PROTECTED]
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: >

Session->flash() and history.back

2006-12-20 Thread Martin
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),

RE: CakePHP blogs

2006-12-20 Thread Mariano Iglesias
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

RE: CakePHP blogs

2006-12-20 Thread Mariano Iglesias
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

Re: CakePHP blogs

2006-12-20 Thread Felix Geisendörfer
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

Re: CakePHP blogs

2006-12-20 Thread Felix Geisendörfer
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

RE: CakePHP blogs

2006-12-20 Thread Mariano Iglesias
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

RE: CakePHP blogs

2006-12-20 Thread Mariano Iglesias
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

Re: Filtering HABTM associations using columns in both models

2006-12-20 Thread Dr. Tarique Sani
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

Mod_rewrite on Windows XP

2006-12-20 Thread keymaster
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

Re: Ajax, controller and good practice

2006-12-20 Thread Christoph
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"

Re: Errors in the View

2006-12-20 Thread Samuel DeVore
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

Re: "ACL" for data

2006-12-20 Thread AD7six
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

Re: Filtering HABTM associations using columns in both models

2006-12-20 Thread Tijs Teulings
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

Re: Filtering HABTM associations using columns in both models

2006-12-20 Thread AD7six
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

Re: CakePHP blogs

2006-12-20 Thread anselm
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

"ACL" for data

2006-12-20 Thread Javier Ramirez Molina
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

Re: Filtering HABTM associations using columns in both models

2006-12-20 Thread Tijs Teulings
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

Re: Ajax, controller and good practice

2006-12-20 Thread Christoph
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

Re: Ajax, controller and good practice

2006-12-20 Thread purepear
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

Re: Filtering HABTM associations using columns in both models

2006-12-20 Thread Jon Bennett
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

Re: CakePHP blogs

2006-12-20 Thread Tijs Teulings
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

Re: CakePHP blogs

2006-12-20 Thread Dr. Tarique Sani
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

Re: How do i change default home page?

2006-12-20 Thread flipflops
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() {

Re: CakePHP blogs

2006-12-20 Thread Nimrod A. Abing
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

Re: CakePHP blogs

2006-12-20 Thread Daniel Hofstetter
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

CakePHP blogs

2006-12-20 Thread Mariano Iglesias
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

Re: Filtering HABTM associations using columns in both models

2006-12-20 Thread AD7six
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