Re: Global/Default Controller

2006-09-29 Thread John Zimmerman
On 9/29/06, Neves <[EMAIL PROTECTED]> wrote: My site has many static pages, that I don´t want to createmodel/controller for each one.How can I map to those pages and where there should be(view/pages/etc)?I want to keep using cakePHP friendly urls and put those static pages inside my default templat

Global/Default Controller

2006-09-29 Thread Neves
My site has many static pages, that I don´t want to create model/controller for each one. How can I map to those pages and where there should be (view/pages/etc)? I want to keep using cakePHP friendly urls and put those static pages inside my default template. --~--~-~--~~--

Re: CakePHP Manual rev 132 for CakePHP 1.1

2006-09-29 Thread Sergei
When will be CHM-format documentation updated? It isn't even finished.. --~--~-~--~~~---~--~~ 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

Re: Using login page as homepage

2006-09-29 Thread John Zimmerman
You can set this up by modifying the entries in /app/config/routes.phpIf you take a look at the entries there it should make sense about what you should do (there is an entry routing "/"). --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Debian Etch / Apache2 / PHP5 / + CakePHP

2006-09-29 Thread John Zimmerman
Does anyone have mod_rewrite working properly under Debian Etch Testing?I cannot get the directives in the .htaccess files to work properly.  I had everything working properly under Ubuntu 6.06, but decided to load Etch and am not sure if I am configuring something wrong or there is something wrong

Re: Restrictive Bakery Terms of Service

2006-09-29 Thread John Zimmerman
On 9/29/06, MJ Ray <[EMAIL PROTECTED]> wrote: If the foundation publishes a book of the Bakery without acknowledgingthe authorship and copyrights of any contributors, I think it's highlyprobable at least one of them would start legal proceedings.  I would, but I'm not contributing, thanks to this t

Model access to an unrelated model

2006-09-29 Thread hypercubed
If I have a model (say ModelA) and it has a relationship to another model (ModelB). I can access ModelB in ModelA by $this->ModelB. How can I associate ModelB without a relationship. For example. If i wanted to write a sting field to ModelB every time I save data to ModelA I can place $this->M

Using login page as homepage

2006-09-29 Thread kristian
Hi, I was playing around with the "Simple User Authentication" example found in the cake manual: http://manual.cakephp.org/appendix/simple_user_auth How would I go about using this as the very first page in my cakephp site? The example places it inside "views > users" and URL looks like this: h

Data structure question...

2006-09-29 Thread radioflyer
Hello, This is pretty basic I think. I have a one to one relationship between an 'Item' and an 'Image.' The images will be stored as BLOBs. I'm wondering if I should try to get away with making the Image attributes part of the Item Model. i.e.. image_size, image_type, image_name, image_data, are

Re: Overloadable helper

2006-09-29 Thread nate
You can grab the svn version from https://svn.cakephp.org/repo/branches/1.2.x.x/. Lot's of new features have been added already, including the Overloadable class. You can look at the Model class for a __call usage example. (It's actually called __call__ in the class). --~--~-~--~~

observeField ajax helper and Firefox

2006-09-29 Thread znaiman
Hi all, I've noticed a strange behavior in Firefox when using the observeField ajax helper in conjunction with form SELECT elements, and I'm hoping somebody has a solution. I'm using ajax->observeField to observe a form select element; according to the option that a user picks, data is gathered

Re: process multiple selected rows

2006-09-29 Thread Sohei Okamoto
If each row corresponds to the data from model which has id field, maybe I would make each checkbox with the row's id as its value,then you will receive the array with selected rows' id.Am I missing anything? Hope this helps.Sohei --~--~-~--~~~---~--~~ You received

Re: process multiple selected rows

2006-09-29 Thread [EMAIL PROTECTED]
I have always had to do 'field/' so that I get a bunch of data[field][] and then do a foreach on them, counting along the way and getting the rest with $i. I don't know if there is a better CakePHP way to do it, but I would sure like to know as well. --~--~-~--~~~---

Re: Parse error running blog tutorial

2006-09-29 Thread John David Anderson (_psychic_)
On Sep 29, 2006, at 1:21 PM, [EMAIL PROTECTED] wrote: > > Hi, all, > > I ran through the tutorial at > http://manual.cakephp.org/appendix/blog_tutorial%22, and after > modifying MySQl to use old passwords (since I'm using PHP4.4.1 and > it's > not set to use MySQLi), and messing around with th

Parse error running blog tutorial

2006-09-29 Thread [EMAIL PROTECTED]
Hi, all, I ran through the tutorial at http://manual.cakephp.org/appendix/blog_tutorial%22, and after modifying MySQl to use old passwords (since I'm using PHP4.4.1 and it's not set to use MySQLi), and messing around with the mod_rewrite settings as much as I can stomach, I still can't get the si

process multiple selected rows

2006-09-29 Thread andy corpes
Hi all,I'm a newbie trying to determine which rows in a table display have been selected. I have created a html table, column 1 is select box, the rest have data.I would like to select one or more rows, then select a command from a drop down list box,  and then process each selected row according t

Re: ACM Project To Reach 1.0

2006-09-29 Thread Ryan J. Peterson
emiliano, Thanks, I want to make it a great asset to everyone who uses ACL and CakePHP. We will be deifinatley supporting HABTM for users and groups, also I will make it more user firnedly when it comes to moving users. Thanks for the input! ~rpeterson >rpeterson, ACM is one of the greatest

Re: Overloadable helper

2006-09-29 Thread Matt Adams
gwoo wrote: > Well, in 1.2 we have the Overloadable class which may help out. How far away would you say we are from a stable release of 1.2? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To pos

Re: Restrictive Bakery Terms of Service

2006-09-29 Thread MJ Ray
[EMAIL PROTECTED] wrote: > Anyway, as long as it is stated in the Terms of Use and we all check > that box, then we agree to whatever it says. So, if it says that and > that is what it means then you can't say that they don't get copyright. Yes, you can, as it seems that copyright cannot be tran

Re: Restrictive Bakery Terms of Service

2006-09-29 Thread gwoo
Hi guys, I know you have been having fun going back and forth, but.. I posted new, simplified terms the other day at http:// bakery.cakephp.org/pages/terms Please read them and comment if you still have problems or misunderstandings. Thanks Gwoo --~--~-~--~~~---~

Re: Overloadable helper

2006-09-29 Thread gwoo
Well, in 1.2 we have the Overloadable class which may help out. --~--~-~--~~~---~--~~ 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 t

Re: How to update two divs with Ajax?

2006-09-29 Thread Samuel DeVore
try searching the group http://groups.google.com/group/cake-php/search?group=cake-php&q=two+div+nate&qt_g=1&searchnow=Search+this+group (btw a trick to shrink number of results is to add nate to the end of the query ;) Sam D On 9/28/06, carlosrg <[EMAIL PROTECTED]> wrote: > > Hi > > I have the

Re: Pocky: CakePHP on a Stick (lighttpd+php for windows)

2006-09-29 Thread Lokkju
That is a pretty standard problem with any Cygwin based program - the distributed copy of cygwin may not be the same as a previously installed copy. Ways of handling the problem are also pretty standard, and can be found through a google search. I have nothing against WAMP, I simply find it to b

CakePHP Manual rev 132 for CakePHP 1.1

2006-09-29 Thread Gustavo Carreno
Hi there! New release of your packaged manuals. Grab it at: http://cakeforge.org/frs/?group_id=53&release_id=137 [Notes] Greatings Bakers, This new naming may confuse you but here's the deal: - The documentation has been relocated to it's own repository, so the SVN revision is a tad lower than

Re: CakePHP cheatsheet

2006-09-29 Thread [EMAIL PROTECTED]
Well look at that. Learn something new everyday. --~--~-~--~~~---~--~~ 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: Restrictive Bakery Terms of Service

2006-09-29 Thread [EMAIL PROTECTED]
Anyway, as long as it is stated in the Terms of Use and we all check that box, then we agree to whatever it says. So, if it says that and that is what it means then you can't say that they don't get copyright. Now, it makes it harder to argue in court which is why others fill out tons of paperwo

Re: formating help - best way to implement

2006-09-29 Thread [EMAIL PROTECTED]
:S im sorry, not sure what you one about with the $_ arrays? --~--~-~--~~~---~--~~ 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

Re: Can somebody baby-step me though $ajax form submission

2006-09-29 Thread [EMAIL PROTECTED]
A quick extra question, how do i go about making it so the new comment can have an effect attached to it? As the way ive got it working atm, after the new comment is saved it pulls back all the comments again and then just updates the comment div [see-below] http://pastecode.net/?action=viewpost

Re: formating help - best way to implement

2006-09-29 Thread [EMAIL PROTECTED]
I think you just want the helper methods you create to be black boxes where you stick something in and get it formatted back out to you in the end. No need to try and setup the whole post and then just call the methods to extract what you need from it. Plus, then it makes the helper extensible t

Re: choice of table name

2006-09-29 Thread [EMAIL PROTECTED]
dkni, read the model, understand how MVC works. By default associated models are loaded so you can make calls to the with $this->ModelName->AssociatedModel. But if you need to load up some others (really try and think of a way not to do this a lot). $uses = array('ModelName', 'otherModel'); The

Re: Can somebody baby-step me though $ajax form submission

2006-09-29 Thread [EMAIL PROTECTED]
Don't worry Chris. I just recommend that beginners try and use the helpers because they can get the most help from CakePHP people if they do since it is a standard. Although is a bit confusing that it is made to use scriptaculous yet they call it complete instead of onComplete as in the scriptac

Global Elements?

2006-09-29 Thread cronus
Hellow, folks! I need create elements to be shared by diferent apps in the cake enviroment (like a global element). Is it possible? I know it's possible create Helpers to be shared this way by putting them in cake_version/cake/libs/view/helpers. I've tried to create an element in cake_version/cak

How to update two divs with Ajax?

2006-09-29 Thread carlosrg
Hi I have the following code: $html->selectTag('SerialNumber/software_id', $softwareArray, $serial_numbers['SerialNumber']['software_id'], array('id' => 'serialnumber_software_id', 'onchange' => "new Ajax.Updater('ajax_serialnumber_version_id','/prueba/index.php/serial_numbers/ajax_actualize_ver

CakeX - xajax in CakePHP

2006-09-29 Thread jitka
Hallo, friends! CakeX project (CakePHP AJAX transport layer based on xajax) released 0.1 alpha version (with demo and API documentation). It uses xajax trunk code (rev. 255), so it utilizes new xajax feature: XAJAX PLUGINS - even before first xajax 0.5 alpha is released (planned to 3.10.2006). C

Where should I put statistics ?

2006-09-29 Thread leo.cacheux
Hi everyone, I have an application to write with CakePHP, and I need to display some statistics (men/women, people in each department, ...). In the MVC model, which is the best way for doing this ? I hesitate between doing this in the model, with new methods to access those values, or in the cont

Re: Can somebody baby-step me though $ajax form submission

2006-09-29 Thread [EMAIL PROTECTED]
Well the thing that took me to jQuery before was the way they use CSS Selectors and as im big XHTML/CSS fan it was simple for me to pick up and start throwing out advance effects. I've actualy finaly managed to wrap my head around what was going wrong with the form and now having it working :D A

Re: get value of input field

2006-09-29 Thread [EMAIL PROTECTED]
I see, that i can read the value of the input field by using JavaScript. But that is client- and not server-based. So, I think, that the only way to succeed is another form, which holds the "Cancel"-Button. By clicking the "Cancel"-Button, the the value of the ID-Field is send to the server and he

Re: HABTM saving with checkboxes

2006-09-29 Thread [EMAIL PROTECTED]
I think the manual talks about using the table/field name of Category/Category and making it a multiple selection dropdown. Then it will save the HABTM relationship automatically on create. Now, I am not sure if there is something automagic if you need to maintain the relationship. One thing I

Re: Can somebody baby-step me though $ajax form submission

2006-09-29 Thread Chris Hartjes
On 9/29/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I don't recommend using jQuery. Learn to use the AJAX helper to your > benefit. Personally I am going to use Event Selectors and hand write > my AJAX this time around just so it is altogether now. > > The scriptaculous library is very

Re: Can somebody baby-step me though $ajax form submission

2006-09-29 Thread [EMAIL PROTECTED]
I don't recommend using jQuery. Learn to use the AJAX helper to your benefit. Personally I am going to use Event Selectors and hand write my AJAX this time around just so it is altogether now. The scriptaculous library is very easy to use. And yes it is hard to wrap your brain around AJAX and

HABTM saving with checkboxes

2006-09-29 Thread Andre
Hi everyone. Concerning the subject, the example in the manual uses a multiple select tag, but I prefer checkboxes for usability reasons. Is there a simple way to do that automatically, or should I going on coding it by myself? function admin_add() { $this->layout = 'admin'; $cat

Re: Can somebody baby-step me though $ajax form submission

2006-09-29 Thread [EMAIL PROTECTED]
I actually know jQuery quite a bit, but only more on the effect side of things. I belive a jQuery helper is on the way for CakePHP? I still dont get how this works, i cant seem to grasp it at all... --~--~-~--~~~---~--~~ You received this message because you are

Re: incorporating many views

2006-09-29 Thread michael234
In my controller I have... function index() { return $this->set('data', $this->Enquiry->findAll()); } In my view (template/index.thtml) I have.. renderElement('index', array('data'=>$this->requestAction('

Re: calculated fields -- best way?

2006-09-29 Thread Scott Sharkey
AD7six wrote: > Hi Scott, > > I think the easiest way to deal with that is define in your model the > method afterFind. use a loop to go through the results and define what > you need. There is no need to worry about removing the data before > saving - if there is no corresponding field the data

Re: CakePHP Test Suite -- 'Inflector' not found

2006-09-29 Thread Sonic Baker
On 9/29/06, Brian Wisti <[EMAIL PROTECTED]> wrote: Now that everything is basically working as advertised, it looks likeI'm going to experiment with the ModelUnitTestCase class athttp://cakephp.org/pastes/show/99b95734fbb3b5a90d9b20adbc381aa9 tostreamline the test database interaction. Hi Brian,

get value of input field

2006-09-29 Thread [EMAIL PROTECTED]
Hi there, I would like to have an hidden input field with the actual ID. When he clicks on a Link, the Data with the given ID should be deleted. my code in the "view.thtml": hidden('Input/id'); ?> now i would like to have a Link at the bottom: link('Delete', "/inputs/delete/{$tempID}", null, 'S

Overloadable helper

2006-09-29 Thread Daniel Hofstetter
Hi all, I want to create an overloadable helper. It works fine on PHP5 with the __call function, but how can I make it work with both PHP4 and PHP5? Any ideas? Thanks. -- Daniel Hofstetter http://cakebaker.42dh.com --~--~-~--~~~---~--~~ You received this messa

Re: afterFind not running on associations

2006-09-29 Thread andru
Damnit. Why do I always figure these things *immediately* after posting them, no matter how many hours of headscratching they've caused? Reading through my own post I noticed that my afterFind method was written to process the data in a way that only lets it run when findAll() is used on that met

Re: Can somebody baby-step me though $ajax form submission

2006-09-29 Thread georgeL
i stopped using the build in javascript / ajax functions. they can be confusing sometime and prototype is not very intuitive to write/read .. understand. Instead i´m using jQuery now, which really enlightend me. I hated JS before but with jQuery an ajax form submit can be as easy as this on line

afterFind not running on associations

2006-09-29 Thread andru
It seems my afterFind methods are not working when the model is fetched via an association. I'm using 1.1.8.3544, but have found this in previous versions too... Looking at dbo_source, it seems like the afterFind methods should be triggered for all associations (around line 594), but that's not

Re: Pocky: CakePHP on a Stick (lighttpd+php for windows)

2006-09-29 Thread John Zimmerman
I am using wamp and it is working fine for dev.Tried your complete dowload out.  lighttpd crashes when the start script is run.  It is complaining about mismatched cygwin1.dll and wants me to delete duplicates.  I have a current version of cygwin installed. --~--~-~--~~~--

Re: beginner: help with sql + database

2006-09-29 Thread carlosrg
If you have write associations between the tables (in MODELS) cake does the sql stament itself. But if you want to write your own query: $query("SELECT `Version`.`id`, `Version`.`name` FROM `versions` AS `Version` LEFT JOIN `softwares` AS `Software` ON `Version`.`software_id` = `Software`.`id`")

Re: CakePHP cheatsheet

2006-09-29 Thread MicroAngelo
What format are you looking for? For just accessing the raw content, Google is your friend: http://64.233.183.104/search?q=cache:mF9lQwsqF_4J:cakephp.org/files/cakesheet.pdf --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[REQ] Can somebody baby-step me though $ajax form submission

2006-09-29 Thread [EMAIL PROTECTED]
Hi there guys, now i know this is a really checky thing to ask but i just dont know how to get Ajax forms to submit and update content on the same view http://pastecode.net/?action=viewpost&tag=1014 On the above link you will see the basis of what i currently have for http://cake.phunky.co.uk, w

Re: Restrictive Bakery Terms of Service

2006-09-29 Thread MJ Ray
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > [...] But if I extract my code and post to a public domain like the > Bakery then I am forfeighting my rights to the code since no one has > to login to view the code. [...] I am not a lawyer either, but after > things getting pretty hairy on a f

Re: tmp Warning

2006-09-29 Thread davide
dkni wrote: > > I am using Fedora now. I have no idea how to do that. Do what? Extract the archive or create/give access to tmp directory? Bye Davide -- By the power of Greyskull... signature.asc Description: OpenPGP digital signature

Re: tmp Warning

2006-09-29 Thread D. Pape
ah right! that could be the reason! > > maybe you have extracted the zip using winzip. Winzip by default (i > don't know if it's settable) didn't extract empty folders contained in > the zip archive. If so, try for example winrar or a porting of tar for > windows :). > > However as Pape said, it

formating help - best way to implement

2006-09-29 Thread [EMAIL PROTECTED]
Im starting to create a nice simple helper for formating elements for my blog app, im just wondering what would be the best way of doing parts of it. Im basicly wanting to do stuff like $formating->title($before,$after); or $formatting->content(); but i dont really want to have to pass through th

Re: tmp Warning

2006-09-29 Thread dkni
I am using Fedora now. I have no idea how to do that. --~--~-~--~~~---~--~~ 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: tmp Warning

2006-09-29 Thread davide
dkni wrote: > > ok i will thx u maybe you have extracted the zip using winzip. Winzip by default (i don't know if it's settable) didn't extract empty folders contained in the zip archive. If so, try for example winrar or a porting of tar for windows :). However as Pape said, it should be enough

Re: tmp Warning

2006-09-29 Thread dkni
ok i will thx u --~--~-~--~~~---~--~~ 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 mo

Re: tmp Warning

2006-09-29 Thread D. Pape
i´ve downloaded the latest version of cakephp (zip-file) a minute ago and there is a tmp folder in app/! :o) i don't know what happens if you make the tmp folder manually and set it writeable. will cake make the subdirectories automatically?! > I downloaded it but there is no tmp folder :( > >

Re: tmp Warning

2006-09-29 Thread dkni
I downloaded it but there is no tmp folder :( --~--~-~--~~~---~--~~ 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 ema

Re: tmp Warning

2006-09-29 Thread D. Pape
usually the tmp folder is in the cake-zip! the tmp folder have to be writeable! > Warning: > file_put_contents(/PATH_TO/app/tmp/cache/models/default_FOLDER_list) > [function.file-put-contents]: failed to open stream: No such file or > directory in /PATH_TO/cake/basics.php on line 835 > > Hi Guy

Re: choice of table name

2006-09-29 Thread D. Pape
You want two or more tables in one model?? that?s impossible, i think. You should work with associations! Maybe you should read the manual first.. http://manual.cakephp.org/chapter/models > yup. but how do i have multiple tables in one Model? > > > --~--~-~--~~~

tmp Warning

2006-09-29 Thread dkni
Warning: file_put_contents(/PATH_TO/app/tmp/cache/models/default_FOLDER_list) [function.file-put-contents]: failed to open stream: No such file or directory in /PATH_TO/cake/basics.php on line 835 Hi Guy, I am having this problem. I downloaded the lastest version of Cake but I didn't have tmp fo

Re: choice of table name

2006-09-29 Thread dkni
yup. but how do i have multiple tables in one Model? --~--~-~--~~~---~--~~ 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, s

Re: choice of table name

2006-09-29 Thread D. Pape
> set member "$useTable" if your table name is different to your model name. > > i meant: if the table name is not the plural of the model name. of couse, in my example table name and model name are equal! ;o) --~--~-~--~~~---~--~~ You received this message

Re: choice of table name

2006-09-29 Thread D. Pape
hi. set member "$useTable" if your table name is different to your model name. class User extends AppModel { var $useTable = 'user'; ... } is this what you want to know? cheers. > Can I have a table name that is singular and how should I implement it > in model? > Everytime when I r