On 9/29/06, Neves <[EMAIL PROTECTED]> wrote:
My site has many static pages, that I don´t want to createmodel/controller for each one.How can I map to those pages and where there should be(view/pages/etc)?I want to keep using cakePHP friendly urls and put those static pages
inside my default templat
My site has many static pages, that I don´t want to create
model/controller for each one.
How can I map to those pages and where there should be
(view/pages/etc)?
I want to keep using cakePHP friendly urls and put those static pages
inside my default template.
--~--~-~--~~--
When will be CHM-format documentation updated? It isn't even finished..
--~--~-~--~~~---~--~~
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
You can set this up by modifying the entries in /app/config/routes.phpIf you take a look at the entries there it should make sense about what you should do (there is an entry routing "/").
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
Does anyone have mod_rewrite working properly under Debian Etch Testing?I cannot get the directives in the .htaccess files to work properly. I had everything working properly under Ubuntu 6.06, but decided to load Etch and am not sure if I am configuring something wrong or there is something wrong
On 9/29/06, MJ Ray <[EMAIL PROTECTED]> wrote:
If the foundation publishes a book of the Bakery without acknowledgingthe authorship and copyrights of any contributors, I think it's highlyprobable at least one of them would start legal proceedings. I would,
but I'm not contributing, thanks to this t
If I have a model (say ModelA) and it has a relationship to another
model (ModelB). I can access ModelB in ModelA by $this->ModelB. How
can I associate ModelB without a relationship.
For example. If i wanted to write a sting field to ModelB every time I
save data to ModelA I can place $this->M
Hi,
I was playing around with the "Simple User Authentication" example
found in the cake manual:
http://manual.cakephp.org/appendix/simple_user_auth
How would I go about using this as the very first page in my cakephp
site?
The example places it inside "views > users" and URL looks like this:
h
Hello,
This is pretty basic I think.
I have a one to one relationship between an 'Item' and an 'Image.' The
images will be stored as BLOBs. I'm wondering if I should try to get
away
with making the Image attributes part of the Item Model. i.e..
image_size,
image_type, image_name, image_data, are
You can grab the svn version from
https://svn.cakephp.org/repo/branches/1.2.x.x/. Lot's of new features
have been added already, including the Overloadable class. You can
look at the Model class for a __call usage example. (It's actually
called __call__ in the class).
--~--~-~--~~
Hi all,
I've noticed a strange behavior in Firefox when using the observeField
ajax helper in conjunction with form SELECT elements, and I'm hoping
somebody has a solution.
I'm using ajax->observeField to observe a form select element;
according to the option that a user picks, data is gathered
If each row corresponds to the data from model which has id field, maybe I would make each checkbox with the row's id as its value,then you will receive the array with selected rows' id.Am I missing anything?
Hope this helps.Sohei
--~--~-~--~~~---~--~~
You received
I have always had to do 'field/' so that I get a bunch of data[field][]
and then do a foreach on them, counting along the way and getting the
rest with $i. I don't know if there is a better CakePHP way to do it,
but I would sure like to know as well.
--~--~-~--~~~---
On Sep 29, 2006, at 1:21 PM, [EMAIL PROTECTED] wrote:
>
> Hi, all,
>
> I ran through the tutorial at
> http://manual.cakephp.org/appendix/blog_tutorial%22, and after
> modifying MySQl to use old passwords (since I'm using PHP4.4.1 and
> it's
> not set to use MySQLi), and messing around with th
Hi, all,
I ran through the tutorial at
http://manual.cakephp.org/appendix/blog_tutorial%22, and after
modifying MySQl to use old passwords (since I'm using PHP4.4.1 and it's
not set to use MySQLi), and messing around with the mod_rewrite
settings as much as I can stomach, I still can't get the si
Hi all,I'm a newbie trying to determine which rows in a table display have been selected. I have created a html table, column 1 is select box, the rest have data.I would like to select one or more rows, then select a command from a drop down list box, and then process each selected row according t
emiliano,
Thanks, I want to make it a great asset to everyone who uses ACL and
CakePHP.
We will be deifinatley supporting HABTM for users and groups, also I
will make it more user firnedly when it comes to moving users.
Thanks for the input!
~rpeterson
>rpeterson, ACM is one of the greatest
gwoo wrote:
> Well, in 1.2 we have the Overloadable class which may help out.
How far away would you say we are from a stable release of 1.2?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To pos
[EMAIL PROTECTED] wrote:
> Anyway, as long as it is stated in the Terms of Use and we all check
> that box, then we agree to whatever it says. So, if it says that and
> that is what it means then you can't say that they don't get copyright.
Yes, you can, as it seems that copyright cannot be tran
Hi guys,
I know you have been having fun going back and forth, but..
I posted new, simplified terms the other day at http://
bakery.cakephp.org/pages/terms
Please read them and comment if you still have problems or
misunderstandings.
Thanks
Gwoo
--~--~-~--~~~---~
Well, in 1.2 we have the Overloadable class which may help out.
--~--~-~--~~~---~--~~
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 t
try searching the group
http://groups.google.com/group/cake-php/search?group=cake-php&q=two+div+nate&qt_g=1&searchnow=Search+this+group
(btw a trick to shrink number of results is to add nate to the end of
the query ;)
Sam D
On 9/28/06, carlosrg <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I have the
That is a pretty standard problem with any Cygwin based program - the
distributed copy of cygwin may not be the same as a previously
installed copy. Ways of handling the problem are also pretty standard,
and can be found through a google search.
I have nothing against WAMP, I simply find it to b
Hi there!
New release of your packaged manuals.
Grab it at: http://cakeforge.org/frs/?group_id=53&release_id=137
[Notes]
Greatings Bakers,
This new naming may confuse you but here's the deal:
- The documentation has been relocated to it's own repository, so the
SVN revision is a tad lower than
Well look at that. Learn something new everyday.
--~--~-~--~~~---~--~~
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
Anyway, as long as it is stated in the Terms of Use and we all check
that box, then we agree to whatever it says. So, if it says that and
that is what it means then you can't say that they don't get copyright.
Now, it makes it harder to argue in court which is why others fill out
tons of paperwo
:S im sorry, not sure what you one about with the $_ arrays?
--~--~-~--~~~---~--~~
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
A quick extra question, how do i go about making it so the new comment
can have an effect attached to it?
As the way ive got it working atm, after the new comment is saved it
pulls back all the comments again and then just updates the comment div
[see-below]
http://pastecode.net/?action=viewpost
I think you just want the helper methods you create to be black boxes
where you stick something in and get it formatted back out to you in
the end. No need to try and setup the whole post and then just call
the methods to extract what you need from it. Plus, then it makes the
helper extensible t
dkni, read the model, understand how MVC works. By default associated
models are loaded so you can make calls to the with
$this->ModelName->AssociatedModel.
But if you need to load up some others (really try and think of a way
not to do this a lot).
$uses = array('ModelName', 'otherModel');
The
Don't worry Chris. I just recommend that beginners try and use the
helpers because they can get the most help from CakePHP people if they
do since it is a standard. Although is a bit confusing that it is made
to use scriptaculous yet they call it complete instead of onComplete as
in the scriptac
Hellow, folks!
I need create elements to be shared by diferent apps in the cake
enviroment (like a global element). Is it possible?
I know it's possible create Helpers to be shared this way by putting
them in cake_version/cake/libs/view/helpers.
I've tried to create an element in
cake_version/cak
Hi
I have the following code:
$html->selectTag('SerialNumber/software_id', $softwareArray,
$serial_numbers['SerialNumber']['software_id'], array('id' =>
'serialnumber_software_id', 'onchange' => "new
Ajax.Updater('ajax_serialnumber_version_id','/prueba/index.php/serial_numbers/ajax_actualize_ver
Hallo, friends!
CakeX project (CakePHP AJAX transport layer based on xajax) released
0.1 alpha version (with demo and API documentation). It uses xajax
trunk code (rev. 255), so it utilizes new xajax feature: XAJAX PLUGINS
- even before first xajax 0.5 alpha is released (planned to 3.10.2006).
C
Hi everyone,
I have an application to write with CakePHP, and I need to display some
statistics (men/women, people in each department, ...). In the MVC
model, which is the best way for doing this ? I hesitate between doing
this in the model, with new methods to access those values, or in the
cont
Well the thing that took me to jQuery before was the way they use CSS
Selectors and as im big XHTML/CSS fan it was simple for me to pick up
and start throwing out advance effects.
I've actualy finaly managed to wrap my head around what was going wrong
with the form and now having it working :D
A
I see, that i can read the value of the input field by using
JavaScript. But that is client- and not server-based.
So, I think, that the only way to succeed is another form, which holds
the "Cancel"-Button. By clicking the "Cancel"-Button, the the value of
the ID-Field is send to the server and he
I think the manual talks about using the table/field name of
Category/Category and making it a multiple selection dropdown. Then it
will save the HABTM relationship automatically on create. Now, I am
not sure if there is something automagic if you need to maintain the
relationship.
One thing I
On 9/29/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> I don't recommend using jQuery. Learn to use the AJAX helper to your
> benefit. Personally I am going to use Event Selectors and hand write
> my AJAX this time around just so it is altogether now.
>
> The scriptaculous library is very
I don't recommend using jQuery. Learn to use the AJAX helper to your
benefit. Personally I am going to use Event Selectors and hand write
my AJAX this time around just so it is altogether now.
The scriptaculous library is very easy to use. And yes it is hard to
wrap your brain around AJAX and
Hi everyone.
Concerning the subject, the example in the manual uses a multiple
select tag, but I prefer checkboxes for usability reasons.
Is there a simple way to do that automatically, or should I going on
coding it by myself?
function admin_add() {
$this->layout = 'admin';
$cat
I actually know jQuery quite a bit, but only more on the effect side of
things.
I belive a jQuery helper is on the way for CakePHP?
I still dont get how this works, i cant seem to grasp it at all...
--~--~-~--~~~---~--~~
You received this message because you are
In my controller I have...
function index()
{
return $this->set('data', $this->Enquiry->findAll());
}
In my view (template/index.thtml) I have..
renderElement('index',
array('data'=>$this->requestAction('
AD7six wrote:
> Hi Scott,
>
> I think the easiest way to deal with that is define in your model the
> method afterFind. use a loop to go through the results and define what
> you need. There is no need to worry about removing the data before
> saving - if there is no corresponding field the data
On 9/29/06, Brian Wisti <[EMAIL PROTECTED]> wrote:
Now that everything is basically working as advertised, it looks likeI'm going to experiment with the ModelUnitTestCase class athttp://cakephp.org/pastes/show/99b95734fbb3b5a90d9b20adbc381aa9
tostreamline the test database interaction.
Hi Brian,
Hi there,
I would like to have an hidden input field with the actual ID. When he
clicks on a Link, the Data with the given ID should be deleted.
my code in the "view.thtml":
hidden('Input/id'); ?>
now i would like to have a Link at the bottom:
link('Delete', "/inputs/delete/{$tempID}", null,
'S
Hi all,
I want to create an overloadable helper. It works fine on PHP5 with the
__call function, but how can I make it work with both PHP4 and PHP5?
Any ideas?
Thanks.
--
Daniel Hofstetter
http://cakebaker.42dh.com
--~--~-~--~~~---~--~~
You received this messa
Damnit. Why do I always figure these things *immediately* after
posting them, no matter how many hours of headscratching they've
caused?
Reading through my own post I noticed that my afterFind method was
written to process the data in a way that only lets it run when
findAll() is used on that met
i stopped using the build in javascript / ajax functions. they can be
confusing sometime and prototype is not very intuitive to write/read ..
understand.
Instead i´m using jQuery now, which really enlightend me. I hated JS
before but with jQuery an ajax form submit can be as easy as this on
line
It seems my afterFind methods are not working when the model is fetched
via an association.
I'm using 1.1.8.3544, but have found this in previous versions too...
Looking at dbo_source, it seems like the afterFind methods should be
triggered for all associations (around line 594), but that's not
I am using wamp and it is working fine for dev.Tried your complete dowload out. lighttpd crashes when the start script is run. It is complaining about mismatched cygwin1.dll and wants me to delete duplicates. I have a current version of cygwin installed.
--~--~-~--~~~--
If you have write associations between the tables (in MODELS) cake does
the sql stament itself. But if you want to write your own query:
$query("SELECT `Version`.`id`, `Version`.`name` FROM `versions` AS
`Version` LEFT JOIN `softwares` AS `Software` ON
`Version`.`software_id` = `Software`.`id`")
What format are you looking for?
For just accessing the raw content, Google is your friend:
http://64.233.183.104/search?q=cache:mF9lQwsqF_4J:cakephp.org/files/cakesheet.pdf
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Hi there guys, now i know this is a really checky thing to ask but i
just dont know how to get Ajax forms to submit and update content on
the same view
http://pastecode.net/?action=viewpost&tag=1014
On the above link you will see the basis of what i currently have for
http://cake.phunky.co.uk, w
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> [...] But if I extract my code and post to a public domain like the
> Bakery then I am forfeighting my rights to the code since no one has
> to login to view the code. [...] I am not a lawyer either, but after
> things getting pretty hairy on a f
dkni wrote:
>
> I am using Fedora now. I have no idea how to do that.
Do what? Extract the archive or create/give access to tmp directory?
Bye
Davide
--
By the power of Greyskull...
signature.asc
Description: OpenPGP digital signature
ah right! that could be the reason!
>
> maybe you have extracted the zip using winzip. Winzip by default (i
> don't know if it's settable) didn't extract empty folders contained in
> the zip archive. If so, try for example winrar or a porting of tar for
> windows :).
>
> However as Pape said, it
Im starting to create a nice simple helper for formating elements for
my blog app, im just wondering what would be the best way of doing
parts of it.
Im basicly wanting to do stuff like $formating->title($before,$after);
or $formatting->content(); but i dont really want to have to pass
through th
I am using Fedora now. I have no idea how to do that.
--~--~-~--~~~---~--~~
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,
dkni wrote:
>
> ok i will thx u
maybe you have extracted the zip using winzip. Winzip by default (i
don't know if it's settable) didn't extract empty folders contained in
the zip archive. If so, try for example winrar or a porting of tar for
windows :).
However as Pape said, it should be enough
ok i will thx u
--~--~-~--~~~---~--~~
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 to [EMAIL PROTECTED]
For mo
i´ve downloaded the latest version of cakephp (zip-file) a minute ago
and there is a tmp folder in app/! :o)
i don't know what happens if you make the tmp folder manually and set it
writeable.
will cake make the subdirectories automatically?!
> I downloaded it but there is no tmp folder :(
>
>
I downloaded it but there is no tmp folder :(
--~--~-~--~~~---~--~~
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 ema
usually the tmp folder is in the cake-zip!
the tmp folder have to be writeable!
> Warning:
> file_put_contents(/PATH_TO/app/tmp/cache/models/default_FOLDER_list)
> [function.file-put-contents]: failed to open stream: No such file or
> directory in /PATH_TO/cake/basics.php on line 835
>
> Hi Guy
You want two or more tables in one model?? that?s impossible, i think.
You should work with associations!
Maybe you should read the manual first..
http://manual.cakephp.org/chapter/models
> yup. but how do i have multiple tables in one Model?
>
>
> --~--~-~--~~~
Warning:
file_put_contents(/PATH_TO/app/tmp/cache/models/default_FOLDER_list)
[function.file-put-contents]: failed to open stream: No such file or
directory in /PATH_TO/cake/basics.php on line 835
Hi Guy,
I am having this problem. I downloaded the lastest version of Cake but
I didn't have tmp fo
yup. but how do i have multiple tables in one Model?
--~--~-~--~~~---~--~~
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, s
> set member "$useTable" if your table name is different to your model name.
>
>
i meant: if the table name is not the plural of the model name.
of couse, in my example table name and model name are equal! ;o)
--~--~-~--~~~---~--~~
You received this message
hi.
set member "$useTable" if your table name is different to your model name.
class User extends AppModel
{
var $useTable = 'user';
...
}
is this what you want to know?
cheers.
> Can I have a table name that is singular and how should I implement it
> in model?
> Everytime when I r
69 matches
Mail list logo