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
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
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
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
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
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/' ..
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
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
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\'');
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
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.
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
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
hi all:
in my mode process.php
there is a function named addProcess($datas)
and in the body I wrote:
$sql=INSERT INTO
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
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
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
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
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]
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:
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
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
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
- 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
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
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
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
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
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?
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'] . '=' .
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
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
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
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
- 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
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
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
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.
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
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
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
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,
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
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' =
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:
45 matches
Mail list logo