Re: Thank You for CakePHP

2007-03-16 Thread GreyCells
> It's been said before, but not nearly > enough: Thanks to all the developers of CakePHP, I greatly appreciate > your efforts, and will wait patiently new things to come out. Until > then, I will live inhttp://api.cakephp.org/and learn as much as I > can, and contribute where I can. I hope the co

Re: Hello, World in CakePHP

2007-03-16 Thread gwoo
you are trying to access the file directly. You url should be something like http://localhost/cake/hello This assumes that you have mod_rewrite working. Otherwise you can uncomment BASE_URL around line 40 in /app/config/ core.php then access like http://localhost/cake/index.php/hello --~--~-

Re: afterFind model problem

2007-03-16 Thread stevenoone
And it just keeps getting worse... help please. $val) { if($_SERVER['REQUEST_URI'] == '/employees/'|$_SERVER['REQUEST_URI'] == '/employees/index') { } else { $results[$key]['Employee']['name_ext'] = $val['Employee']['name'] . ', ' . $val['Employee']['extension']; } } return ($results); } }

Re: afterFind model problem

2007-03-16 Thread stevenoone
Fixed with this, but my god it's ugly. $val) { if($_SERVER['REQUEST_URI'] == '/employees/') { } else { $results[$key]['Employee']['name_ext'] = $val['Employee']['name'] . ', ' . $val['Employee']['extension']; } } return ($results); } } ?> --~--~-~--~~~---~--~~ Y

afterFind model problem

2007-03-16 Thread stevenoone
I'm trying to combine two fields (name & extension) for display in a computer inventory list. This works when I view my index of computers, but throws an error when i view the index of employees. I'm using this code in my employee model: $val) { $results[$key]['Employee']['name_ext'] = $val['Emp

Re: Hello, World in CakePHP

2007-03-16 Thread Saganxis
Please i need help I 'm new at cake, but i've been reading a lot of this framework. But...i cannot even run the "Hello word" example. My environment is CakePHP 1.1.13.4450, PHP 5. I've red the installation notes at the home site but i can't make it work. I tryed the Heeloo word example and wh

Re: Thank You for CakePHP

2007-03-16 Thread [EMAIL PROTECTED]
I would like to also add my thanks to all those who worked hard developing Cake. It's the best framework I had the chance to work with in my 10 years of web development. It's an amazing system with a vibrant community. --~--~-~--~~~---~--~~ You received this messa

Thank You for CakePHP

2007-03-16 Thread BlenderStyle
I've been reading discussions here for awhile now, since I started using Cake about nine months ago, and generally speaking, people are helping each other which is really awesome. The community is very important. However, as I search for discussions about Cake 1.2, I've seen a lot of people compla

Query Caching Using query($sql) Breaks getNumRows()

2007-03-16 Thread ClockHistory
I am using Cakephp 1.1.11.4064 and a Postgresql database. I was having trouble in my application where the value returned from getNumRows() was incorrect in certain places. The problem turned out to be Cake's query caching. Example code $sql_1 = "sql statement 1;"; $parent_result_1 = $this->qu

Query Caching Using query($sql) Breaks getNumRows()

2007-03-16 Thread ClockHistory
I am using Cakephp 1.1.11.4064 and a Postgresql database. I was having trouble in my application where the value returned from getNumRows() was incorrect in certain places. The problem turned out to be Cake's query caching. Example code: $sql_1 = "sql statement 1;"; $parent_result = $this->quer

Re: Code coloring ctp files in Dreamweaver 8 [Like php file]

2007-03-16 Thread ski.nalicio.us
Excellent, thanks for this. I had .thtml files editable by DW but with no code highlighting. This makes coding views a lot more pleasant. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post t

Re: Hiding direct access to views

2007-03-16 Thread Langdon Stevenson
Hi ski. > OK, I currently have this in the relevant controller method: > > if ($this->Session->read('user_id') == NULL) $this->redirect('/'); > > The problem here is if they have already created a session (in the > manner I want them too), the required values are stored there and so > they can

Re: Hiding direct access to views

2007-03-16 Thread ski.nalicio.us
OK, I currently have this in the relevant controller method: if ($this->Session->read('user_id') == NULL) $this->redirect('/'); The problem here is if they have already created a session (in the manner I want them too), the required values are stored there and so they can then get a direct hit o

Hiding direct access to views

2007-03-16 Thread ski.nalicio.us
I have build a series of forms that could be termed as a wizard of sorts. Using AJAX calls the user is directed onto view after view, each containing a form. Can anyone suggest a way of preventing direct access to the proceeding views? I am writing values to the session for each step so I can ch

Re: Wiki content Balery Cakephp

2007-03-16 Thread Raimon Esteve
> > PS: Since you seem to be a Spanish speaking baker, there's also a google > group in Spanish: > > http://groups.google.com/group/cakephp-es > Ei! thanks! Very nice for my language ;) --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

Re: Many Controllers - one view

2007-03-16 Thread jitka
in any controller's method: $this->viewPath = 'common'; $this->render('some_view'); //will force cake to look for view some_view.thtml in directory app/ views/common. $this->viewPath = 'common'; $this->action = 'some_view'; //same as above but without manuall call of render() Is that what You w

RE: Wiki content Balery Cakephp

2007-03-16 Thread Mariano Iglesias
Documentation and examples are everywhere: http://manual.cakephp.org http://bakery.cakephp.org Are good places to start, particularly when wiki content has been deprecated for some time now. PS: Since you seem to be a Spani

Re: Hello, World in CakePHP

2007-03-16 Thread peterhf
Thanks one and all for the suggestions! I'm going to give the blog tutorial a try, wish me luck! Regards, Peter - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email

Re: Wiki content Balery Cakephp

2007-03-16 Thread Raimon Esteve
2007/3/16, Mariano Iglesias <[EMAIL PROTECTED]>: > > Are you asking about Bakery source code or old wiki content? > mmm... old wiki content? I find de documentation and examples of cakephp thanks --~--~-~--~~~---~--~~ You received this message because you are sub

Class dependence and overriding Methods to do garbage collection on files

2007-03-16 Thread Joshua McFarren
Let me preface this by saying that I'm pretty new to cakePHP and PHP for that matter. My background is in PERL and cakePHP lewered me over-- but thats neither here nor there. I'm writing an application for a real estate broker that primarily stores and retreives information about houses for sale

Re: Many Controllers - one view

2007-03-16 Thread Dominik Schwind
On Mar 16, 4:55 pm, "Jon Bennett" <[EMAIL PROTECTED]> wrote: > > your workaround looks like it breaks some core functionality, > specifically being able to nest sub-view folders within views, eg: > > $this->render('news/ajax/search'); > > that would look for /views/news/ajax/search.thtml > > I wo

Re: Ajax editor() and wysiwyg editor

2007-03-16 Thread mac joost
Not exactly an answer, but http://bakery.cakephp.org/articles/view/60 has an instruction on using TinyMCE in Cake. On Mar 16, 5:07 pm, "Cavallo" <[EMAIL PROTECTED]> wrote: > Hi > > Is possible to use in $ajax->editor() a wysiwyg (tinymce, FCK,...) ? > And if it is then how ? It would be realy nic

RE: Wiki content Balery Cakephp

2007-03-16 Thread Mariano Iglesias
Are you asking about Bakery source code or old wiki content? -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog: http://www.Mari

Wiki content Balery Cakephp

2007-03-16 Thread Raimon Esteve
Hello Somebody knows in where I can find the documentation of Bakery Cakephp? It is downloable? http://bakery.cakephp.org/wiki/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group,

Re: Using multiple databases with Cake

2007-03-16 Thread nateklaiber
Nate, Thanks for the code sample. I am glad I was wrong in this instance, this proves to be very helpful. I apologize for not trying the earlier example - not sure why I bypassed it last time I read this thread. Peace, Nate On Mar 16, 12:46 pm, "nate" <[EMAIL PROTECTED]> wrote: > Actually, if y

Re: Hello, World in CakePHP

2007-03-16 Thread Falagar
Hi, the hello world example is probably easier to if if you just create your 'hello' view in /app/views/pages/home.thtml (for 1.1 for 1.2 hello.ctp). and then you call: http://192.168.2.3/cake/app/pages/hello. But Chris is right of course, you can also just follow the messages, they will lead

Re: Hello, World in CakePHP

2007-03-16 Thread Raimon Esteve
2007/3/16, peterhf <[EMAIL PROTECTED]>: > When I enter http://192.168.2.3/cake/app/views/hello alert the url! http://192.168.2.3/cake/hello Print in screen: "Hello word!" See blog documentation ;) --~--~-~--~~~---~--~~ You received this message because you are

Re: Hello, World in CakePHP

2007-03-16 Thread Chris Hartjes
On 3/16/07, peterhf <[EMAIL PROTECTED]> wrote: > If the above file is created another message appears chasing after > some other file! > I've found that the error messages that Cake spits out in debug mode are the best way to learn how to actually put together a Cake app. Those errors tell you wh

Re: Hello, World in CakePHP

2007-03-16 Thread Sam Sherlock
Have you tried the blog tutorial? http://manual.cakephp.org/appendix/blog_tutorial also this ajax tutorial is good http://grahambird.co.uk/cake/tutorials/ajax.php On 16/03/07, peterhf <[EMAIL PROTECTED]> wrote: > > > I am unable to get even the simplest tutorial to work! Not even > "Hello, World"

Hello, World in CakePHP

2007-03-16 Thread peterhf
I am unable to get even the simplest tutorial to work! Not even "Hello, World"! http://www.nospace.net/index.php?option=com_content&task=view&id=64&Itemid=36&lang=en My environment is CakePHP 1.1.13.4450, PHP 4.4.4 on an iMac OS 10.4.8. The Cake framework is located in ... /WebServer/Documents/c

Re: R: savefield woes

2007-03-16 Thread djiize
there is a queryCache feature On 16 mar, 17:34, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Guys I already tried those changes, whether I add $this->Project->id > and $this->Project->read(null,$id) , still have the same problem > > On Mar 16, 6:55 am, "GMail" <[EMAIL PROTECTED]> wrote: > > >

Re: 1.2 Changes to $form->create()

2007-03-16 Thread GreyCells
Nate I dug a little deeper on the notices - again, not raising a ticket because this relates to checkboxes and a notice from HtmlHelper (which I guess will move to FormHelper at some point). Currently: $form->create('User'); $form->input('my_checkbox'); renders OK, but $form->create('User'); $

Re: dAuth: Login form on all pages

2007-03-16 Thread Michael Tuzi
I get the same error as Hubbo. I'm new to this, and I don't see how the controller gets the component, unless the controller is supposed to call the components start method. I modified the listed code in my app_controller file as follows: function beforeFilter() { $error = '';

Re: ODBC support

2007-03-16 Thread nate
Hey Jon, the native ODBC driver is still experimental... at best. It is recommended that you use the ADOdb driver for ODBC. On Mar 16, 12:28 pm, "jon" <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying now to use ODBC in CakePHP. When I generated the Model, I > got always some warnings form odbc fu

Re: Using multiple databases with Cake

2007-03-16 Thread nate
Actually, if you looked, you'd see that Ryan Rose already posted a code sample, which, on review, seems to be perfectly valid and accurate. On Mar 16, 12:43 pm, "nate" <[EMAIL PROTECTED]> wrote: > (these code samples demonstrate the *correct* way to do it, and are > 1.1 and 1.2 compatible): > > /

Re: Using multiple databases with Cake

2007-03-16 Thread nate
(these code samples demonstrate the *correct* way to do it, and are 1.1 and 1.2 compatible): // database.php: var $default = array( 'driver'=> 'mysql', 'persistent'=> false, 'connect'

Ajax editor() and wysiwyg editor

2007-03-16 Thread Cavallo
Hi Is possible to use in $ajax->editor() a wysiwyg (tinymce, FCK,...) ? And if it is then how ? It would be realy nice if this would be possible. Thanks Regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cak

ODBC support

2007-03-16 Thread jon
Hi, I'm trying now to use ODBC in CakePHP. When I generated the Model, I got always some warnings form odbc function. Does CakePHP support already ODBC ? FYI: I'm using Adabas D. Jon --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: R: savefield woes

2007-03-16 Thread [EMAIL PROTECTED]
Guys I already tried those changes, whether I add $this->Project->id and $this->Project->read(null,$id) , still have the same problem On Mar 16, 6:55 am, "GMail" <[EMAIL PROTECTED]> wrote: > I think you have a typo > > function admin_toggleactive($id = null){ > > if (!$id)

Re: newbie problem cakePHP/Ajax

2007-03-16 Thread Bart op de grote markt
> Hi. > > Not sure if you managed to fix this problem yet, but what I found was > that I needed to add the following line after the link to > scriptaculous: > link('controls.js') ?> > > After this, all the javascript errors just melted away and it all worked. > > Mike. Hey thanks for that solutio

Re: Bake.php Broken? Or am I doing something wrong?

2007-03-16 Thread rtconner
Do a search of this group, I had the same problem. Pretty much downloading the latest nightly build fixed it for me. On Mar 16, 9:12 am, "Kick The Donkey" <[EMAIL PROTECTED]> wrote: > djiize , > > Nope. That didn't work. Same errors. > > On Mar 16, 8:53 am, "djiize" <[EMAIL PROTECTED]> wrote: >

Re: Using multiple databases with Cake

2007-03-16 Thread rtconner
I second nateklaiber. I would like to see some code examples also. The only way I've managed to do what you describe is to use getDataSource() and do it manually. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake

Re: Setting view variables from pages_controller??

2007-03-16 Thread rtconner
as far as I know... you've got it 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 unsubscribe from this group, send email to

Re: AJAX - Possible to update DB with textarea content from the textarea onblur()??

2007-03-16 Thread bernardo
It would be helpful if you can give more details of where exactly are you having problems: can you capture the event? can you make the ajax request and send the data to the controller? can you save the data? A straightforward way could be adding this to your view: codeBlock(<< Note that this se

Re: Many Controllers - one view

2007-03-16 Thread Jon Bennett
> Thanks. It wasn't quite the way it works, but I found this workaround: > > $this->render("controller/list"); > > doesn't work, > > $this->render("../controller/list"); > > works, but is quite ugly. So I added a function to app_controller.php: > > function renderView($viewname) { > $vex =

Setting view variables from pages_controller??

2007-03-16 Thread [EMAIL PROTECTED]
Hi all, I have setup a pages_controller.php with the following function to call the static homepage (home.thtml): function home() { $this->set('searchElement', $this->requestAction('/docs/ search', array('return'))); $this->display(); } However on home.thtml, it says the the

Re: 1.2 Changes to $form->create()

2007-03-16 Thread GreyCells
Sorry, that should've been "..'admin' has moved /from/ the middle of the URL..." On Mar 16, 3:20 pm, "GreyCells" <[EMAIL PROTECTED]> wrote: > Thanks Nate > > I originally thought that 'url' replaced action, but couldn't get it > to work that way in practice, e.g.; > > $form->create('Model', arra

Re: 1.2 Changes to $form->create()

2007-03-16 Thread GreyCells
Thanks Nate I originally thought that 'url' replaced action, but couldn't get it to work that way in practice, e.g.; $form->create('Model', array('url'=>'/'.$myKey.'/admin/controller/ action/'.$myId)) translates to: Note the 'admin' has moved to the middle of the URL (which breaks my routes

How correctly use SQL queries instead of model build-in functions like find*()?

2007-03-16 Thread Pento
There are tables like "object" id | company | name | parent_id ... "object_relations" first_id | second_id ... "event" id | title | desc ... "event_effected_objects" event_id | obj_id ... And in code I need sufficiently difficult SQL queries with 1-3 JOIN operations. So how it can correctly be

Re: Many Controllers - one view

2007-03-16 Thread Dominik Schwind
Thanks. It wasn't quite the way it works, but I found this workaround: $this->render("controller/list"); doesn't work, $this->render("../controller/list"); works, but is quite ugly. So I added a function to app_controller.php: function renderView($viewname) { $vex = explode("/",$viewn

Re: Bake.php Broken? Or am I doing something wrong?

2007-03-16 Thread Kick The Donkey
djiize , Nope. That didn't work. Same errors. On Mar 16, 8:53 am, "djiize" <[EMAIL PROTECTED]> wrote: > maybe try to go in the cake core folder > cd /var/www/html/cake/cake > and then > php ./scripts/bake.php -project tbd > > On 16 mar, 12:35, "Kick The Donkey" <[EMAIL PROTECTED]> wrote: > > >

Re: Many Controllers - one view

2007-03-16 Thread aerosmith
I don't know if you have tried this but I think You can create an Element Instead of a View. Regards On Mar 16, 5:17 pm, "Dominik Schwind" <[EMAIL PROTECTED]> wrote: > Hi everybody, > > I tried to find the answer to that, but somehow I can't seem to find > an elegant solution for my problem.

Re: Many Controllers - one view

2007-03-16 Thread djiize
in the same controller, at the end of each action, you can do: $this->render('list') where list is a view of the controller I don't know if it works with a view from another controller, maybe $this->render('controller/list') ? If you try, please post your results for the community ;) On 16 mar,

Re: unable to use own helper: Undefined property

2007-03-16 Thread djiize
helpers are available in views and directly by $helper in your case: $validform (not the lower case 1st letter) On 16 mar, 14:27, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > i wrote my own helper and try to use it in an ajax function. but then > appears an error: > > Undefined proper

Re: 1.2 Changes to $form->create()

2007-03-16 Thread nate
Oh, to further clarify, you don't need to specify *both* 'action' and 'url'. Just use 'action' if you are only specifying a controller action, and going with the default options for the rest of the URL (i.e. controller). Use 'url' if you are specifying a completely custom URL, i.e. '/your/form/a

Re: 1.2 Changes to $form->create()

2007-03-16 Thread nate
This change was made in the interest of simplifying the notation if you only wish to set the controller action which the form will POST to. So now 'action' literally means action, rather than the action attribute of the tag. On Mar 16, 10:23 am, "GreyCells" <[EMAIL PROTECTED]> wrote: > For thos

Many Controllers - one view

2007-03-16 Thread Dominik Schwind
Hi everybody, I tried to find the answer to that, but somehow I can't seem to find an elegant solution for my problem. I have a view, for simplicity's sake let's say it looks like that: Now I have many controllers/actions that have no output except that very simple list. Do I really need t

1.2 Changes to $form->create()

2007-03-16 Thread GreyCells
For those of us that are using/testing 1.2 bleeding edge, where you used to specify: $form->create('MyModel', array('action'=>'/your/form/action')); You now need to specify: $form->create('MyModel', array('action'=>'/your/form/action', 'url'=>'/ your/form/action')); to stop your custom action

Re: my .htacces file

2007-03-16 Thread Ámon Tamás
Where is your app? In the cake/app? (My english is poor too :) tekcorap írta: > Hi masters, > > I have one question. my cake directory is under my root directory > ( e.g. www.example.com/cake). and my .htaccess is > > >RewriteEngine On >RewriteRule^$ app/webroot/[L] >Rewri

Re: view saved post after ajax form submit

2007-03-16 Thread gerbenzomp
I've also tried requestAction, but that doen't seem to work either. On 16 mrt, 14:42, "gerbenzomp" <[EMAIL PROTECTED]> wrote: > I've created an ajax form, which submits its data to /posts/add/. > > After that I want the ajax call to update a div, showing the view of > the post the user just submi

Re: Form validation with Ajax in cakePHP

2007-03-16 Thread [EMAIL PROTECTED]
I found the error! In the JavaScript of the Form // app/views/users/addusername.thtml

my .htacces file

2007-03-16 Thread tekcorap
Hi masters, I have one question. my cake directory is under my root directory ( e.g. www.example.com/cake). and my .htaccess is RewriteEngine On RewriteRule^$ app/webroot/[L] RewriteRule(.*) app/webroot/$1 [L] when I into my site (www.example.com/cake) I get this error;

unable to use own helper: Undefined property

2007-03-16 Thread [EMAIL PROTECTED]
Hi, i wrote my own helper and try to use it in an ajax function. but then appears an error: Undefined property: UsersController::$Validform My Helper File: validform.php Class Name : ValidformHelper I include the helper with: var $helpers = array('Html', 'Javascript', 'Ajax', 'Validform', 'Se

Re: Autocomplete on 1.1.13

2007-03-16 Thread Mike Griffin
On 3/16/07, fredBH <[EMAIL PROTECTED]> wrote: > > can you post the code ? Sure, here is the sutocomplete.thtml file. It returns the username and then the full name in brackets The form is in send.thtml autocomplete('Message/user', '/Messages/autocomplete', array('size' => 40)); ?> texta

Re: Bake.php Broken? Or am I doing something wrong?

2007-03-16 Thread Kick The Donkey
Okay, I did some more digging. Using this latest stable release of cake (1.1.13.4450). In my /var/www/html/cake/templates/ directory, there is: skel/ views/ inside views, there's 'home.thtml'. If I move that to ./skel/views/ pages/, I don't get the errors about home.thtml, but I still got the

Re: Using multiple databases with Cake

2007-03-16 Thread nateklaiber
Grant, I would be interested in finding out how you accomplish this (not to hijack the topic)? Any code examples? I don't doubt you are right - I just haven't found a solution that would let me manage the application between 2 databases. For instance, in a recent application (that already had dat

view saved post after ajax form submit

2007-03-16 Thread gerbenzomp
I've created an ajax form, which submits its data to /posts/add/. After that I want the ajax call to update a div, showing the view of the post the user just submitted. The div to be updated should thus contain the following view: /posts/view/id I know how I can update the div to display any vi

Re: Using multiple databases with Cake

2007-03-16 Thread nate
Grant, this is a bug in the PHP/MySQL interface, but you only have to use different login credentials if you're using persistent connections. You can set 'persistent' => false in both connections to circumvent this. On Mar 15, 6:58 pm, "Grant Cox" <[EMAIL PROTECTED]> wrote: > Just to clarify, wh

Re: Bake.php Broken? Or am I doing something wrong?

2007-03-16 Thread djiize
maybe try to go in the cake core folder cd /var/www/html/cake/cake and then php ./scripts/bake.php -project tbd On 16 mar, 12:35, "Kick The Donkey" <[EMAIL PROTECTED]> wrote: > It seems that bake.php is broken in the latest release, as well as all > the nightly builds. Or, maybe I'm just doing s

Re: problems on updating 1.1.13 to 1.2.0 - help plz

2007-03-16 Thread fredBH
another thing that i think its stranger... If is use the $irregularPlural putting all of my models... it doesnt work to... like... I need pluralize the word " animal " that in my language should be " animais " but i get an error that Cake cant find the model " animai " What can be wrong ? Thx

Re: Autocomplete on 1.1.13

2007-03-16 Thread fredBH
can you post the code ? On 16 mar, 08:10, "Mike Griffin" <[EMAIL PROTECTED]> wrote: > Hi. > > I have the autocomplete function working properly and returning > results. I want it to show the username of a user but to return the > id of that user. > > Is there any way to do this? > I have tried

Re: AJAX - Possible to update DB with textarea content from the textarea onblur()??

2007-03-16 Thread Chris Hartjes
On 3/16/07, quincy <[EMAIL PROTECTED]> wrote: > > I take it no-one has any ideas about this then? I am sure there must > be a way of saving a textareas contents to a DB on the "onblur()" > action somehow. > > Any pointers of anything related would be helpful, we're totally stuck > on this one!! >

Re: email addresses in sql queries..

2007-03-16 Thread pigeon
it is as simple as $this->findCount("email = \"$email\""); $email being a valid email address eg [EMAIL PROTECTED] thanks andrew On Mar 15, 11:54 pm, "Grant Cox" <[EMAIL PROTECTED]> wrote: > Paste your query code. For Cake to change your '[EMAIL PROTECTED]' into > 'user `domain`.`tld`' you wi

Bake.php Broken? Or am I doing something wrong?

2007-03-16 Thread Kick The Donkey
It seems that bake.php is broken in the latest release, as well as all the nightly builds. Or, maybe I'm just doing something wrong. Here's the output I'm seeing when I run the following command (trying to bake a new project):

R: savefield woes

2007-03-16 Thread GMail
I think you have a typo function admin_toggleactive($id = null){ if (!$id) return; $this->layout = 'ajax'; $this->autoRender = false; $this->Project->id = $id; // And not $this->id = $id $project = $this->

Re: AJAX - Possible to update DB with textarea content from the textarea onblur()??

2007-03-16 Thread quincy
I take it no-one has any ideas about this then? I am sure there must be a way of saving a textareas contents to a DB on the "onblur()" action somehow. Any pointers of anything related would be helpful, we're totally stuck on this one!! On 13 Mar, 10:53, "quincy" <[EMAIL PROTECTED]> wrote: > I ha

Autocomplete on 1.1.13

2007-03-16 Thread Mike Griffin
Hi. I have the autocomplete function working properly and returning results. I want it to show the username of a user but to return the id of that user. Is there any way to do this? I have tried using the "with" option, but that didnt seem to do anything at all. Thanks, Mike. --~--~-~

Re: Cake Extension and Application Repository

2007-03-16 Thread anselm
> In the same way as PEAR has extended the PHP language the Cake EAR > would do the same for Cake. It would be structure and controlled. In > this way we prevent repetition and confusion. I think PEAR is terrible. I've written apps in the past building a framework on top of PEAR and I deeply reg

Re: Help with ACL and/or tree behavior

2007-03-16 Thread Stefan
I found something but I'm not sure if it's correct: $aro = $this->Acl->Aro; $tree = $aro->behaviors["Tree"]; for a parent: $tree->setup($aro,array("parent" => "Aro.id")); // just "id" doesn't work $aro- >save(array('model'=>'Roles','foreign_key'=>'0','alias'=>'Parent')); for children: $tre

Re: How to upload file or image (not BOLB) in cakephp also I have proble about enctype="multipart/form-data"

2007-03-16 Thread Kathrin
I don't understand your problem.. may I can help? I save the picture in a directory and the name of pictures in the database... formular view: file('File');?> controller: if (is_uploaded_file($this->data['Explorer']['File']['tmp_name'])) { // T

Re: Best Practices: Toggle Item In Element

2007-03-16 Thread Mika
One mistake - isset() also returns false if the variable is set to null. --~--~-~--~~~---~--~~ 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 unsubscrib

Re: Best Practices: Toggle Item In Element

2007-03-16 Thread Mika
Check the example at http://www.php.net/manual/en/function.empty.php#id7108863 Basically isset() checks whether a variable has been set at all, no matter the value, while empty() considers the following all to mean "empty": "" (an empty string) 0 (0 as an integer) "0" (0 as a string) NULL FALSE a

Re: savefield woes

2007-03-16 Thread djiize
$this->Project->read(null, $id); On 16 mar, 07:44, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Quick question: > > I have this function to toggle an 'active' field un a project model, > > function admin_toggleactive($id = null){ > > $this->layout = 'ajax'; >

Re: multilingual cakephp website

2007-03-16 Thread [EMAIL PROTECTED]
Hello jitka. Thank you a lot. Yesterday I found solution, my routes.php loks like: $Route->connect('/', array('controller' => 'about', 'action' => 'ru', 'about')); $Route->connect('/about/*', array('controller' => 'about', 'action' => 'ru')); $Route->connect('/en/*', array('controller' => 'about',

Re: newbie problem cakePHP/Ajax

2007-03-16 Thread Mike Griffin
On 3/5/07, Bart op de grote markt <[EMAIL PROTECTED]> wrote: > I checked and in the taskscontroller I find: > var $helpers = array('Html', 'Javascript', 'Ajax'); > So it must be another problem, though the $html variable seems to > work... Hi. Not sure if you managed to fix this problem yet, but