Ok, I think I didn´t understand your problem properly, xOrster! ;o)
I didn´t know that you want all actions redirect to index, except
history.
I think the answer by AD7six is right. I didn´t test it, but it sounds
correct.
Cheers.
--~--~-~--~~~---~--~~
You
Ok, I think I didn´t understand your problem properly, xOrster! ;o)
I didn´t know that you want all actions redirect to index, except
history.
I think the answer by AD7six is right. I didn´t test it, but it sounds
correct.
Cheers.
--~--~-~--~~~---~--~~
You
I don't know if this can be done automatically just using a single
route. If you want:
http://host/blog/test = Blog-Index('test')
BUT
http://host/blog/history/2006 = Blog-History('2006')
Then one thing you could do is hand over the routing logic to your
BlogController's index function, by using
You are right :D.
I have 3 select tags (select1, select2 and select3). I want to modify
the content of select2 when I choose an option from select1, and the
same with select2 to select3.
Now i don't use the observeField, I have change it for the following
code:
formulario.thtml
On 9/27/06, GL [EMAIL PROTECTED] wrote:
...But how can I create interface for /admin/ url itself?Should I make 'admin' controller? Or what?In most of my applications I am creating a seperate administrators_controller that works very similarly to the way a users_controller would.
Then in
John Zimmerman [EMAIL PROTECTED] wrote:
[...] When you contribute content to the
Bakery it does and should be considered a donation to the cake
foundation. [...]
As I understand it, the foundation is in the US, so it would need
written copyright assignment from all contributors before it
Thanks Chris,
I think it solved it.
--~--~-~--~~~---~--~~
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
Im trying to write a Comment system to extend the simple blog tutorial
on CakePHP website and im currently stuck on how i would be able to
pass a few simple things between my comments_controller and my
posts_controller.
Am i right in thinking that the models/comment.php is the place where i
Im not sure if i have setup any form of association between Posts and
Comments, although i have got it so that i can display the comments on
posts/view/
Heres my Posts and Comments controllers and my posts index.thtml
http://pastecode.net/?action=viewposttag=1007
I dont think i have it setup to work that way, below is the controllers
for posts and comments along with the index.thtml of posts
http://pastecode.net/?action=viewposttag=1007
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
I dont think i have it setup to work that way, below is the controllers
for posts and comments along with the index.thtml of posts
http://pastecode.net/?action=viewposttag=1007
hi.
you need a association in your post-model like this:
public $hasMany = array('Comment' =
Without sounding to stupid, is the $hasMany basicly away of joining up
controllers?
--~--~-~--~~~---~--~~
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
On 9/27/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Without sounding to stupid, is the $hasMany basicly away of joining up
controllers?
$hasMany is a way of linking models to each other by building
associations between them. Here's a quick example:
A Class has many Students
Students
On 9/27/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I dont think i have it setup to work that way, below is the controllers
for posts and comments along with the index.thtml of posts
http://pastecode.net/?action=viewposttag=1007
If I understand your problem correctly (always dangerous to
I want to have some simple forms in my app to do things that need not
be recorded in a db.
What do people think is the best way to handle form submission handling
and, importantly, form/model validation in the most cakey way?
--~--~-~--~~~---~--~~
You received
Thanks Chris and Daniel, i've got things working now... although i
still dont really understand :D
Im slowly getting there http://cake.phunky.co.uk/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
On 9/27/06, Chris Hartjes [EMAIL PROTECTED] wrote:
Placing data validation and other data
munging in the model seems to be the way of this definition. Food for
thought, that's for sure.
I second that. Data validation rules (or business logic/business
rules) should be enforced on your data at
Thank you God, Budda, The Universe, and every other representation of
the higher power for influencing Chris into making this post.
As explained in the previous post,
I'm in the process of re-writing my application to put all data related
functionality in the Models (where it used to be in the
On 9/27/06, Sonic Baker [EMAIL PROTECTED] wrote:
Thank you God, Budda, The Universe, and every other representation of the
higher power for influencing Chris into making this post.
It was a bit of serendipity really that led me to doing it, and I'm
glad I could help you out. However, I feel
On 9/27/06, Chris Hartjes [EMAIL PROTECTED] wrote:
However, I feel it important to point outthat adherance to standards for adherance's sake is a common anddangerous practice for developers.
Well it was more of a worry about being totally wrong than adhering to
standards with a little 'code with
Why would you want a catch-all? What would you want to do if someone
hit http://localhost/blog/sumthin ?
However, with the way that AD7six explained it, it should create your
catch-all functionality.
The bad thing is that you may have to define a route for every method
in the blog controller
Jeff, I may give up and actually go with ACM. However, I like the
challenge of doing this stuff myself and really customizing how it all
works and stuff. I'm not ready to throw in the towel yet.
--~--~-~--~~~---~--~~
You received this message because you are
On 9/27/06, Jon Bennett [EMAIL PROTECTED] wrote:
if you have setup an association between Posts and Comments, this info
should already be there, try pr ($this-Post-findAll); in your
controller to see what's there, because you should be able to jsut
count() the comments, eg:
It seems a bad
Try findCount: http://wiki.cakephp.org/docs:method:findcount
--~--~-~--~~~---~--~~
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
I took the blog example from the cakephp manual to explain what I want,
but i'm not developping a blog but a web gallery, for example :
I have 2 galleries : foo, and bar
I want to access them from http://host/galleries/foo and
http://host/galleries/bar
If someone try something else like
WoW! Those guys are so smart.
--~--~-~--~~~---~--~~
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
WoW! Those guys are so smart.
--~--~-~--~~~---~--~~
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
Hi, I am really new to Cake and have been through some of the
tutorials.
I have found it a little hard at this stage to work out how to achieve
some usually quite simple things. I did try and find a good example of
this but with no luck.
For example; the Posts tutorial. I wanted to output a
you could still use a Model if you wanted, and the validation found therein.
I think you can simply set the Model var
$useTable = FALSE;
or failing that,
$useTable = null;
There was a discussion a while ago as to which one of the above
worked. So try them both, I'm sure one of them does.
fantastic!
i thought that would be the case, but just wanted to confirm.
thank you AD7six, and thank you 'The Wizardry of Cake'
On 28/09/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
WoW! Those guys are so smart.
--~--~-~--~~~---~--~~
You received this
For saving if you have the data coming from a view :
$this-params['data']['model']['pw'] =
md5($this-params['data']['model']['pw'] );
// or any variable you choose to save your data in the form
($this-params['form'] contains all )
$this-model-save();
alternatively you can use saveField method
For saving if you have the data coming from a view :
$this-params['data']['model']['pw'] =
md5($this-params['data']['model']['pw'] );
// or any variable you choose to save your data in the form
($this-params['form'] contains all )
$this-model-save();
alternatively you can use saveField method
For saving if you have the data coming from a view :
$this-params['data']['model']['pw'] =
md5($this-params['data']['model']['pw'] );
// or any variable you choose to save your data in the form
($this-params['form'] contains all )
$this-model-save();
alternatively you can use saveField method
A little update. I removed my CORE_PATH entry with no apparent ill
effects. I'm not sure why I thought I needed that.
The Class not found issues were resolved by calling use() in my test
case setUp() method. I needed both Inflector and Configure, so the call
ended up being:
uses(Inflector,
34 matches
Mail list logo