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
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
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
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] =
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
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
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
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' =
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
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
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
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
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
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?
@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
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
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
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
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
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.
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
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/
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
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!
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
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
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()
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
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
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
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
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
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(){
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
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
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;
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:
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
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
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
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
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
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
@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/'.
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
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
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
...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
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.
I was just forgetting in cake 1.2 once you are in the cake
installation dir you must
--
cd cake/console
--
and
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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,
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
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/
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 -
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
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
70 matches
Mail list logo