Re: Select which populate another select

2007-07-06 Thread ricarou51
thanks ! it's exactly that I would like ! On 6 juil, 06:56, francky06l [EMAIL PROTECTED] wrote: Good sample here : http://www.devmoz.com/blog/2007/04/04/cakephp-update-a-select-box-usi... On Jul 5, 4:53 pm, Jon Molesa [EMAIL PROTECTED] wrote: *On Thu, Jul 05, 2007 at 07:36:06AM -0700

Re: Flay and Other Markup Translation Tools

2007-07-06 Thread Geoff Ford
I just noticed in 1.2 there is a flay.php in cake/libs Might want to check that one out Geoff -- http://lemoncake.wordpress.com On Jul 5, 5:06 pm, GreyCells [EMAIL PROTECTED] wrote: ThanksGeoff I had considered bbcode but (apparently) our target audience would be more familiar with a

CakePHP developer position, Brisbane Australia

2007-07-06 Thread Grant Cox
Enso Studios ( http://www.ensostudios.com.au ) is looking for a talented developer to join our team. Experience in CakePHP is obviously our priority, a working knowledge of HTML and CSS is of benefit. This is a full time position, starting ASAP, in our West End studio. We can be flexible on

Re: Why dispatcher return a blank page?

2007-07-06 Thread AD7six
On Jul 6, 4:19 am, chanh.ong [EMAIL PROTECTED] wrote: I found this: In 1.2, it gaves me sessioncomponent object name on sf.net: $this-controller-{$component} = new $componentCn($param); $loaded[$component] =

Re: Problem with Ajax: observeField

2007-07-06 Thread minglee
I solved the problem. Use magic '$' function, and avoid using ajax to create the field. On Jul 5, 11:28 am, minglee [EMAIL PROTECTED] wrote: I use $Ajax-observeField, with Option['with'='type_id'], however, an error reported: Form.Element.Serializers[method] is not a function. But from the

Re: webroot getting appended in subsequent links?

2007-07-06 Thread [EMAIL PROTECTED]
hello all, I have a similar issue I'm on a shared host my setup is as follow /cake /httpdocs (dir accessible by browser) /httpdocs/controllers /httpdocs/models /httpdocs/views /httpdocs/webroot the .htaccess file in httpdocs IfModule mod_rewrite.c RewriteEngine on

Re: webroot getting appended in subsequent links?

2007-07-06 Thread AD7six
On Jul 6, 10:13 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: hello all, I have a similar issue I'm on a shared host my setup is as follow /cake /httpdocs (dir accessible by browser) /httpdocs/controllers /httpdocs/models /httpdocs/views /httpdocs/webroot Hi Thomas, Why not

Associations not working properly

2007-07-06 Thread Ankur
I have two models which are associated with each other as follows: // This is our Content File Catalog Model Class class ContentFileCatalog extends AppModel { var $hasMany = array('ContentFileCatalogComment' = array('className' =

Re: Going nuts on components

2007-07-06 Thread DrLaban
So, I managed to solve it after even more extensive googling and experimenting. I didn't take into account that the information stored in the database I'm using has to be encoded with UTF-8 compliant extended characters. This resulted in having to perform two things; 1: Change the collation of

plan of future releases?

2007-07-06 Thread Shinobu Takanashi
Hi all, I have a web application project which will be released in February in next year. I'm contemplating which version of cake we should use. if 1.2 will be released as official, not alpha nor beta, until next February, we would like to try 1.2. Any information about future release will be

Re: Newbie Sessions ?

2007-07-06 Thread r557
Well how is it done then in a shopping cart situation where you need a collection of items? On Jul 5, 10:06 pm, citrus [EMAIL PROTECTED] wrote: When you add values to the session, the old one will be overwritten (if exists) On Jul 6, 6:35 am, r557 [EMAIL PROTECTED] wrote: Creating a

Re: plan of future releases?

2007-07-06 Thread Dr. Tarique Sani
On 7/6/07, Shinobu Takanashi [EMAIL PROTECTED] wrote: I'm contemplating which version of cake we should use. if 1.2 will be released as official, not alpha nor beta, until next February, we would like to try 1.2. Use 1.2 anyways - in the very least you will not have to recode as much as

CakePHP is great fun, but a bit tricky

2007-07-06 Thread DrLaban
I managed to figure out a bit about helpers and the way they work but I'm still a bit lost getting to know the workings of Cake. Now, seeing that a helper was great for bbCode parsing I'm now trying to figure out what the best way to handle an array of smileys is. The problem is for most of you

Re: Newbie Sessions ?

2007-07-06 Thread Sergei
Just store an array in the session variable. When you need to add item, read array, add, and save it again. On 6 июл, 18:51, r557 [EMAIL PROTECTED] wrote: Well how is it done then in a shopping cart situation where you need a collection of items?

Re: Render view without layout

2007-07-06 Thread Geoff Ford
@mee To change a layout for an action put $this-layout = layout_name; in the action. For a whole controller you can put it in beforeFilter() @InVINCable jQuery works fine with cake. If you are using cakes ajax helpers which requires prototype you need to use the noConflict directive in jQuery

Re: CakePHP is great fun, but a bit tricky

2007-07-06 Thread Sergei
So what's the problem? Make a function in a model that extracts smiley data, and set it to view variable in your controller action. Then make a helper something like: $myhelper-smily($smilydata) or better, do it with element: $this-renderElement(smile,array('data'=$smileydata)) I would

Re: Help wanted with .htaccess and mod_rewrite

2007-07-06 Thread [EMAIL PROTECTED]
Replying to my own post: Solution for problem 1: - Use default Cake .htaccess files everywhere. - Use this in /app/sub/.htaccess: RewriteEngine on RewriteRule sub$ /sub/ [L] RewriteRule ^$ app/webroot/ [L] RewriteRule (.*) app/webroot/$1 [L] Credits: http://jeff.loiselles.com/wordpress/?p=22

Re: Help wanted with .htaccess and mod_rewrite

2007-07-06 Thread [EMAIL PROTECTED]
Solution to problems 1 2: Modify /app/sub/.htaccess: IfModule mod_rewrite.c RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} ^/cahier/forum(.*)$ RewriteRule ^.*$ - [L] /IfModule IfModule mod_rewrite.c RewriteEngine on RewriteRule

Corrupted Image [file stored in filesystem, thumbnail ok!]

2007-07-06 Thread phpjoy
i have a problem with an image i use. i upload the image, and it's alright on the file system. perfect. when i load up the image from the server, it's corrupted. the file on the DISK is perfectly fine. it's just displayed wrong through apache.. it's completely weird! for example, after the

Re: Two pagination on single page

2007-07-06 Thread lalit kumar
hi, Can you please send me any example for two pagination one with ajax and another one is url submitting. Thanks Lalit On 7/5/07, Spectacularium [EMAIL PROTECTED] wrote: If you use one url submitting then it will refresh the whole page and you will lose the options for the ajax pagination.

Re: Why dispatcher return a blank page?

2007-07-06 Thread chanh.ong
I never spend so much time with any package thus far on trying to get it to work from the default build. I also trying to contact sf support to see they can provide any help on this. I download the nightly build on both sf and my pc to do a side by side test in the effort to track down the

Re: Help wanted with .htaccess and mod_rewrite

2007-07-06 Thread [EMAIL PROTECTED]
Solution to problems 1 2: Modify /app/sub/.htaccess: IfModule mod_rewrite.c RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} ^/sub/forum(.*)$ RewriteRule ^.*$ - [L] /IfModule IfModule mod_rewrite.c RewriteEngine on RewriteBase /sub/

Re: Why dispatcher return a blank page?

2007-07-06 Thread Chris Hartjes
On 7/6/07, chanh.ong [EMAIL PROTECTED] wrote: I never spend so much time with any package thus far on trying to get it to work from the default build. I also trying to contact sf support to see they can provide any help on this. Follow AD7Six's advice and do the following: 1) delete your

Re: Two pagination on single page

2007-07-06 Thread Chris Hartjes
On 7/6/07, lalit kumar [EMAIL PROTECTED] wrote: hi, Can you please send me any example for two pagination one with ajax and another one is url submitting. http://slash7.com/pages -- Chris Hartjes Senior Developer Cake Development Corporation My motto for 2007: Just build it, damnit!

Re: Two pagination on single page

2007-07-06 Thread rtconner
Great link! On Jul 6, 8:12 am, Chris Hartjes [EMAIL PROTECTED] wrote: On 7/6/07, lalit kumar [EMAIL PROTECTED] wrote: hi, Can you please send me any example for two pagination one with ajax and another one is url submitting. http://slash7.com/pages -- Chris Hartjes Senior

Re: CakePHP is great fun, but a bit tricky

2007-07-06 Thread DrLaban
Well, I *think* that's how I started out, but I'm not all clear on how the different models, controllers and views communicate with eachother. What I've done so far is this: -Model- * Guestbook (This collects all data from the guestbooks table making it available to the application) * Avatar

Re: Render view without layout

2007-07-06 Thread rtconner
for a whole controller you can just do var $layout = 'my_layout'; at the top of the class. On Jul 6, 5:23 am, Geoff Ford [EMAIL PROTECTED] wrote: @mee To change a layout for an action put $this-layout = layout_name; in the action. For a whole controller you can put it in beforeFilter()

MIT license vs. CSFL license

2007-07-06 Thread keymaster
I read posts related to this subject, but never saw these two licenses compared, to really bring out the differences. I'm trying to understand the practical differences between the MIT license and Cake Software Foundation (CSFL) license, and the implications for software developers who want to

Re: Render view without layout

2007-07-06 Thread Chris Hartjes
On 7/4/07, Contrid [EMAIL PROTECTED] wrote: Thanks for the responses guys! Greatly appreciated! I could use the 'ajax' feature... But the problem is that I'll then need the Scriptaculous libraries included. I don't want that, since I already have jQuery integrated. How can I make jQuery

Re: MIT license vs. CSFL license

2007-07-06 Thread Larry E. Masters aka PhpNut
CakePHP itself is released under the MIT license, and you can do anything with it the license allows. The CSFL is a license similar to the QT license which basically says you can use the code as long as you release any modifications back so others can benefit from them. You still retain copyright

Problem with editing an article on Bakery

2007-07-06 Thread Ketan Patel
On Bakery, I am trying to edit an article that I have written but not able to. When I go to edit my article, I am presented the contents of different article (LDAP Models in CakePHP). My article is 'http:// bakery.cakephp.org/articles/view/cache-elements-individually-for-each- user'. If someone

Re: Beginner questions about the blog tutorial

2007-07-06 Thread Cheeze
Interesting observation. I didn't see that when I first started. Anyway I just use $this-Model-save($this-data) for both Add and Edit methods. As far as I know, the key difference is the presence of a hidden $id field in the form. On Jul 4, 6:57 pm, vinh.chuc [EMAIL PROTECTED] wrote: Hi ! I'm

Passing data back from jquery to a controller?

2007-07-06 Thread Jim Newfer
hey guys, Sorry but I just cannot get my head around this one. I am trying to pass back a value from jquery to my controller. Everything runs ok, except my controller does not get or doesn't recognize the value I am passing it via jquery. //here is my javascript $(document).ready(function(){

Re: Why dispatcher return a blank page?

2007-07-06 Thread chanh.ong
I did what was suggested many times! However I just notice something in the install manual statement it require 4.3.2 or greater and on sf it is 4.3.1 so it is no point in continue my effort. One side note though is Cake 1.1 work fine on sf just not Cake 1.2 I will stop this effort for now

Re: Passing data back from jquery to a controller?

2007-07-06 Thread Jim Newfer
On Jul 6, 9:01 am, Jim Newfer [EMAIL PROTECTED] wrote: hey guys, Sorry but I just cannot get my head around this one. I am trying to pass back a value from jquery to my controller. Everything runs ok, except my controller does not get or doesn't recognize the value I am passing it via

Help: Why I cannot save changes??

2007-07-06 Thread Steveston
Hi folks, I want to edit user's profile and save changes. It is supposed not to be a hard task, however, I do not know why I cannot make it work. Any help? Many thanks! the method in controller is: function editProfile() { $id = $this-rdAuth-id; $ifChangePassword=false;

Re: Help: Why I cannot save changes??

2007-07-06 Thread Steveston
Follow-up: Got it worked. On Jul 6, 9:51 am, Steveston [EMAIL PROTECTED] wrote: Hi folks, I want to edit user's profile and save changes. It is supposed not to be a hard task, however, I do not know why I cannot make it work. Any help? Many thanks! the method in controller is:

Re: 1.2 manaul

2007-07-06 Thread h3raLd
Indeed. On Jul 6, 3:05 am, citrus [EMAIL PROTECTED] wrote: You can get an updated version of Cake 1.2 manual here: https://cakeforge.org/plugins/scmsvn/viewcvs.php/sandbox/1.2/?root=ca... It isn't complete, though. + there will be a book coming out, but who knows when (it was expected

Best place to declare global null variable

2007-07-06 Thread [EMAIL PROTECTED]
Hiya, I have a variable that I would like to be NULL unless specifically set by the controller. What ideas do you all have about the best place to put this? Bootstrap? Thanks, Wilson --~--~-~--~~~---~--~~ You received this message because you are subscribed

How do I create a custom SQL query

2007-07-06 Thread mussond
Hey all, I have this SQL query that I want to use. The idea is that the user will select the id from a HTML select box and then click a submit button. SELECT count(*) as c FROM data_points p join des_walks w WHERE p.des_walk_id = w.id AND w.com_user_id = 1 I've got the following code in my

Site Administration

2007-07-06 Thread [EMAIL PROTECTED]
Hi all... I'm new to cake and so far I'm really liking the framework! A few questions though. I've been reading about admin routes, sessions, and acl and I'm not quite sure how to set this all up. I was wondering if there were any best practices? From what I've read about cake's Acl in 1.15.x

belongs to and hasmany

2007-07-06 Thread rtanz
hi i am confused how to use these two associations, say i have a football team and a set of players, both in their own table. now would i say that players belong to a football team or a football team has many players? thanks --~--~-~--~~~---~--~~ You received

Re: plan of future releases?

2007-07-06 Thread Chris Hartjes
On 7/6/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I am too working on a project that is actually due towards the end of August. I'm currently using 1.15.x and I like the features that 1.2 has and would love to use it but yet I'm hesitant to use an alpha product. I'm curious as to what

Re: how to cache all the view in call ?

2007-07-06 Thread wluigi
@keaten patel : it doesn t solve the problem for the first user how must regenerate the view @Rajesh : yes that is it but the main problem was to call every action. So I use Curl : foreach($controllerActionList as $myControllerAction){ if(!$ch = curl_init('http://localhost/donnees/index/'.

Re: plan of future releases?

2007-07-06 Thread [EMAIL PROTECTED]
I am too working on a project that is actually due towards the end of August. I'm currently using 1.15.x and I like the features that 1.2 has and would love to use it but yet I'm hesitant to use an alpha product. I'm curious as to what other's opinions are as to the stability of 1.2 for use on

Re: how to cache all the view in call ?

2007-07-06 Thread Pablo Viojo
I don't understand...you're asking or trying to explain it? Using that piece of code, you can set a cron task. Regards, Pablo On 7/6/07, wluigi [EMAIL PROTECTED] wrote: @keaten patel : it doesn t solve the problem for the first user how must regenerate the view @Rajesh : yes that is it

Re: plan of future releases?

2007-07-06 Thread danfreak
I started with CakePHP 1.2.0.51246alpha strainght away. I'll put my first site into production with it on Monday using the new Auth component and all other stuff! CakePHP rocks!! And of a rockClimber says it... ;o) Dan --~--~-~--~~~---~--~~ You received this

Re: 1.2 manaul

2007-07-06 Thread danfreak
...I already pre-booked it online :o( Dan --~--~-~--~~~---~--~~ 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

Re: Site Administration

2007-07-06 Thread danfreak
Well how to use the command line wasn't clear from the docs for me as well in the beginning. If you are on Windows, open the DOS comand line. move to your cakePHP installation dir (i.e cd to_your_cake_install_dir) once you are in the install dir use the following magic command (cakePHP v.

Re: Site Administration

2007-07-06 Thread danfreak
I was just forgetting in cake 1.2 once you are in the cake installation dir you must -- cd cake/console -- and

Validating data always fails, why?

2007-07-06 Thread Steveston
in model: var $validate = array ( //'username' = '/[0-9]{8}$/', //'student_no'= '/[0-9]{8,9}$/', 'last_name' = '/[a-zA-Z]$/', 'first_name'= '/[a-zA-Z]$/', //'password'='/^.{5,8}/', 'email'=VALID_EMAIL ); in controller: if

How to use the 'finderQuery' attribute of your model definitions.

2007-07-06 Thread dakomoon
This morning I was contacted by a client who was in a bit of a dither. Apparently one of his web pages wasn't loading and he (rightly so) wanted me to fix it. When I took a look at said web page it gave me everyone favorite fatal error indicating the script exceeded it's memory limit. How is

Re: How do I create a custom SQL query

2007-07-06 Thread dakomoon
Yea, you are getting three arrays. The first array is the array of different models returned, the second array is the array of different rows from each model, and the third array are the columns of each row. It might help to remember that cake collates result sets into associative arrays, but

Loop through records in Model and update records

2007-07-06 Thread Dave M.
Hi all, For some reason I cannot get this to work, but I know there is something simple I am overlooking. I have a function in my model which should find all records with a certain criteria (in this case, those records whose 'printed' field is 'N') and then update those records (changing

Re: Best place to declare global null variable

2007-07-06 Thread dakomoon
I'd put it in app_controller. I'm a little uncomfortable defining applications specific variables w/in the framework files. hth --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this

ObserveField()? What can it observe?

2007-07-06 Thread [EMAIL PROTECTED]
Hi there, Regarding ObserveField()? What can it observe? For example, can observeField() observe DIVs without forms in them? Perhaps I'm missing something. And I know we've discussed this ad nauseum before but I've still yet to locate a way outside of manually writing the javascript, to

Re: Site Administration

2007-07-06 Thread Gwoo
http://cakephp.org/screencasts I did two screencasts on setting up the console in 1.2. One is for *nix and the other windows. Check them out. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post

Re: ObserveField()? What can it observe?

2007-07-06 Thread Gwoo
On Jul 6, 2:42 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi there, Regarding ObserveField()? What can it observe? For example, can observeField() observe DIVs without forms in them? no. you need a form field. Perhaps I'm missing something. And I know we've discussed this ad

Re: CakePHP is great fun, but a bit tricky

2007-07-06 Thread Grant Cox
If you don't want to hard code them in your helper, then you will need another database table for your smileys. And a model. Now you can get/set the database data just like any other model, through $this-Smiley-find() and $this-Smiley-save(). To get a list you might want to use

Re: Validating data always fails, why?

2007-07-06 Thread Grant Cox
Your controller should be much simpler - like: if ( $this-User-save($this-data) ){ echo saved; } else { $this-log( $this-User-validationErrors ); echo not saved; } the save() call automatically validates the data, and will not save if it does not pass validation. The log() call will

Re: Loop through records in Model and update records

2007-07-06 Thread Grant Cox
1. Use updateAll() $this-updateAll( array('printed'='Y'), array('printed'='N') ); 2. Are you sure that findByPrinted will return an array of data without your model key? I would have thought you want function updatePrintStatus(){ $ret = $this-findByPrinted('N'); foreach($ret

Re: belongs to and hasmany

2007-07-06 Thread Grant Cox
players table has team_id field. app/models/team.php var $hasMany = array( 'Player' = array( 'className' = 'Player' ), ); app/models/player.php var $belongsTo = array( 'Team' = array( 'className' = 'Team' ), ); On Jul 7, 5:06 am, rtanz [EMAIL PROTECTED] wrote: hi i am

Re: Best place to declare global null variable

2007-07-06 Thread Grant Cox
By bootstrap I assume you mean app/config/bootstrap.php, not anything in the framework itself. The bootstrap is the correct place to put app-wide global variables - certainly for constant values. But for dynamic things... What is this value you are setting, and where else in your app are you

Re: Corrupted Image [file stored in filesystem, thumbnail ok!]

2007-07-06 Thread Grant Cox
Felix had a similar issue last year http://www.thinkingphp.org/2006/11/02/being-trapped-in-programmers-hell/ http://www.thinkingphp.org/2006/11/03/windows-xp-apache-php-output-problem/ But this was using php readfile() to pass the data, whereas yours is just apache. In which case, try a

Re: Validating data always fails, why?

2007-07-06 Thread citrus
if you want to do the validation manually, in CakePHP 1.2 use the following: if ($this-User-create($this-data) $this-User-validates()) { // validation ok } else { // validation failed } otherwise, use $this-User-save($this-data) directly as Grant Cox pointed out. On Jul 7, 4:18 am,

Re: Show a Page without a Model in cakePHP

2007-07-06 Thread Baz L
I have the same question, except that I can't use the uses var. I actually do have a pages in my database. I just want to change: a.com/pages/home to a.com/home without defining tons of different routes. On Jun 8, 10:57 am, MarsDev [EMAIL PROTECTED] wrote: Thanks all. JP (Quanack) and

Re: Corrupted Image [file stored in filesystem, thumbnail ok!]

2007-07-06 Thread Tane Piper
It could also be a problem with your permissions. Make sure that the uploaded files are the user www-data, which is default for Apache. On 7/7/07, Grant Cox [EMAIL PROTECTED] wrote: Felix had a similar issue last year http://www.thinkingphp.org/2006/11/02/being-trapped-in-programmers-hell/

Re: How to use the 'finderQuery' attribute of your model definitions.

2007-07-06 Thread Dr. Tarique Sani
On 7/7/07, dakomoon [EMAIL PROTECTED] wrote: This morning I was contacted by a client who was in a bit of a dither. Apparently one of his web pages wasn't loading and he (rightly so) wanted me to fix it. When I took a look at said web page Thanks for sharing a very important note -

Re: Best place to declare global null variable

2007-07-06 Thread [EMAIL PROTECTED]
Thanks Grant and dakomoon. yeah, app/config/bootstrap.php Basically, I need to display special elements in a left column DIV for certain pages. I'm doing a renderElement left column and passing it an array of elements to display. On a few pages I'll pass it a different array but normally

Re: Best place to declare global null variable

2007-07-06 Thread Grant Cox
I'd put a beforeFilter in your AppController, to always $this-set() the default. Then in the few actions where you do want it different, have $this-set() for the new value - this will overwrite what was set in the beforeFilter. This way the view is getting data in the normal controller to view