Have you read through the manula and the blog tutorial at
http://manual.cakephp.org/appendix/blog_tutorial
On Jun 7, 1:39 pm, Lifo [EMAIL PROTECTED] wrote:
Dear group member
I am new in CakePHP. So i need a free Cake PHP
tutorial. Please give me any tutorial or link.
On Jun 7, 12:14 am, Samuel DeVore [EMAIL PROTECTED] wrote:
If you do the image in db first then you can do an easy optimization later
and look really brilliant because it serves them so much faster ;) On the
other hand it is easier to control access to images when they are not just
sitting
Dear Bakers!
A few days before I made my first steps in the world of CakePHP and I
love it.
Especially the manual, the API and this group is loved by me.
After the blog-tutorial I started with my own application. At the
moment I'm creating the base.
- I implemented my own layout
- I made my
On Jun 6, 12:46 pm, jameslagan [EMAIL PROTECTED] wrote:
snip
If I try and use:
$this-Badsession-recursive = 1;
$this-Badsession-findAll();
this runs 2 queries:
SELECT `Badsession`.`id`, `Badsession`.`date`,
`Badsession`.`timestart`, `Badsession`.`timeend`,
`Badsession`.`venue_id` FROM
I have a modified upload behavior I can share, although I don't have
the latest version up - but I can have it up a few hours.
The upload behavoir can upload any filetype (currently I use it for
images and MP3's) to any subdir under the webroot. Its current
features also include correcting
I published your article on the bakery just now, so make sure to update that
one too.
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE
On Jun 7, 1:51 am, Hanzgroove [EMAIL PROTECTED] wrote:
You guys are absolutely right, they don't owe me or the community
anything. Its been fun trying to play devil's advocate though : )
Fun for who, good luck getting help in the future.
I like the way you implied that writing 1.2 whilst
This time about using query.
In my application i use some table like
companies,login,administrators,sales_people. In login, there are 5
fields, id, username,password,login_type_id,user_id.
login_type_id is going to tell witch table are, and user_id is id of
the user on appropriate table.
So
On Jun 7, 9:26 am, Lemune [EMAIL PROTECTED] wrote:
This time about using query.
In my application i use some table like
companies,login,administrators,sales_people. In login, there are 5
fields, id, username,password,login_type_id,user_id.
login_type_id is going to tell witch table are,
Hello and thank you for the respond.
I'm not creating for login.
I want something that could work as CRUD. so whenever i want to add,
view, edit and delete data on table companies, administrators,
sales_people, and login (that related to the 3 other table before) it
work. Because i don't make the
About how to manage diferent languages... In my website I use the
following:
I have a PHP file for each language, with text variables on it... for
example:
english.php
$lguser = 'User';
$lgname = 'Name: ';
spanish.php
$lguser = 'Usuario';
$lgname = 'Nombre: ';
So in the views [ HTML ] i
Hi, I've been having a trouble with data validation. My page consists
on three pages: /contacts/new, /contacts/edit, /contacts/delete. In
new module I have:
if ($this-Contact-save($this-data))
$this-flash('Contact saved','/contacts/');
else{
A little inspiration ? ;)
http://www.ndesign-studio.com/
greets,
--
Marcin Domanski
http://kabturek.info
On Jun 5, 11:23 am, 浪漫様 [EMAIL PROTECTED] wrote:
Dear bakers,
1 week ago I finished my first Cake!! It took me only 2 weeks [ using
just spare time mostly in the weekends ]. Is a web2.0
Yes, I liked the design of that site, so I tried to do something like
that.
Design is full of copying, everybody takes ideas from other
websites :P
Rohman
http://www.rohmansama.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Dear all,
What would be your implementation recommendation (controller side) for
setting up a tabbed multipage form (step1, step2, step {n}), where in
every step different models and controllers are influenced and the
different steps maybe influce other steps (available or not, a.s.o)?
Thanks
New here to CakePhp, really excited since this is exactly what i´m
looking for! (writing endless repititive/boring code became a big
demotivator for building websites)
Installation went perfect, however now i'm coping with some problems
with the Cakephp Blog Tutorial which i can't seem to solve
If you are using Cake 1.1.x then look up the form wizard on the
cakeforge. I don't know whether it works for 1.2 but I see no reason
why it shouldn't.
On Jun 7, 10:13 am, wewo [EMAIL PROTECTED] wrote:
Dear all,
What would be your implementation recommendation (controller side) for
setting up
I have situation when i need to have a list of all controllers, to
generate menu to access all of them
Currently i keep custom array with the list of already created
controllers, but this way is not acceptable
I want to have new controllers appear in menu
Can anybody help me with it?
Have just updated it now:
http://bakery.cakephp.org/articles/view/improved-upload-behaviour-with-thumbnails-and-name-correction
Included how to access it in your model, and some basic SQL.
On 6/7/07, Mariano Iglesias [EMAIL PROTECTED] wrote:
I published your article on the bakery just now,
I supposed you could base it off of the contents of the controllers folder.
igor'OK wrote:
I have situation when i need to have a list of all controllers, to
generate menu to access all of them
Currently i keep custom array with the list of already created
controllers, but this way is not
Thread hijacking isn't nice...
On 6/6/07, Allen Romero [EMAIL PROTECTED] wrote:
Is there a good example of how to upload an image to the server and
serve it up, etc?
thx in advance,
allen
On Jun 6, 2:38 pm, AD7six [EMAIL PROTECTED] wrote:
peterhf wrote:
I have been influenced by
It's working fine for me!!
Ketan
Sebastian Macias wrote:
Hello,
I just wanted to let the guys in charge know that the registration for
the bakery has been broken for at least 2 months. Every time I try to
register I get a blank page after I submit the form.
Thanks,
Sebastian
Hi,
I thought that I would share my recent experience with the group of
moving my CakePHP development environment from:
Eclipse (with PDT) on Windows (XP)
to:
Eclipse (with PDT) on Linux (Fedora 7 - 64 bit)
As you can imagine, this has been a huge challenge. I have some
experience
The tutorial is based off of code from the 1.1 branch, hence the
warnings and the errors when using 1.2.
I know it's not easy for a beginner, but follow the warnings about
depricated functions and see if you can make them go away.
On 6/7/07, Hans [EMAIL PROTECTED] wrote:
New here to CakePhp,
If you could paste your 'function edit()' from your controller, this
would help us pointing the problem. Most probably, it looks like you
do not have an argument id in the edit function call, but can't be
sure unless I see the code.
Another question is did you 'bake' your controller or you
Eclipse with PDT on Linux has been my primary developing environment for
CakePHP for months -- VERY smooth. I rarely install the
distribution-specific packages for eclipse, because they like to put
files all over the system, whereas an eclipse download is all in the
eclipse folder.
As far as
Many of the HtmlHelper functions moved or reincarnated in FormHelper.
The 1.2 Api has been my primary source of comfort in learning
CakePHP.
Hans wrote:
New here to CakePhp, really excited since this is exactly what im
looking for! (writing endless repititive/boring code became a big
I run the 32b version and find it very smooth. You may find that
increasing the memory available to the JVM helps make it smoother:
eclipse -vmargs -Xms256M -Xmx512M
This will set the minimum memory to be 256Mb, and max 512Mb. I find
you don't need to give Eclipse more than 1Gb (on a 4Gb
Hey Rohman!
Thank you for your reply. My problem isn't to manage the language. I
do this with the built in i18n-Function of Cake 1.2
My problem is simpler I think. I just don't really understand how to
work with the variables from the form.
How do I get the result from my select-field the best
I read manual. And I have model for my controller. My controller's
code is:
$this-Vendor-bindModel(array('hasOne'=array('Model')));
$fields = array('Vendor.name', 'Vendor.safe', 'COUNT(Model.vendor_id)
AS count');
$conditions = 'GROUP BY Vendor.id';
$order = 'Vendor.name ASC';
$result =
If anything, the cake devs are a lot more active on this project than
many other open source projects I've come across. I don't see any
difference between here and pretty much any app that's out there as
far as dev goes; If you want stable, use their stable app, if you want
bleeding edge, use
Alexey Kuimov [EMAIL PROTECTED] wrote:
And it works, but if I change `count` to `Vendor`.`count`, I get SQL
error #1064
Look at http://dev.mysql.com/doc/refman/4.1/en/error-messages-server.html
and see that error 1064 is ER_PARSE_ERROR,
so look at
Here you have some code, i hope it works to you
In the model ( colega.php )
sorry, if you wanted a Dropdown ( select )...
here it goes:
[ controller ]
// That's to create the array of OPTIONS in the Select [ thinking you
have a categories table on your DB ]
$this-set('mycat',$this-Category-
generateList(null,null,null,'{n}.Category.id','{n}.Category.name'));
[ view ]
Ok, I understand you. All problems was in SQL syntax. But I need to
get result in a single array. Now count values are in additional array
[0]. If I'll create separate query for count, how to sort my result?
On Jun 7, 7:17 pm, MJ Ray [EMAIL PROTECTED] wrote:
Alexey Kuimov [EMAIL PROTECTED]
Thank you for your help!
I solved the problem with a little chat in the cakephp irc-room.
Now I have an idea of working with the forms. Your posting will help
me with my next bigger forms.
A keypoint for me was to know where I have to fill the Session-
Variable with the data from my little
Hi All,
I am starting to use cake 1.2 for a project. I want to do things in
the cake way and on the simple tests db I wanted to retrieve the
street name by soundex as well as checking the soundex of the reverse
string.
My query look like this :
// this is needed to reverse the utf-8 string
I'm very new to cake and just read the documentation on layouts. My
particular app has two main content areas... one for the views on the
right and another for section navigation on the left. After reading
the documentation it sounds like I only have access to one content
area within the layout,
If I understand what you're saying... the only built-in content
variable is $content_for_layout which comes from the output from the
currently-executing view.
However, layouts have access to the variables that you set in your
controller with $this-set() -- so you may be able to achieve the
On Jun 7, 2007, at 9:47 AM, Joshua Benner wrote:
If I understand what you're saying... the only built-in content
variable is $content_for_layout which comes from the output from the
currently-executing view.
However, layouts have access to the variables that you set in your
controller
On 6/7/07, mrtopher [EMAIL PROTECTED] wrote:
I'm very new to cake and just read the documentation on layouts. My
particular app has two main content areas... one for the views on the
right and another for section navigation on the left. After reading
the documentation it sounds like I only
I agree, I've found elements to be an excellent way to reproduce content
on multiple pages. In the series of applications we're working on now,
the default layout displays an element that produces navigation based on
data obtained from the controller (tabs across the top).
Chris Hartjes wrote:
Ok, I think I get it. So then in my views I would have the html for my
two columns with the forms or whatever on the left and then within
that view I would include the element or elements that I want to show
up on this page (specifically the section options). Sounds like I
might have to replicate
That's because it was fixed yesterday :)
-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.MarianoIglesias.com.ar
Hi,
In my Users table I have a boolean field named active and defined as
a tinyint(1).
The Edit screen nicely shows this field as a checkbox. This seems to
be some magic of:
$form-input('active')
Now, this field is simply displayed as a 1 or a 0 in the View or List
screens. The scaffolded code
El 07/06/2007, a las 18:18, mrtopher escribió:
Sounds like I
might have to replicate a little more HTML than I would like but I
think it could work.
AFAIK, you could insert elements in your layout via
echo $this-element ('elementName');
so, you could have your containers in the layout,
Hey!
I'm having problems with caching for my view, which creates dynamic
images. (thumbnails to be exact)
Most of the images work fine, but every now and then the images are
corrupt. I've analyzed the problem and the reason seems to be that the
raw image data in the cache contains a ? character
If the left handed content is static, you can add the content in the
layout through ? echo $this-renderElement('the-element'), ?. This
element must be in app/views/elements/the-element.thtml as a simple
html.
If the left handed content is dinamically generated, you need to
insert it through ?
On 6/7/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hey!
I'm having problems with caching for my view, which creates dynamic
images. (thumbnails to be exact)
Most of the images work fine, but every now and then the images are
corrupt. I've analyzed the problem and the reason seems to be
You are correct, the tmp directory is outside the Cake directory
structure. I solved the problem by bypassing the fopen function and
moving the file to a local directory. Thanks for the help.
Peter -
On Jun 3, 10:02 am, francky06l [EMAIL PROTECTED] wrote:
Are you sure the tmp you are accessing
Hi,
I've got a data schema where a parent table has multiple child tables,
and I'd like the child tables to know about each other, but they can
only be related via multiple columns.
Specifically, the parent table (Programs) hasOne child tables called
ProgramResults and ProgramResultsRanks. Each
Okay, so I solved this myself. Posting this as it might be of help to
a someone else starting out with Cake.
You can tell controller to use additional models using $uses var at
the beginning of your controller, but you have to specify the current
controller in the array:
In my case I have 2
Hi all,
i had some problems with the validation mechanism in cake 1.2, so i
went right into the code.
i learned that there is something that don't work as it supposed to
work.
if i have a model with the member
var $validate = array(
'alias' = array(
On 7 kesä, 20:10, Chris Hartjes [EMAIL PROTECTED] wrote:
On 6/7/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hey!
I'm having problems with caching for my view, which creates dynamic
images. (thumbnails to be exact)
Most of the images work fine, but every now and then the images
hi,
i have a very simple ajax example of deleting a row in a table.
everything works fine.
my problem is, what happens if i have more than 1 table (that means i
have for example
TABLE1 with tbody id=user1, TABLE2 with tbody id=user2. the
problem is the user.thtml, i dont know how many tables i
I will send you my php.ini once i get home. What is your setup? WAMP
or LAMP?
Ketan
Lemune wrote:
Hello again.
I have tried your suggestion (Ketan Patel), and I don't see the
printout on 2nd visit.
Your suggestion is to fix it in php.ini.
I need help in this matters, because i don't know
On Jun 7, 4:11 am, jewei [EMAIL PROTECTED] wrote:
I'm using cakephp 1.1.
yesterday i implemented an ajax search form to cake. but as i type in
the search box, IE came out an error saying, Stack overflow at line:
0.
how can i debug?
the ajax search
Hi Josh
Eclipse with PDT on Linux has been my primary developing environment for
CakePHP for months -- VERY smooth. I rarely install the
distribution-specific packages for eclipse, because they like to put
files all over the system, whereas an eclipse download is all in the
eclipse folder.
On Jun 6, 12:41 pm, Chris Hartjes [EMAIL PROTECTED] wrote:
On 6/6/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hello,
Anybody has any insight into the different type of session storage
(cake vs. php vs. database) when it comes to performance?
I would assume database is slower, but
Hi Chris
As far as having multiple java installations, do some reading about the
alternatives system -- perhaps start with 'man alternatives'
The alternatives is a feature of Debian-derivative distros so will not
appear in Fedora.
Strangely enough then, it does :-) Alternatives is
Chris Lamb wrote:
Joshua Benner wrote:
As far as having multiple java installations, do some reading about the
alternatives system -- perhaps start with 'man alternatives'
The alternatives is a feature of Debian-derivative distros so will not
appear in Fedora.
Actually, Red
On 6/7/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Thanks for the info.
My assumption (unfounded apparently) was that accessing data in the
session
when stored in the database would require round trips to the database
which is slower than accessing the local disk.
Thanks again, I'll
Hi Tane
I run the 32b version and find it very smooth. You may find that
increasing the memory available to the JVM helps make it smoother:
eclipse -vmargs -Xms256M -Xmx512M
Good point.
This will set the minimum memory to be 256Mb, and max 512Mb. I find
you don't need to give Eclipse
Chris Hartjes wrote:
On 6/7/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Thanks for the info.
My assumption (unfounded apparently) was that accessing data in the
session
when stored in the database would require round trips to the database
which is slower than accessing the local
Joshua Benner wrote:
As far as having multiple java installations, do some reading about the
alternatives system -- perhaps start with 'man alternatives'
The alternatives is a feature of Debian-derivative distros so will not
appear in Fedora.
Right now I develop on Ubuntu 7.02 with Eclipse
I think you've just got your rule wrong - this looks like the expected
result to me. Your test string does have valid characters in it...
Do you want your rule to match strings which only have lowercase,
numeric, or space characters (no uppercase / other stuff)? In that
case you have to
Hi,
I have a server where I'd like multiple applications to share not only
the same core cake libraries but also the same core.php and
database.php configuration files.
E.g.
/cake
/app1
/app2
/app3
.
.
.
/appX
To accomplish this, I copied /app1/config/core.php and /app1/config/
database.php
I got mine working using HABTM as described in the OP.
1. Followed steps in original post.
2. Commented out both references to $row[$this-user_model][$this-
user_table_gid];
3. In function _othCheckPermission, changed:
if(!isset($ses[$this-group_model][$this-permission_model]))
to:
I haven't tried this yet, but I've considered using symlinks to share
resources among applications on the same server.
Tim wrote:
Hi,
I have a server where I'd like multiple applications to share not only
the same core cake libraries but also the same core.php and
database.php
I use neither of both.
I use php-5.2.2-Win32, apache_2.2.4-win32-x86-no_ssl (Installer),
mysql-5.0.37-win32 (Installer), cake_1.1.15.5144, and
phpMyAdmin-2.10.0.2-english.
Ketan Patel wrote:
I will send you my php.ini once i get home. What is your setup? WAMP
or LAMP?
Ketan
Lemune wrote:
I wasn't trying to hijack the thread. I was asking a serious question
related to the previous post.
Thx for all the responses!
On Jun 7, 5:17 am, Chris Hartjes [EMAIL PROTECTED] wrote:
Thread hijacking isn't nice...
On 6/6/07, Allen Romero [EMAIL PROTECTED] wrote:
Is there a good
Refer to http://cakeforge.org/snippet/detail.php?type=snippetid=189
This has the sessions section for php.ini. Your setup is commonly
known as WAMP (Windows, Apache, MySQL, PHP)
Compare with yours and adjust accordingly!
On Jun 7, 9:30 pm, Lemune [EMAIL PROTECTED] wrote:
I use neither of
On 6/7/07, Mariano Iglesias [EMAIL PROTECTED] wrote:
That's because it was fixed yesterday :)
Sneaky! eh?
Thanks for fixing it
T
--
=
Cheesecake-Photoblog: http://cheesecake-photoblog.org
PHP for E-Biz: http://sanisoft.com
On 6/7/07, Juan Pablo Araya [EMAIL PROTECTED] wrote:
If the left handed content is dinamically generated, you need to
insert it through ? echo $this-requestAction('/mycontrollers/
myfunction'); ?. In mycontrollers controller you must have:
Also check out Andy's mini controllers - they do the
On 6/7/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Yeah, change your php.ini settings so that it's not using short tags.
That occurred to me, but unfortunately I'm on a shared host so I can't
configure php myself. :( Thanks though.
Not even using .htaccess? Change your host !!
T
--
Hello,
I want to have new controllers appear in menu
I wrote this code some month ago. (based on the cakeinfo)
cakeinfo()
http://www.1x1.jp/blog/2007/01/cakephp_cakeinfo.html
shun
/**
* make file list
*
* @param array $dirPaths
* @return array
*/
function
Ok.
I will try.
By the way WAMP that i think that you ask is WAMP installer that come
from Roman Bourdon (Like php triad and XAMPP ).
:-))
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to
77 matches
Mail list logo