Hi Maverick,
As Sam pointed out when you are done, set debuglevel to 0.
Considering themes: There is such a wide range of applications which you can
develop with Cake that themes would be nonsense. Just open your application
with Firefox and Firebug and check where your formats are defined and
Hi Janis,
example.com is a placeholder for the domain name which will host your
future application. Just ignore this as long as you application isn't
running on your final webserver.
If you put your cake folder in the document root ( = htdocs) your
application should show up when you request h
The API has a list of all the classes found in CakePHP:
http://api.cakephp.org/classes.html . Steer away from any of those
names.
-J.
On Nov 4, 7:30 pm, Pyrite <[EMAIL PROTECTED]> wrote:
> Is there a list of reserved table names and/or model names?
>
> On Nov 4, 4:48 pm, Sam DeVore <[EMAIL PROT
Ratproxy and Chorizo
But this is kinda off topic for this list
HTH
Tarique
On Wed, Nov 5, 2008 at 4:05 AM, validkeys
<[EMAIL PROTECTED]> wrote:
>
> Anyone have a good recommendation for a web app scanner?
> >
>
--
=
Cheesecake-P
Why do you need to redirect inside an ajax request? I've never run
into this requirement before.
Cheers,
Adam
On Oct 15, 6:33 am, Julián Lastiri <[EMAIL PROTECTED]> wrote:
> Well, i found that when i call redirect from an ajax request the
> redirect is forwarded to the beforeRedirect method from
I am using Xampp I put the unpacked cake folders in the htdocs folder. I
restarted it after I did the following in httpd.conf:
LoadModule rewrite_module modules/mod_rewrite.so
AllowOverride All
I typed http://localhost/example.com. I didn't get an example page but I did
get this message:
On 4 Nov 2008, at 23:47, Mathew wrote:
> class Document extens AppModel
> {
> var $foo;
>
> function afterSave()
> {
>.
>$foo = "something";
$this->foo = "something";
> }
> }
>
> in your controller
>
> $this->Document->save($data);
> echo $this->Document->foo;
FTFY.
--~--~---
I think I'm running into something similar with 1.2 and AJAX
submit ... however, could potentially be a compatibility issue with
Prototype.
On Sep 16, 4:51 am, AussieFreelancer <[EMAIL PROTECTED]>
wrote:
> anyone, anyone... does observeField actually work in 1.1? I have it
> working in 1.2 ok, bu
Is there a list of reserved table names and/or model names?
On Nov 4, 4:48 pm, Sam DeVore <[EMAIL PROTECTED]> wrote:
> Bust out the thesaurus it's reserved
>
> ===
> Sent from my AT&T Rotary Phonehttp://blog.samdevore.com
>
> On Nov 4, 2008, at 2:54 PM, Pyrite <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
I have a form that won't save data because of a validation error, but
the validation errors are not appearing in the form. The flash message
that the data could not be saved appears, but not the individual error
messages. I think I've got everything set up the same way that I did
for another form
I just upgraded to RC3 and ran into this exact problem. I've not
found any way to get a layout to render after an Ajax redirect, except
by not using RequestHandler. Did you find a solution?
-Jason
On Oct 14, 3:33 pm, Julián Lastiri <[EMAIL PROTECTED]> wrote:
> Well, i found that when i callred
si-mon: I didn't mean to offend you, it was a honest question. To me
its not worth the extra work. However it can be done but there is a
lot of hoop jumping. You can do it if you load jQuery first. And force
it in to compatibility mode.
Samuel: You can configure which javascript is used now!
Hi,
this is not supported by the ajax helper, I think you have to stop and
overwrite the PeriodicalExecuter manually. See here
http://www.prototypejs.org/api/periodicalExecuter and here
http://www.prototypejs.org/api/periodicalExecuter/stop .
You could try to change the ajax helper remoteTimer()
Bust out the thesaurus it's reserved
===
Sent from my AT&T Rotary Phone
http://blog.samdevore.com
On Nov 4, 2008, at 2:54 PM, Pyrite <[EMAIL PROTECTED]> wrote:
>
> I am developing an application for a business, they have categories,
> products, and models. Is it a problem for CakePHP to name t
Anyone have a good recommendation for a web app scanner?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group,
anyone know?
On Nov 3, 6:20 pm, validkeys <[EMAIL PROTECTED]> wrote:
> Hi Guys,
>
> I have a clients and a milestone model. A client hasMany milestones.
> Milestones have many strategies.
>
> In one of the finds in my Client model, I unbind the Strategy model
> from the Milestone model, in order
can't do that
On Nov 4, 4:54 pm, Pyrite <[EMAIL PROTECTED]> wrote:
> I am developing an application for a business, they have categories,
> products, and models. Is it a problem for CakePHP to name the database
> table "models" and the actual model "Model", or do I need to think of
> a different
I am developing an application for a business, they have categories,
products, and models. Is it a problem for CakePHP to name the database
table "models" and the actual model "Model", or do I need to think of
a different term?
--~--~-~--~~~---~--~~
You received th
Hi together,
i submit a form over $ajax->submit(); and update a div layer. That
works very fine, but the form don't get reseted afterwards. How I can
do this? Could someone help me?
Thank you!!!
Bye
Tom
--~--~-~--~~~---~--~~
You received this message because you
I have an even weirder problem, I can see the spanish characters
correctly in my PHP application, but if I query the database (Using
phpmyadmin) I see weird characters stored. Do you think that may be a
problem with PHPMYADMIN and not a problem with Cake??
Thanks
On Oct 9, 5:01 pm, "R. Davila" <
Hi together,
i use $ajax->remoteTimer(); to refresh a DIV all 30 seconds.
I wan't to enable/disable this by an checkbox, but i have absolutely
no idea to handle this.
Could you help me?
Thank you very much in advance!
byebye
Tom
--~--~-~--~~~---~--~~
You receiv
http://book.cakephp.org/
On Nov 4, 2:32 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Myself jack, I m new to programming and with cakephp I m even more
> new.I went through this site cakphp.org, Its quite helpful,
> But I m
> not able to think logical at times as to why we use few
Hey guys,
I apologize in advance if this is not the appropriate forum to ask
this question, but I am interested in finding a Cake Developer to work
on an existing custom web app that has been built in Cake. If you know
of anyone that is interested in a part-time opportunity, can you
please PM me
Myself jack, I m new to programming and with cakephp I m even more
new.I went through this site cakphp.org, Its quite helpful,
But I m
not able to think logical at times as to why we use few
things..Now i m improving, But need to work a lot on it.I m
helpless, And I get confused
This might come in handy when it comes to manipulating the extra data on
the join table:
http://www.cricava.com/blogs/index.php?blog=6&title=modelizing_habtm_join_tables_in_cakephp_&more=1&c=1&tb=1&pb=1
Adriano Varoli Piazza wrote:
> Thanks for both the answers. I'm now dealing with the right wa
Ok
I tried to set CAKE security on a medium level, and now it works
correctly.
Thanks to all.
On 3 Nov, 15:55, mcphisto <[EMAIL PROTECTED]> wrote:
> Ok, maybe this is the problem. I experienced sessions falling when
> using live search or when opening blank pages. Now I changed the
> configuratio
debug info disappears when you set debug to 0.
you make your own theme as you need it, that styles your views (these are
individual to each app)
cake != wordpress
2008/11/4 Maverick <[EMAIL PROTECTED]>
>
> Hi all,
> I am a bit new to CakePHP and have gone through the demos and read a
> few boo
Hi all,
I am a bit new to CakePHP and have gone through the demos and read a
few books.
Are there any downloadable themes (view templates) other than the one
that comes with CakePHP. I don't want the debug info and ads for Cake
everywhere. I would image that someone has a list of downloadable
the
Since both frameworks use the $()-function, you either
- have to jump through loops to make it working for both of them
- use the jQuery alias function jQuery()
- or, my favorite:
if you use the short form to wait till page load of DOM of jQuery:
"jQuery(function(){/* yourcodehere */})"
you ca
I had a similiar issue when setting up a subdomain. What Adam is
saying is the correct code, but just remember to add the rewrite rule.
Here is what I had to do in my primary .htaccess file:
RewriteEngine on
RewriteCond %{HTTP_HOST} subdomain.second-domain.com
RewriteRul
On Oct 30, 11:04 pm, Calvin <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I am finding difficult to understand why this isn't working...
>
>
> abstract class A {
> protected static $property = false; # Q1
> public static function method() { # Q2
> return self::$property;
> }
>
> }
On Nov 3, 3:02 pm, 703designs <[EMAIL PROTECTED]> wrote:
> I'd love MooTools if they chose to namespace the library to a MOO or
> similar object and not change basic prototypes (even String is
> modified!). Unfortunately, it's hard to trust if you're running it
> around other scripts. I wonder how
Thanks for both the answers. I'm now dealing with the right way to
name the model and controller for that join table. It looks like I'm
doing something wrong somewhere...
On 4 nov, 11:41, hydra12 <[EMAIL PROTECTED]> wrote:
> Take a look here:http://book.cakephp.org/view/83/hasAndBelongsToMany-HA
class Document extens AppModel
{
var $foo;
function afterSave()
{
.
$foo = "something";
}
}
in your controller
$this->Document->save($data);
echo $this->Document->foo;
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Hi,
I have to show all the files that I have uploaded through my
application.
Please help me with this.
Regards
Cjo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email
On Nov 4, 2:30 pm, Cjo <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have to show all the files that I have uploaded through my
> application.
> Please help me with this.
>
> Regards
> Cjo
http://api.cakephp.org/class_folder.html#cae6a10175cdf45d5e303edbe6432dfc
--~--~-~--~~~--
Take a look here: http://book.cakephp.org/view/83/hasAndBelongsToMany-HABTM.
Look especially at the 'with' key when you define your HABTM
relationship. It says in the docs:
with: Defines the name of the model for the join table. By
default CakePHP will auto-create a model for you. Using the
Hi David,
That's a shame, as in this case ModelB is an alias, and so the
condition specified in the relationship to ModelA only applies to that
relationship.
In fact, in my particular case a Crop can have an Entry Classification
and an Attained Classification, which are sub-sets of the
Classific
Hello all,
Someone has recently asked about serving dynamic pages as static, so I
decided to write something very quickly solution that those who need
it can use.
Its here ... http://www.marsilva.karoo.net/blog/ bear in mind that I
have not managed to find the time to actually explain what the
Daniel, I suggest you download the Firebug Firefox add-on and try it out with
the http://bakery.cakephp.org/articles/view/firecake-helper Firecake helper
for CakePHP. Makes it really easy to see what's going on with session
variables.
Feanor's Curse wrote:
>
>
> How? If the user opens a ne
I think having a separate model for your join table is okay in this case.
And perhaps it's a must as you have a third foreign key involved in that
join table.
On Tue, Nov 4, 2008 at 6:00 PM, Adriano Varoli Piazza <[EMAIL PROTECTED]>wrote:
>
> I'm developing an app where I have two tables, let's c
Haven't tried this, but I'm guessing something like this... ignoring
your second-domain.com in the primary site's .htaccess
rewritecond %{http_host} !^(www)?\.second-domain\.com
On Nov 4, 4:37 pm, Kyle Decot <[EMAIL PROTECTED]> wrote:
> I have a CakePHP app installed on my primary domain/hosting
Here is a tutorial I wrote a while ago that does what you describe.
I've only used it with <= RC2 so not sure if it will work with RC3,
but I'm guessing (hoping!) it does.
http://blogs.bigfish.tv/adam/2008/02/12/drag-and-drop-using-ext-js-with-the-cakephp-tree-behavior/
I did run into a few bugs
> ... if you believe so much in OOP and codes
> must be clean even if you have to write 10 line over 1 line to other
> framework then you should go with mootools or prototype.
I don't want to start a flame war here, but that is _so_ not true.
About mootools, at least (prototype does seem a bit ve
Like some of you may know (if you don't, now you do ;) between December 2 and
December 5 we will be celebrating the CakePHP official gathering, CakeFest.
There you'll be attending talks about the most interesting topics, given by
respected members of the PHP community, including the CakePHP Cor
>
> the lesser the codes the lesser the debugging time
oh, that's so not true
[snip]
Gabriel Gilini
www.usosim.com.br
[EMAIL PROTECTED]
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP"
There are some articles in the bakery about using ldap as a model. I
haven't used them, so I couldn't say how well they work. I do know
that ActiveDirectory is microsoft's version of ldap and doesn't always
work quite the way you think it should. Personally, I use adLdap
(http://adldap.sourcefo
I would model it this way:
Datasheet hasMany DatasheetLine / DatasheetLine belongsTo Datasheet
DatasheetLine belongsTo Ingredient
datasheets
---
id
product
more...
datasheet_lines
-
id
datasheet_id
ingredient_id
proportion
twa
stel
ingredients
i
I'm developing an app where I have two tables, let's call them items
and people, where the relationship between them is HABTM. Plus, the
individual relationships have extra info: this person is related to
this item with a 'description' field.
E.g.:
people:
id
other fields
---
Doing ModelA->ModelB->find() is the same thing as ModelB->find().
It doesn't matter "through" which or how many models you go, it
doesn't change the result.
Which means, the conditions and associations you have defined in
ModelB are being used here, so check those.
On 4 Nov 2008, at 20:07, Ia
Hi all,
I'm a little confused about something I'm seeing with belongsTo
conditions, and from searching the docs and this list I haven't been
able to find an answer. Maybe some kind soul can help clear my
confusion?
In my Crop model I have:
var $belongsTo = array(
'EntryC
Hi There
I have a admin backend with Google maps location picker then on
another page I have swfuploader. Everything was working cool untill
my client asked me to add Ajax links to the site. Now the swfuploader
and google maps not working no more.When Ajax reloads a div, does
it not load ja
Hi,
I started using cakePHP not long ago and it's really nice. It works
great for me and my time and effort building web apps has decreased.
Thank you for this!
Right now I got this problem: I need to authentificate not against a
database but against a LDAP (Active Directory).
In the database I
How? If the user opens a new tab and changes the ID there (in the
session), it will affect all other tabs, won't it?
Best Regards,
Daniel Süpke
RyOnLife wrote:
>
> Multiple tabs won't inhibit the use of sessions.
>
>
> Feanor's Curse wrote:
>>
>> Thanks for the suggestion, but session vari
Of course it's possible - this is cake after all...
class ArticlesController extends AppController {
// ...
var $paginate = array(
'Article' => array(
'limit' => 15,
'order' => 'avg_rating DESC',
'group' => 'Article.id'
)
);
// ...
function index() {
$this->Article->bindModel
Hi,
I want to have two branches on my AROs tree.
One is for a typical controllers/actions authorization systems. It
works perfectly.
The second one is for a "privileges" based authorization inside
actions. For example: I want to allow two groups access to the same
action, but one group ca
> $this->set('pages', $this->Info->find('
> Relates to a model "Info" and not to the real static pages.
>
> Any idea how to achieve this?
You need to find the static pages by yourself, take a look at the
Folder class: http://api.cakephp.org/1.2/class_folder.html
HTH,
- Dardo.
> Thanky you a
Just a heads up, for starters, the app_controller.php file is best
placed in `\app\app_controller.php` rather than the Cake libraries
because if/when you go to upgrade it'll get over-written.
How is the "code for changing page name" called? in `beforeFilter()`?
or elsewhere?
If it's something comm
Still no love, hey?
I'm not sure how else to explain this other than to ask why
dbo_source.php is over-writing.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cak
Are you executing the cake app using cron? If so, try to put
umask(002); in bootstrap and purge tmp files.
On Nov 3, 10:50 am, Malcolm Krugger <[EMAIL PROTECTED]>
wrote:
> Sorry I should have mentioned earlier
>
> I set 777 perms for /app/tmp and all of its subdirectories too already
>
> Mal
>
>
Hi All,
In my cakephp project Page title, meta name and description are
stored in a table in database.
in my Cart\cake\libs\controller folder app_controller.php file is
there. In that file I wrote code for changing page name.In some
controllers I am not getting the page title. can anyone ple
First of all, thank you for the reply.
I know what you mean about the scope of the variable, and that is why
I asked how I can return it. I'm using it in the afterSave callback of
the model.
On Nov 4, 3:34 am, "Marcelo Andrade" <[EMAIL PROTECTED]> wrote:
> On Mon, Nov 3, 2008 at 10:11 PM, spyros
62 matches
Mail list logo