New to PHP

2007-01-07 Thread AndreSantos
Hello guys, I programmed in php for over 2 years, but had to stop due to some problems, stoped for over a year. Now that im finally starting back, i came across cake php, and i want to know if its a good idea to use it, without a good knowledg in php. I would start from the beggining, doing

Re: I Just Installed Cake and then . . .

2007-01-07 Thread PHPBABY3
Larry E. Masters aka PhpNut wrote: Peter, A little advice, if you continue to send private emails to members on the list without their consent, I am going to ban you from this list. Excuse me?? It's bad enough when some feeble-minded people ridicule others who know less than they do about a

Re: New to PHP

2007-01-07 Thread nate
First of all, no, you don't *have* to use Cake (or even PHP) just because you install one or both of them on your server. Your best bet, before diving right into Cake, is to find a good intro book to PHP programming. Here's a good place to start: http://www.oreilly.com/pub/topic/php

Re: using OpenLayers (like an external library) in my cake application

2007-01-07 Thread CraZyLeGs
Ain't openLayers a javascript library ? Might be more logic to put it in webroot/js, include the Javascript helper in your helper, and abstract the calls or whatever you want to do. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: I Just Installed Cake and then . . .

2007-01-07 Thread Larry E. Masters aka PhpNut
On 1/6/07, PHPBABY3 [EMAIL PROTECTED] wrote: Excuse me?? It's bad enough when some feeble-minded people ridicule others who know less than they do about a particular subject (a la Nick the Computer Guy on Saturday Night Live), but now someone actually threatens someone for asking for help -

Re: I Just Installed Cake and then . . .

2007-01-07 Thread Dr. Tarique Sani
On 1/7/07, PHPBABY3 [EMAIL PROTECTED] wrote: Larry E. Masters aka PhpNut wrote: Peter, A little advice, if you continue to send private emails to members on the list without their consent, I am going to ban you from this list. Excuse me?? It's bad enough when some feeble-minded people

Re: Rock the vote!

2007-01-07 Thread CraZyLeGs
80.1% :) --~--~-~--~~~---~--~~ 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

Re: I Just Installed Cake and then . . .

2007-01-07 Thread Dr. Tarique Sani
On 1/7/07, Larry E. Masters aka PhpNut [EMAIL PROTECTED] wrote: To everyone else reading this thread, I really am a nice guy, really I am. Hey I don't care about that one bit! You just keep writing code for CakePHP ;) T -- = PHP

Re: ER Tools

2007-01-07 Thread CraZyLeGs
Oh yeah! Larry E. Masters aka PhpNut wrote: On 1/5/07, CraZyLeGs [EMAIL PROTECTED] wrote: Where is that Forum diagram again.. This one? http://phpnut.cakephp.org/img/roundtable.png http://phpnut.cakephp.org/img/roundtable.pdf -- /** * @author Larry E. Masters * @var string $userName *

Re: Tutorial request

2007-01-07 Thread CraZyLeGs
You have the manual, if you think of it as a tutorial, it's pretty much like building an application, http://manual.cakephp.org/ If you want real word apps, try cakeforge, it has some projects, rdBloggery and bakesale as an example. download, and study the code. You might want to look at the

Bakery Source

2007-01-07 Thread Preloader
Hello bakers, I'm wondering if there's a possibility to download the bakery source, for learning purposes. I didn't find any bakery downloads in cakeforge. Greets, Christoph :-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Bakery Source

2007-01-07 Thread Dr. Tarique Sani
On 1/7/07, Preloader [EMAIL PROTECTED] wrote: Hello bakers, I'm wondering if there's a possibility to download the bakery source, for learning purposes. I didn't find any bakery downloads in cakeforge. No downloads but you can check it out from the SVN and install HTH Tarique --

Re: Bakery Source

2007-01-07 Thread Felix Geisendörfer
No downloads but you can check it out from the SVN and install https://svn.cakeforge.org/svn/bakery/trunk/bakery is where you can download it ; ). -- Felix Geisendörfer aka the_undefined -- http://www.thinkingphp.org http://www.fg-webdesign.de Dr. Tarique Sani wrote:

Re: Bakery Source

2007-01-07 Thread Preloader
Ahh, OK :-) I overlooked this, thank you very much! Christoph --~--~-~--~~~---~--~~ 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

controller calling an other controller with an array as parameter

2007-01-07 Thread [EMAIL PROTECTED]
I would like to save my date with this method: function saveDocument($document){ if ($this-Document-save($document)) { $this-flash('Das Dokument wurde gespeichert.','/documents/view/'.$this-Document-getLastInsertId()); } } but i don't know, how can i calling this method from

Re: Rock the vote!

2007-01-07 Thread georgeL
this post seems to rock their vote .. thanks for the hint nate. 81.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

Re: dateTimeOptionTag Saving Error in Cake 1.1.10

2007-01-07 Thread Samuel DeVore
Try using $this-cleanupFields('ModelName'); in your controller before doing the save Sam D On 1/7/07, ERic ZoU [EMAIL PROTECTED] wrote: Hi, everyone, As the title, I cant save the $dateTimeOptionTag for my edit function. In my add fuction, it works great. I can add it and save it into

Re: Apache configuration

2007-01-07 Thread ms
Trainling slash isn't the problem. Looking at apache's error_log it seems the request to 192.168.4.6/prova/users ir redirected to the document root and from there to /var/www etc... But I found a way out: I created a virtual host listening on port 81 with the document root set to

anything similar to acts_as_tree in Rails

2007-01-07 Thread river_jetties
I'm thinking of doing a project in cake and would like to know if there is a model convention similar to 'acts_as_tree' in rails. -j --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to

Re: anything similar to acts_as_tree in Rails

2007-01-07 Thread Felix Geisendörfer
I'm thinking of doing a project in cake and would like to know if there is a model convention similar to 'acts_as_tree' in rails. CakePHP 1.2 has a similar functionality named Behaviors. However it's not officially been released yet (only a developer release). -- Felix Geisendörfer aka

Re: anything similar to acts_as_tree in Rails

2007-01-07 Thread Olivier Percebois-Garve
Would it make sense to go after rails's documentation to get an idea of how these new things in 1.2 are functioning ? olivvv Felix Geisendörfer wrote: I'm thinking of doing a project in cake and would like to know if there is a model convention similar to 'acts_as_tree' in rails. CakePHP 1.2

Re: Rock the vote!

2007-01-07 Thread [EMAIL PROTECTED]
the results give an unrealistic impression. Most, if not all the other frameworks don't have posts on their forums stating go vote on us. Once this gets spread our percentage will go down ;-) --~--~-~--~~~---~--~~ You received this message because you are

Re: Rock the vote!

2007-01-07 Thread Dinh
+1 for Cake but this poll is so... 2004. What time is it now? Phrame, Mojavi, Studs oh my god --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: anything similar to acts_as_tree in Rails

2007-01-07 Thread Felix Geisendörfer
Would it make sense to go after rails's documentation to get an idea of how these new things in 1.2 are functioning ? Probably not. But maybe I can get you some sample code at some point if I find it. -- Felix Geisendörfer aka the_undefined --

Re: anything similar to acts_as_tree in Rails

2007-01-07 Thread Felix Geisendörfer
Cool. behaviors and especially act_as_tree look interesting but I still don't grasp it really. Well to make a long story short, behaviors basically allow you to add new *methods* to a Model that has a certain behavior attached to it, as well as getting all the beforeFind/afterFind/etc.

Re: Need a little suggestion how to get my javascript file invoked

2007-01-07 Thread Mikee Freedom
morning mate, I've included the Js Calendar code successfully in a few applications. You might be able to use the method I have employed. 1. Structure - Put the `jscalendar` dir in your `vendors` directory (at the same level as your Cake dir). - Put the `jscalendar` dir in your `js` directory

being able to set the base root to an action / controller with parameter

2007-01-07 Thread river_jetties
I see how the default route is setup and how default actions get mapped in this manner: http://www.domain.com/cake/controller/action/$var1 assuming that cake is set up in the development environment. What I'd like to be able to do is have: http://www.domain/com/cake/$var1 map to a controller

Re: How to use Vender Code

2007-01-07 Thread Chris Hartjes
On 1/7/07, Sam Sherlock [EMAIL PROTECTED] wrote: I am trying to use the browser detection script Sniffer included vendor code the comments in code advise the following '$sniff = new Sniffer();' but does not specifiy how to include the code nor where to include it. have tried: $vendors =

Gwt + CakePhp

2007-01-07 Thread fixfax
Hi! Im new in the world of CakePhp. I want to create a web with CakePhp and Gwt. I configure CakePhp and i do a lot of examples to understand it. On the other hand, i run some examples about GWT. One of this is the example of Angel, http://angel.hurtado.googlepages.com/tutorialgwt2 Now i

Re: beforeSave return false, what with afterFind...?!

2007-01-07 Thread Seb
Hey Nate, Thanks for your time! What I'm trying to do evolves around virtual fields. For instance in the user model, the afterFind() method creates 2 virtual fields, one named name_lf and containing a user full name in 'lastname, firstname' format. This works like a charm. Now if I edit a

Re: Bakery Source

2007-01-07 Thread Ryan Snowden (Beijing)
SQL is in app\config\bakery.sql On Jan 8, 2007, at 4:26 AM, Cadu wrote: Hi, I downloaded the bakery.xml schema from the svn repository, but I couldn't manage to export the SQL create script in DBDesigner (I'm using version 4.0.5.6 Beta). It says: That are circular relations. Which version

Re: controller calling an other controller with an array as parameter

2007-01-07 Thread TJSingleton
Try requestAction($url, $extra) From the Manual: This function calls a controller's action from any location and returns the rendered view. The $url is a Cake URL (/controllername/actionname/params). If the $extra array includes a 'return' key, AutoRender is automatically set to true for the

Re: Bakery Source

2007-01-07 Thread Cadu
The file is on app\config\sql\bakery.sql Thank you Ryan! Ryan Snowden (Beijing) escreveu: SQL is in app\config\bakery.sql On Jan 8, 2007, at 4:26 AM, Cadu wrote: Hi, I downloaded the bakery.xml schema from the svn repository, but I couldn't manage to export the SQL create script in

OT - Q for PHPNut on DBDesigner 4 - Was: ER Tools

2007-01-07 Thread Langdon Stevenson
Hi Larry This question is way off topic for the list so feel free to ignore/delete/reply off list. I would have asked it on the FabForce support forum, but is has been closed down due to attacks :-( I have also scoured Google without luck on this topic. I have hit a snag with DBDesigner

Re: OT - Q for PHPNut on DBDesigner 4 - Was: ER Tools

2007-01-07 Thread Larry E. Masters aka PhpNut
Langdon, Sure no problem... For example users table comments table. Create a 1:n association from users table to comments table. This will create a users_id in the comments table. Double click the link between them. The edit screen should allow you to change users_id to user_id. On 1/7/07,

Re: OT - Q for PHPNut on DBDesigner 4 - Was: ER Tools

2007-01-07 Thread Langdon Stevenson
Argh! I knew it had to be something simple ... I had forgotten about editing FK field names after much trouble with it renaming 'id' fields earlier. Thanks Larry, very much appreciated. Regards, Langdon Larry E. Masters aka PhpNut wrote: Langdon, Sure no problem... For example

Re: dateTimeOptionTag Saving Error in Cake 1.1.10

2007-01-07 Thread ERic ZoU
It is works. BUT, how come? Why should add this before saving? --~--~-~--~~~---~--~~ 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

Re: dateTimeOptionTag Saving Error in Cake 1.1.10

2007-01-07 Thread Samuel DeVore
it's what it is for ;) http://api.cakephp.org/class_controller.html#43aea5e84ef8550cf3ae8a97ca18ec1e I'm surprised it's not in the manual, so I entered a ticket in trac Sam D On 1/7/07, ERic ZoU [EMAIL PROTECTED] wrote: It is works. BUT, how come? Why should add this before saving?

custom query returns odd array

2007-01-07 Thread Zoltan
Hi, I'm running a custom query that adds up the total number of establishments (bars, stores, etc.) in a city and then order then my by this total: $aTopCitiesList = $this-query('SELECT `cities`.`id`, `cities`.`name`, count( `establishments`.`name` ) AS `total` FROM `cities`

How to make links between controllers

2007-01-07 Thread roby
Suppose I have these views: - http://localhost/users/index - http://localhost/mails/index And in users/index view, I want it have a link to mails/index. Does anyone know how to make it without append the http://; in $html-link? I've tried it with $html-link( 'Mail', 'mails/index' ); but it

Re: How to make links between controllers

2007-01-07 Thread Samuel DeVore
$html-link( 'Mail', '/mails/index' ); try with leading slash before mails On 1/7/07, roby [EMAIL PROTECTED] wrote: Suppose I have these views: - http://localhost/users/index - http://localhost/mails/index And in users/index view, I want it have a link to mails/index. Does anyone know how to

Re: How to make links between controllers

2007-01-07 Thread roby
Hurray... it works... 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

Problem with mod_rewrite

2007-01-07 Thread roby
I've put my web application on my univ's lab server and my page didn't load at all (even 1 page). I've been told from the admin that I can't use mod_rewrite in Apache configuration. So, I try follow the instruction in the manual: - Clear out the comment on core.php that looks like define

Re: lov.li - social network built on cake

2007-01-07 Thread Sebastian Macias
Thanks for the FLV tips Patrick :-) On Jan 5, 10:50 pm, Patrick Sullivan [EMAIL PROTECTED] wrote: Dallas. On 1/5/07, Tijs Teulings [EMAIL PROTECTED] wrote: p.s. which datacenter did you pick? The site is very responsive from europe... Tijs