Thanks, looks good.
is it possible to use it with cake 1.1?
--~--~-~--~~~---~--~~
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 g
if you are using CakePHP 1.2, Behavior will definitely help in
creating those logic in where/what table will the information be
saved. checkout the Behavior::beforeSave() and other callback methods.
--~--~-~--~~~---~--~~
You received this message because you are s
The Model::bindModel()/unbindModel() is listed in the cakephp manual
http://manual.cakephp.org/chapter/models (latter part) or the api
http://api.cakephp.org/1.2/class_model.html#0b969d5264205cd3a425980dd53e9658
this a way to alter the associations (hasOne, hasMany ...) on the fly.
This will make
Okay, thanks Grant.
On Sep 4, 10:36 pm, Grant Cox <[EMAIL PROTECTED]> wrote:
> You want Post belongsTo User, User hasMany Post.
>
> On Sep 5, 3:25 pm, beetlecube <[EMAIL PROTECTED]> wrote:
>
> > Hi, hope someone can clear this simple thing up.
>
> > I have a Post model (posts table)
> >
Consider this differents patterns for mapping inheritance to sql
tables:
http://www.martinfowler.com/eaaCatalog/singleTableInheritance.html
http://www.martinfowler.com/eaaCatalog/classTableInheritance.html
http://www.martinfowler.com/eaaCatalog/concreteTableInheritance.html
On Aug 10, 3:12 pm, "
I think it's ok if its solves your problem. Just cosider that probably
you will not be able to query in SQL that serialized data, and maybe
it can't be accessed from any language other than PHP, But if that is
ok for you then go wifth it. Anyway consider XML, it is slower but it
can be accessed fr
http://bakery.cakephp.org/articles/view/add-delete-habtm-behavior
On Sep 5, 4:53 am, deepc <[EMAIL PROTECTED]> wrote:
> Hello,
> i have a table abos and a table categories connected with habtm.
> is it possible to delete only the content of the join table without
> deleting an abo or category?
Thanks. Fixed it, the reason was that cgi-bin folder was not
accesible.
On 6 сент, 03:17, Ketan Patel <[EMAIL PROTECTED]> wrote:
> Check your rewrite_log file. It will have the information on what url
> internally the server is trying to redirect and what path it goes
> through. If you don't have
Hi
Well, I've got strange problem. I've created 3 tables.
1) nauczyciels
2) przedmiots
3) nauczyciel_przedmiots
When I try to add user in table nauczyciel it's work fine. But in
controller Nauczyciel I try to call something like: $this->Nauczyciel-
>Przedmiot->dodaj(12); and that doesn't
Sorry bout the duplicate question I guess.
I searched the group, but not the Trac
--
Baz L
Web Development 2.0
http://WebDevelopment2.com/
On 9/5/07, MattC <[EMAIL PROTECTED]> wrote:
>
>
> This has come up a couple times before.
>
> There is a ticket with a fix:
> https://trac.cakephp.org/ticket/
On Sep 5, 5:17 pm, AD7six <[EMAIL PROTECTED]> wrote:
> On Sep 4, 5:32 pm, Jason <[EMAIL PROTECTED]> wrote:
>
>
>
>
> > I would like to be able to access this data through one object that is
> > locked down. There will be no reason for my application to ever add or
> > delete from these tables.
On Sep 4, 5:32 pm, Jason <[EMAIL PROTECTED]> wrote:
>
> I would like to be able to access this data through one object that is
> locked down. There will be no reason for my application to ever add or
> delete from these tables.
You cannot do anything within Cake to prevent the code $this->Mode
On Sep 5, 12:01 pm, Ketan Patel <[EMAIL PROTECTED]> wrote:
> You were on right track for creating a AppReadOnlyModel which extends
> AppModel and overwrite the beforeSave, beforeDelete methods.
>
> There are mistakes with your relations. I think the right relations
> are:
> ZipCode hasOne City
>
for those up to the challenge, you can find doctrine here.
http://phpdoctrine.org/trac/
--~--~-~--~~~---~--~~
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.c
Hi all,
Does the PK for a table absolutely, positively have to be an integer?
I think I saw this somewhere but can't find it again. Also having some
weird issues trying to use another data type for my PK.
Thanks,
porky
--~--~-~--~~~---~--~~
You received this mes
Hi,
I search (is exist) a plug-in for NuSphere o other Editor which provide
syntax check and autocompleting.
Exist ?
Regs.
Pisi
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this
This has come up a couple times before.
There is a ticket with a fix:
https://trac.cakephp.org/ticket/1349
I also wrote a blog post about this, which includes a workaround that
doesn't involve changing core files, but does uses a redirect.
http://www.siteamonth.com/archives/2007/02/21/cakephp-ca
Hi Guys,
I never had tried CakePHP but was on my top priority to try other
frameworks. Sad to know that someone from my company have chosen Zend
+Doctrine (ORM) + Smarty over CakePHP. We were told to create a
benchmark and challenge the currently chosen Framework (specially
DOCTRINE). The challen
Hi,
re
when I run my events relating to people, i get this output
I made the changes as suggested by Jon Bennett and Daniel and others. I thank
them for their help. What I want is the person showing and all the events old
and ability to add others.
Thanks
Jim
=
Qu
Well Apache just die after few seconds ... I have tried on Xamp and it
makes an exception and stop. I will try on Linux later ..
Thanks for the info, I will probably do something like this.
On Sep 5, 6:15 pm, Ketan Patel <[EMAIL PROTECTED]> wrote:
> I use the blackHole to print out the static mes
Check your rewrite_log file. It will have the information on what url
internally the server is trying to redirect and what path it goes
through. If you don't have the file then update your httpd.conf file
and add following statements.
RewriteLogLevel 3
RewriteLog
and restart the server and try
I use the blackHole to print out the static message and die instead of
redirecting. And I give out a link to the relevant pages. For eg.
Mostly due to the session timeout, normal users would hit the
blackHole, so I would give them the referrer/login link and ask them
to start fresh.
On the side
You were on right track for creating a AppReadOnlyModel which extends
AppModel and overwrite the beforeSave, beforeDelete methods.
There are mistakes with your relations. I think the right relations
are:
ZipCode hasOne City
City hasMany ZipCode
Now, that you have all your zipcode, city, state an
Hi All,
Actually it's my first time I am trying the blackHoleCallBack of the
security component. I wanted to have a unique function (in
app_controller) that I would use for a blackHole.
My approch is to render a static page, with a message.
I have implemented a function in the app_controller that
..and use cache for models with cache() function. (states,
countries..)
On Sep 5, 5:16 pm, "Mike Griffin" <[EMAIL PROTECTED]> wrote:
> On 05/09/07, Jason <[EMAIL PROTECTED]> wrote:
>
>
>
> > Even if I don't create the CRUD functionality, it's still there for
> > another developer to totally mess
On 05/09/07, Jason <[EMAIL PROTECTED]> wrote:
>
> Even if I don't create the CRUD functionality, it's still there for
> another developer to totally mess things up. To add some level of
> protection I've created an AppReadOnlyModel that extends AppModel
> which has overridden save and delete funct
Hey all,
I'm tryting to set a couple routes to static pages such as /about. So
far I have:
Router::connect('/about', array('controller' => 'pages', 'action' =>
'display', 'about'));
This works fine for /about, but I would also like to map /About. Is
there a way I can make the route case insensi
@xephex: Hey, thanks for taking the time to put together such a
detailed proposal. In fact, we're actually in the process of
refactoring the Configure class to handle class loading consistently
for all objects. If you want to email me offline, I can show you what
we have in mind. Object initia
Even if I don't create the CRUD functionality, it's still there for
another developer to totally mess things up. To add some level of
protection I've created an AppReadOnlyModel that extends AppModel
which has overridden save and delete functionality. It was easier than
editing the beforeSave and
AD,
Thanks for the advice. Setting the parent to NULL, then setting the
parent to the target parent worked out great.
Brandon
On Sep 4, 5:35 pm, AD7six <[EMAIL PROTECTED]> wrote:
> On Sep 4, 10:50 pm, "[EMAIL PROTECTED]"
>
>
>
> <[EMAIL PROTECTED]> wrote:
> > I am having an issue with ACL. I have
Hello!
I've installed my cake app on remote server as it's described here -
http://www.ad7six.com/MiBlog/ProductionSetup. It worked with PHP 4,
but I needed PHP 5 for some reasons and it was available as cgi on
hosting company's servers. After I added
AddHandler php5-script .php
to .htaccess file
Hi
I'm working with a Cake 1.1 application that's moving from a server
running mysql 4 to one running a new version of mysql 5. Mysql 5 is
more stricter about how joins are handled, and what order they appear
in in the query - so a query like this
Query: SELECT `Note`.`id`, `Note`.`parent_id`, `
hi @ all,
i got the same problem! any sulotion at this point?
the problem is that i want to give a child a prarentNode which is one
level above the current parent. on the same level all works fine for
me.
thanks, michael
On 4 Sep., 22:50, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> I am h
Hey Ketan Thanx yaa...
I am finally succeed to create two instances in single cake...
what I did is simple...first I have create two virtual hosts for each
application..[The term Virtual Host refers to the practice of
maintaining more than one server on one machine, as differentiated by
their ap
first, do the 1 table 1 model as suggested.
> I need a way to have an object talk to these tables ...
A Component will surely help on this. have this component (e.g.
GeoComponent) load the Models during initialization
Component::__construct().
You may create different methods/functions for acces
Hey
nice app :)
Did you think about writing a case study on the bakery ?
Couple of things:
* I would use a standard feed icon :http://www.feedicons.com/ with the
right size (or resize the one you use now - resizing by browser
doesn't look too good)
* the image that show the examples (when nothing
Hi Baz
Baz wrote:
> I'm sorry, I'm just one of those guys that no matter how much you pound
> it into my head, I can't really get this ACL thing.
>
> That's why I used obAuth. Just search the bakery for it. It does basic
> group and user logins, which is all I need for right now.
If it does t
On 04/09/07, Jason <[EMAIL PROTECTED]> wrote:
>
> This is my first post to this group, so I'd like to say hello
> first. :) This post seems long, but the question is pretty simple -
> not sure about the answer.
Hi!
> I would like to be able to access this data through one object that is
> locked
can someone do me a favor and try it ? I'd like to know if this is a
cake bug or I'm doing something wrong.
Thanks,
Andrzej
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, s
Thank you!
if(file_exists(IMAGES_DIR. 'upload' . DS . 'filename')) worked for
me.
Thank you once again:-))
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake
Hi again,
sorry about answering the with the same response as Daniel! must
remember to scroll all the way down in the future :p
jb
On 05/09/07, Jon Bennett <[EMAIL PROTECTED]> wrote:
> Hi,
>
> The problem lies with your Event model. You need to set the
> associations between models, not control
Hi,
The problem lies with your Event model. You need to set the
associations between models, not controllers, so it should be the
singular not plural, eg:
class Event extends AppModel
{
var $name = 'Event';
var $hasOne = array('Person' =>array('dependent'=>true));
}
hth
jon
--
jon
Hello,
i have a table abos and a table categories connected with habtm.
is it possible to delete only the content of the join table without
deleting an abo or category?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Hi,
I've seen a couple of posts and articles how to change the url and
params in the paginator helper. They work if you have an out-of-the-
box router setup with the standard controller, actions, etc.
But I've tested some things with the static 'url' option and that
seems not working.
app/views/a
44 matches
Mail list logo