Re: Rendering a view for ajax and non ajax

2006-12-05 Thread AD7six
Hi Grant, You should not be calling render in your view. To make reusable bits of code, you /should/ make use of elements. I don´t quite follow what you mean about multiple calls to renderElement, surely the element in this context would contain either the form or the table, so at most there

Re: what can I do, when I want download files form cake build system.

2006-12-05 Thread Evan
fyi, only the following physical directories are accessible in cakephp: app/webroot/files - mapped as {URL}/files app/webroot/img - mapped as {URL}/img app/webroot/css - mapped as {URL}/css app/webroot/js - mapped as {URL}/js if, say, you use other directories such as {URL}/custom_dir, that

Re: what can I do, when I want download files form cake build system.

2006-12-05 Thread AD7six
On Dec 5, 9:55 am, Evan [EMAIL PROTECTED] wrote: fyi, only the following physical directories are accessible in cakephp: Hi Evan, That's a bit misleading. If you create on your server /CustomDir/something.txt, you can access it with the url /CustomDir/something.txt; if you try to just access

Re: Bootstrappers Unite!

2006-12-05 Thread Bootstrapper
I'm looking for people who are doing what I am doing: using CakePHP to found a web company that they hope to grow into a successful business with little or no outside funding (i.e. bootstrapping). Together we can support each other beyond this forum, in email, by phone or by another google

Problem with a Third-Party API accessing MySQL through Cake

2006-12-05 Thread toniocabaliero
Hello, Sorry for my bad english. Even so, I'm trying to explain my problem that is very strange for me indeed. My objective is to build a Cake application on top of an existing PHP WorkFlow Engine, Galaxia (http://workflow.tikiwiki.org/tiki-index.php). Even if Galaxia is an extension of

problem with the latest 1.1.11.4064

2006-12-05 Thread francky06l
Hi All, I have upgraded to the latest version, I have been adding the loadModel in components and everything works fine except for one thing : - I use to have methods in controller that I called using an ajax link url and I pass paratemers in a pretty form : link('/Controller/action/0/1/' ..

Re: General condition to all my finds

2006-12-05 Thread floepi
Hmm well the conditions are not really what i was looking for. Using cake's awesome modularity there surely should be a way to add a condition statement to all my standard cake find methods. I was thinking down the line of using the app_model.php and add a beforefind() function that injects my

Default character set for all pages

2006-12-05 Thread nikos
Hi all, I have just started using cakephp, so far it looks like a very good tool. I want to use it to create applications which will mostly have greek language user interfaces. I know that the framework won't officialy support internationalization until the next release, but I want to try

Re: Default character set for all pages

2006-12-05 Thread Claudio Poli 
touching core files is simply wrong. create or copy app_model.php in you app folder and write into the class: function __construct() { parent::__construct(); if (!defined('GLOBAL_UTF8')) { $this-query('SET NAMES \'utf8\'');

Re: problem with the latest 1.1.11.4064

2006-12-05 Thread Claudio Poli 
you should always set a default value to avoid the missing argument, like function action($arg1=null, $arg2=null) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email

Re: Default character set for all pages

2006-12-05 Thread nikos
The response time in this group is amazing! touching core files is simply wrong. I just followed the instructions in the old wiki (http://wiki.cakephp.org/faq:how_to_connect_to_mysql_database_using_unicode). I wouldn't know where to look otherwise :) Thanks a lot for the quick reply.

Re: problem with the latest 1.1.11.4064

2006-12-05 Thread francky06l
yes but this does not help at all, because the 0 are dropped so you will end up with your first argument taking the value of the second and the second be null ... I found the problem, in the new version of router.php, the neatarray-cleanup has been remove and replace by array_filter. The problem

Re: Quick and easy dispatcher for cron jobs

2006-12-05 Thread Matt
Done and done: http://bakery.cakephp.org/articles/view/176 On Nov 20, 3:06 am, nate [EMAIL PROTECTED] wrote: Here, make it more useful:http://bakery.cakephp.org/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

why getLastInsertID doesn't work?

2006-12-05 Thread Samuel
hi all: in my mode process.php there is a function named addProcess($datas) and in the body I wrote: $sql=INSERT INTO

Re: why getLastInsertID doesn't work?

2006-12-05 Thread Adrian Godong
Maybe something wrong with custom query? I've never used any custom query (with $this-execute($sql)) and never had any problem with getLastInsertId. IMO, I think you need to return the last insert id manually if you're usnig custom query. CMIIW. On 12/5/06, Samuel [EMAIL PROTECTED] wrote: hi

Re: Bootstrappers Unite!

2006-12-05 Thread StinkyTofu
Since discovering CakePHP, I've quit my job and started work as a freelance developer. Loving it! I find CakePHP gives me a much bigger advantage over the competitors who don't use it, the scaffolding alone works as a great sales tool. You can use it to build a web application for a potential

Re: File Uploads

2006-12-05 Thread Brian French
also, if you want to store the data of the file in the database instead of just in a file, you should also base64_encode(); the data before saving it to either a blog or text datatype. when you want to retreive you do: ?php // header to let the browser know what type of file it is // saee

Re: Re: File Uploads

2006-12-05 Thread Samuel DeVore
which can have the effect of tripling the data size, just so you keep that in mind when setting up your db On 12/5/06, Brian French [EMAIL PROTECTED] wrote: also, if you want to store the data of the file in the database instead of just in a file, you should also base64_encode(); the data

RE: Rendering a view for ajax and non ajax

2006-12-05 Thread Grant Davies
Thanks, I ended up solving it using an element and removing the ajax setting from the render call, thanks for your help. grant ... b l u e t u b e i n t e r a c t i v e. .: grant davies .: 404.428.6839 (c) .: 708-983-1577 (F) [EMAIL PROTECTED]

RE: problem with the latest 1.1.11.4064

2006-12-05 Thread Mariano Iglesias
Please report this to the trac. Thanks! -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! -Mensaje original- De:

Re: error messages (validation) ghost text

2006-12-05 Thread Domain Developer
release 1.1.11.4064 fixed this problem. On Dec 4, 9:52 am, Domain Developer [EMAIL PROTECTED] wrote: Thank you. I will read through the search results. On Dec 3, 10:09 pm, nate [EMAIL PROTECTED] wrote: http://www.google.com/search?client=safarirls=enq=debugging+css+in+...- Hide quoted

Re: File Uploads

2006-12-05 Thread [EMAIL PROTECTED]
I wouldn't save to a DB. Just move the file based upon the user id or something and automatically create folders based on the user id or whatever. I would think it to be a security hazard if you did do that. Also, you will increase the size of your db which could degrade performance. People are

update different table than model

2006-12-05 Thread das88
I'm pretty new to Cake, so forgive me if I ask something really stupid. I would like to do an Ajax update to a different table than my current model, but I can't figure out how to this. My view does a POST like field Common_Name id 2 value test_value The name of the table is stored in

Noob questions about CakePHP capibilities

2006-12-05 Thread walterbyrd
- does cakephp work equally well with php4 and php5? - does cakephp have facilities to build and and implent complex forms? By that I mean: does cakephp have facilitie to build forms with multiple checkboxes, radio buttons, and dropdown boxes? - does cakephp have facilities to accept data from

othAuth ACL mode and AD7Six's ACL implementation

2006-12-05 Thread Marcelo de Moraes Serpa
Hello fellow bakers, I just got AD7Six's ACL up and running on my new cake project. I was planning to develop my own simple authentication system, but then I went to the bakery and found the excellent article about the excellent othAuth component. I then read that it has an acl mode but

Re: update different table than model

2006-12-05 Thread francky06l
Well, with saveField you sace only one field of the current record. Depends what you want to do, if you want to update an existing record, you need the id and do something like : $this-Cm-set(array('id' = $varId)); $this-CM-saveField( ...); But I haven't tried, maybe it creates a new record as

othAuth problem

2006-12-05 Thread Erich C. Beyrent
I am sure I am just missing something in my othAuth configuration, but when I hit a restricted page and attempt to enter my credentials, I get the following error: Fatal error: Call to a member function on a non-object in /app/controllers/components/oth_auth.php on line 116 And the code that

Re: Noob questions about CakePHP capibilities

2006-12-05 Thread walterbyrd
One more question: - does cakephp provide for event triggers, calculated fields, or rollbacks? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: Noob questions about CakePHP capibilities

2006-12-05 Thread Chris Hartjes
On 12/5/06, walterbyrd [EMAIL PROTECTED] wrote: - does cakephp work equally well with php4 and php5? - does cakephp have facilities to build and and implent complex forms? By that I mean: does cakephp have facilitie to build forms with multiple checkboxes, radio buttons, and dropdown boxes?

Re: update different table than model

2006-12-05 Thread das88
Thanks for the reply. I do want to only change one field. I forgot in my example, I had $this-Cm-id = $this-params['form']['id']; I was able to get it to work using query, such as $sql='update `' . $this-Session-read('dataset_id') . '` set ' . $this-params['form']['field'] . '=' .

Re: Noob questions about CakePHP capibilities

2006-12-05 Thread walterbyrd
Have you actually read the manual for CakePHP yet? All those questions are answered there. I don't see those questions directly answered in the manual. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP

Re: CakePHP Unofficial Forums

2006-12-05 Thread Claudio Poli 
Mariano, I've opened that forum when users wanted it as CakePHP foundation still doesn't have one (I'm a junior dev on the one that will be coming), see an example here: http://www.nolimit-studio.com/baking/2006/06/27/give-me-a-forum-or-give-me-death But really I've opened it just to give my

Re: Noob questions about CakePHP capibilities

2006-12-05 Thread Grant Cox
Being an application framework, Cake provides you a lot of controls over these topics. Creating forms, and having this data save to a database, with validation, is one of the most basic Cake concepts - go through some of the simple tutorials. However, Cake is not aimed at providing the be all

Re: update different table than model

2006-12-05 Thread francky06l
Well then if you have the id, you can do : $this-Cm-set(array('id' = $this-params['data']['id'])); $this-Cm-saveField($this-params['data']['field'], $value); That should work, it's the way I do some update on specific field.. Good luck On Dec 5, 8:56 pm, das88 [EMAIL PROTECTED] wrote: Thanks

Re: Noob questions about CakePHP capibilities

2006-12-05 Thread Langdon Stevenson
- does cakephp have facilities to accept data from complex forms, and put that data into a database? yes, indeed. i'm not sure about the complexity you are talking about, but for *big* forms, cake will make it simple. The only problem would be in multi-paged forms, but it's more

How do you instruct a controller not to render anything.

2006-12-05 Thread alexis
Hello, I am a beginner trying to learn CakePHP. I want to ask how to do the following: 1. Prevent a controller action from rendering anything 2. Instruct controller action to output binary data (i.e. letting users download files) from an action. I assume this will be just setting

RE: How do you instruct a controller not to render anything.

2006-12-05 Thread Mariano Iglesias
Check this, it may help you out: http://groups-beta.google.com/group/cake-php/browse_thread/thread/3363979513 f6297b/18d4669098d6d90d?lnk=gstq=rnum=14#18d4669098d6d90d -MI --- Remember, smart coders answer ten questions

Re: error messages (validation) ghost text

2006-12-05 Thread Domain Developer
I fixed this problem with the holyhack css hack for IE. /* Hides from IE-mac \*/ * html .holyhack { height: 1%;} On Dec 5, 10:26 am, Domain Developer [EMAIL PROTECTED] wrote: release 1.1.11.4064 fixed this problem. On Dec 4, 9:52 am, Domain Developer [EMAIL PROTECTED] wrote: Thank you.

Re: RE: How do you instruct a controller not to render anything.

2006-12-05 Thread Samuel DeVore
Mariano, I think you are due to actually ask a question now. On 12/5/06, Mariano Iglesias [EMAIL PROTECTED] wrote: Check this, it may help you out: http://groups-beta.google.com/group/cake-php/browse_thread/thread/3363979513 f6297b/18d4669098d6d90d?lnk=gstq=rnum=14#18d4669098d6d90d

RE: RE: How do you instruct a controller not to render anything.

2006-12-05 Thread Mariano Iglesias
Hahahha... Good one :) -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! -Mensaje original- De: cake-php@googlegroups.com

Re: How do you instruct a controller not to render anything.

2006-12-05 Thread sumanpaul
Mariano, It says Topic not found We're sorry, but we were unable to find the topic you were looking for. Perhaps the URL you clicked on is out of date or broken? i guess some problem with url...could u plz check or is its just for me!!! suman On Dec 6, 7:46 am, Mariano Iglesias [EMAIL

RE: How do you instruct a controller not to render anything.

2006-12-05 Thread Mariano Iglesias
It's because my email client is cutting of long URLs: http://groups-beta.google.com/group/cake-php/browse_thread/thread/3363979513 f6297b/18d4669098d6d90d?lnk=gstq=rnum=16#18d4669098d6d90d -MI --- Remember,

Looking for a full-time PHP programmer who knows CakePHP

2006-12-05 Thread Miccheng
Wanted PHP Programmer Location: Singapore - Intermediate level PHP Programmer (at least 2 yrs). - Strong knowledge in HTML, JS CSS. - Keen and fast learner. - Diploma or above, fresh grads welcomed. Please send your resumes to [EMAIL PROTECTED] Many thanks! Michael Cheng

About $hasOne

2006-12-05 Thread [EMAIL PROTECTED]
can anyone tells me why the $hasOne is nothing working properly? class UserDetail extends AppModel { var $name = 'UserDetail'; var $hasOne = array('BasicInfo' = array('className' = 'BasicInfo', 'conditions' =

acl.php

2006-12-05 Thread Falagar
Hi, I tried to use the ACL example from the manual and ran into problems. I have 1.1.11.4064 installed, the database connection is set up and I have successfully baked stuff with bake.php. When running php acl.php initdb -app blabla from /cake/scripts the following error occurs: Fatal error: