You guys are funny. Cake will not just "die". Especially since theres
a foundation based around it...
On Oct 27, 9:44 pm, Marcelo Andrade wrote:
> On Wed, Oct 28, 2009 at 12:07 AM, Dave wrote:
>
> > If you go tohttp://cakephp.org/the site is unavailable.
>
> Happy halloween! :-D
>
> http://cake
My guess:
You want to define a package as a collection of products, each product
with specific options.
Thus the following associations:
Product HABTM Option - defines the allowable options for the product.
SpecializedProduct belongsTo Product - defines a specialization of a
product.
Specialized
The correct statement would be:
$expires = date("Y-m-d H:i:s");
$expires = date('Y-m-d H:i:s',strtotime($expires."+31 days"));
On Oct 28, 7:00 am, "Dave" wrote:
> How can i save a date created plus 31 days?
>
> I have
> $expires = date("Y-m-d H:i:s");
> $expires = strtotime(date("Y-m-d H:i:s",
On Wed, Oct 28, 2009 at 12:07 AM, Dave wrote:
>
> If you go to http://cakephp.org/ the site is unavailable.
Happy halloween! :-D
http://cakephp.org
--
MARCELO DE F. ANDRADE
Belem, PA, Amazonia, Brazil
Linux User #221105
--~--~-~--~~~---~--~~
You received this m
On Mon, Oct 26, 2009 at 10:30 AM, red wrote:
>
> Hi, I've design question, where to put the code for situations like
> this:
>
> 1. Shop -> hasMany -> Categories
> 2. Categories are TreeBehavior
> 3. For every Shop I put new root Category, so it look like:
> - Root Category for Shop #1
> --- Cate
halloween methinks.
On Oct 28, 4:49 pm, Samuel DeVore wrote:
> Did someone hack it?
--~--~-~--~~~---~--~~
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
You must include Javascript helper in controller.
http://book.cakephp.org/view/53/components-helpers-and-uses
On Oct 27, 7:42 pm, dpinion wrote:
> After clearing out my cake install and placing files from 1.5.2 in
> again, I am receiving the following error message:
>
> Fatal error: Call to a me
Did someone hack it?
--~--~-~--~~~---~--~~
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, send email to
cake-php+unsubscr...
http://book.cakephp.org/view/37/Apache-and-mod_rewrite-and-htaccess
On Oct 28, 1:31 am, Patrick wrote:
> Hi,
> I am new to CakePHP. I have downloaded cake_1.2.5 and installed on my
> PC (Apache server, MySQL and PHP5 installed). The 'welcome screen'
> appears without any graphics or layout. Som
If you go to http://cakephp.org/ the site is unavailable.
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
Of tina-marie
Sent: October-28-09 12:25 AM
To: CakePHP
Subject: What the heck? CakePHP is dead?
So I just read this on twitter
"Rec
To answer my own question.
The cake website manual page doesn't really have much about the bake
app so I used the console help command and just had to use console
commands instead of doing the interactive bake app.
So I just did:
../cake/console/cake bake controller [model] scaffold admin
--~--~
I have created a new template file, called it default.ctp in app/views/
layouts.
But, the template is NOT being applied.
I've tried restarting Apache.
But, no luck.
Any suggestions?
Jennfier
--~--~-~--~~~---~--~~
You received this message because you are subsc
How can i save a date created plus 31 days?
I have
$expires = date("Y-m-d H:i:s");
$expires = strtotime(date("Y-m-d H:i:s", strtotime($expires)) . " +31
days");
$this->Post->id = $id;
$this->Post->saveField('expires', '$expires');
DB is always -00-00 00:00:00
field in db is expires, Dateti
So I just read this on twitter
"Recent reports from external sources indicate that CakePHP is dead"
http://twitter.com/cakephp/status/5220193340
Anyone know what's up with this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Go
Thank you Brett for your help. I took a look at the .htaccess files
and they all seem to be ok.
Got Firebug and under the CSS tab, when I click 'Edit', it says:
404 Not Found
Not Found
The requested URL /cake/css/cake.generic.css was not found on this
server.
On my installation, I found cak
Yes, but this example it's not for me, listen:
I have Product with many Package, and Package have 'cost' per Product
with Package
Explain (product, cost/package):
1. Milk cost $1/1l
2. Milk cost $1,50/2l
3. Coffe cost $2/1l
I have many Product
I have many Package
And I have many cost for each Pa
You are saying that the entire site is right click disabled and you
need to ENABLE it on one page.
You need to fins the Java Script that is disabling right click and
delete it. It will probably be in the layout file in the
app>views>layouts folder OR it might be in a linked script file.
--~--~---
I want to create site that have some public page and some pages has
access restriction which accessed by member who created an account
that site only.
What is the best way to do it?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
I recommend you this reading:
http://book.cakephp.org/view/85/Saving-Related-Model-Data-HABTM
When it says "What to do when HABTM becomes complicated?"
Good luck
2009/10/27 kicaj :
>
> I have relations:
>
> Products HABTM Package
>
> Table 'packages_products' has fields: id, package_id, product
If you are linking to something outside of the plugin, you must do
'plugin' => null.
On Oct 27, 4:34 pm, TimG wrote:
> I found this post
> helpful:http://bakery.cakephp.org/articles/view/taking-advantage-of-the-pages...
> There is a catch all route that you can add last and you can use that
> t
I found this post helpful:
http://bakery.cakephp.org/articles/view/taking-advantage-of-the-pages-controller
There is a catch all route that you can add last and you can use that
to help with your URLs.
As far as your routes.php file. With that code
http://site.com/
should route to
http://site.co
I get the following error when trying to browse my services.
Fatal error: Call to a member function init() on a non-object in ...
\app\vendors\cakeamfphp\amf-core\app\CakeActions.php on line 196
around 196
function setupCakeController(&$controller)
{
$controller->autoRender = false;
I have my app_controller in the cake folder with the function
function beforeFilter() {
$this->Auth->userScope = array('User.active' => 'y');
$this->Auth->fields = array('username' => 'email', 'password' =>
'password');
$this->Auth->autoRedirect = false;
$this->Aut
Hi All,
I am fairly new to cake and just can't seem to get my head wrapped
around this.
I have made a simple FORUM plugin (placed in plugings folder) and have
placed this code is the routes.php file.
Router::connect('/forum', array('plugin' => 'forum', 'controller' =>
'forum_posts', 'action' =>
I have relations:
Products HABTM Package
Table 'packages_products' has fields: id, package_id, product_id and
extra field cost (varchar)
How build form for this form with select input width packages?
--~--~-~--~~~---~--~~
You received this message because you are
I found out that 'custom.steps.1.icon' is exactly 4 levels deep. When cake adds
the extra layer witht the file information it breaks something so as long
as the path (e.g.: 'custom.steps_one.icon') is less then three levels
everything is cool.
On Fri, Oct 23, 2009 at 09:34:26AM -0700, Mil
Hi guys :)
I currently have a "products" table that HABTM "options". There is
also a "packages" table, which HABTM "products". So far so good. The
tricky thing is that when building packages, I want to *only* have
certain options available for each package.
Example:
Product 1 has Option A, Opti
check you have all the .htaccess files,
http://book.cakephp.org/view/37/Apache-and-mod_rewrite-and-htaccess
explains a bit more.
Under FF you can use Firebug to check that the CSS files are being
loaded i.e. your paths are correct.
http://wiltonsoftware.com
--~--~-~--~~
Great! Thanks very much, that's what I was looking for. :)
On Oct 27, 12:22 pm, jacmoe wrote:
> I finally understood ACL by reading the excellent tutorials at
> AranWorld.
> There's even a complete, downloadable
> sample:http://aranworld.com/article/170/cakephp-acl-and-auth-sample-website
>
>
Just to elaborate a little bit - When I choose "controller" it only
gives me the two models from the default database to bake. It does not
list the other models/tables.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
@sersilva - I have just tried your suggestion and it DOES prevent the
weird output (crash?) I was getting.
However, there must still be some things I don't understand about
these belongsTo relationships:
1) I do remember something in the CookBook about making relationship
alias names unique but
On Oct 27, 4:08 pm, John Andersen wrote:
> I am not sure, but should the hasMany, hasOne not be arrays, thus:
Not according to the book here:
http://book.cakephp.org/view/81/belongsTo
Ken
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Disregard my last! Just looked in the cookbook, all is ok! :D
On Oct 27, 10:08 pm, John Andersen wrote:
> I am not sure, but should the hasMany, hasOne not be arrays, thus:
> In Page:
> $hasMany = array('DisplayArea');
> In DisplayArea:
> $hasMany = array('ContentBlock');
> $belongsTo =
I am not sure, but should the hasMany, hasOne not be arrays, thus:
In Page:
$hasMany = array('DisplayArea');
In DisplayArea:
$hasMany = array('ContentBlock');
$belongsTo = array('Page');
In ContentBlock:
$hasOne = array('Image');
$belongsTo = array('DisplayArea');
In Image:
$belo
Yes, I have seen your posts. I will try your suggestion.
Thanks,
Ken
On Oct 27, 3:19 pm, Sergio Silva wrote:
> Are you reciving my mails?
>
> sersilva said:
> You can try changing the alias name of the relationship.
>
> For example:
>
> ==
> //In DisplayA
On Oct 27, 3:37 pm, John Andersen wrote:
> Please copy/paste the actual model associations from each model, so
> that we may better be able to help you ;)
> Enjoy,
>John
from page.php
class Page extends AppModel {
public $name = 'Page';
public $validate = array(
'title' => array('n
Hi,
I am new to CakePHP. I have downloaded cake_1.2.5 and installed on my
PC (Apache server, MySQL and PHP5 installed). The 'welcome screen'
appears without any graphics or layout. Some characters are in bold
face, some are bigger, some have colors (blue, purple), so it's not
only black and white
Are you reciving my mails?
sersilva said:
You can try changing the alias name of the relationship.
For example:
==
//In DisplayArea Model
var $belongsTo = array(
'PageRelationship' => array( //Instead of just 'Page'
You can try changing the alias name of the relationship.
For example:
==
//In DisplayArea Model
var $belongsTo = array(
'PageRelationship' => array( //Instead of just 'Page'
'className' => 'Page,
You can try changing the alias name of the relationship.
For example:
==
//In DisplayArea Model
var $belongsTo = array(
'PageRelationship' => array( //Instead of just 'Page'
'className' => 'Page,
Please copy/paste the actual model associations from each model, so
that we may better be able to help you ;)
Enjoy,
John
On Oct 27, 9:26 pm, kdubya wrote:
> More info.
>
> With all belongsTo associations in place (per original post) find()
> works ONLY if I set recursive LESS than the maximu
Try deleting the files in tmp/cache/* folders.
Regards,
Pablo Viojo
pvi...@gmail.com
http://pviojo.net
¿Que necesitas?
http://needish.com
On Tue, Oct 27, 2009 at 12:56 PM, toby1kenobi wrote:
>
> Hi everyone,
>
> I'm sure this is something simple, and glaringly obvious, but I've
> been pluggi
More info.
With all belongsTo associations in place (per original post) find()
works ONLY if I set recursive LESS than the maximum depth from that
level.
So
$this->Page->recursive = 2;
$page = $this->Page->find('first', array('conditions'=>array('title
like'=>'%Home%')));
works OK but the Image
I've got a bunch of large CakePHP apps and I'm working on getting the
CakePHP schema migration to work instead of maintaining all the DB
struture by hand.
The problem I'm running into is when the schema.php file is
generated
I generate the schema.php file on my local machine, push up the
cha
hi
i tired this method to get users last_login but no success if i set
the auth redirect to false then when i acess the users/login form to
login it keeps redirecting me to ('/') not even leting put username
and password
any idea
function beforeFilter( ) {
parent::beforeFilter();
Well, (this is me looking doubly sheepish) the reason it worked after
rebooting was I had not put back the DisplayArea belongsTo Page
association. So the original symptoms still exist but it is
interesting that I get the same symptoms when recursive is set too
deep.
I'm still stumped.
Ken
--~--
Well, (this is me looking a bit sheepish) it seems like it was a
corrupted environment on my development PC. The problem, in one
instance, went away after rebooting. In another instance, I was
attempting to do a find of ContentBlock where I had defined recursive
=2 which put it past the end of the
I should probably follow up, just in case I wasn't completely clear (I
was reading this over trying to remember what I had done in regards to
eZ Component integration as I am now at a point in the project where I
can try to tackle this).
CakePHP does a lot. At its core (imho) it is a wrapper to
Cake was able to connect to multiple databases and bake the different
models flawlessly. But when I try to bake the controllers it only lets
me bake the default database's model controllers.
How do I bake controllers for the other databases?
--~--~-~--~~~---~--~~
Y
I finally understood ACL by reading the excellent tutorials at
AranWorld.
There's even a complete, downloadable sample:
http://aranworld.com/article/170/cakephp-acl-and-auth-sample-website
Read the rest of his tutorials. It helped me, so why not you? :)
On Oct 27, 7:18 am, xtraorange wrote:
> D
Choose app/vendors for application specific vendors.
The other one is for site-wide vendors, ie shared between
applications.
I am still new to CakePhp so I cannot give you any advice regarding
multiple applications.
But I'd choose different subdomains for that.
If your host allows you.
On Oct 27
I have a simple hierarchy like this:
Page hasMany DisplayArea
DisplayArea hasMany ContentBlock
ContentBlock hasOne Image
All is fine when I execute queries with the above associations e.g.
$this->Page->find('first', array('conditions'=>array('title
like'=>'%Home%')));
Now I want to access some
no problem .. you had already worked out the issue for yourself in
your 2nd post.
I just thought having someone else's code available to see how they
have got around the creation and editing of users and the difficulties
hashed passwords can cause would have been of some help :)
--~--~-~-
@Mateusz it would be a shame to do that when formatting the form
fields in the correct manner creates a data array which saveAll() can
use to save HABTM data in one call, including validation.
--~--~-~--~~~---~--~~
You received this message because you are subscribe
Contain does do extra queries and then merges arrays back together.
It's great for certain situations and not so great for others. I
particularly like to use it when viewing records and associated data,
but I'm not so keen within indexes/lists of data.
Bind and unbind allow you to force joins to
@Dr. Loboto: You were correct it was all down to php notices which
only showed up in certain circumstances so my tests were confusing
me. Got rid of the notices and have been able to revert to standard
formed url with GET params (which had to be access from $this->params
['url']).
Thanks for you
Hi everyone,
I'm sure this is something simple, and glaringly obvious, but I've
been plugging away for a couple of hours now without seeing the
light...
We have a development version of a site running, and it's about to
go live. I SSH'd onto the server, and made a copy of the development
sit
I'm also looking for this functionality. I guess I'll try it through
saveall. If I find a good solution I'll post back here.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, sen
I am trying to look for a generic way to manipulate model data, say, in
beforeValidate in model. The model data could be in different array
structure (or shape). For example, the field to be validated can be in the
following 5 cases (and possibly more):
array['ModelName'][0]['field']
array[0]['
I am trying to look for a generic way to validate model data that could be
in different array structure (or shape). For example, the field to be
validated can be in the following 5 cases (and possibly more):
array['ModelName'][0]['field']
array[0]['ModelName'][field']
array['ModelName']['field'
Hi,
is it possible to use the __() localization function in bootstrap.php
file?
__() is not yet initialized in bootstrap, right?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group,
This has bothered me since I dont want to get into bad habbits.
In the main introduction to cake it states that the root level vendors
is for the third party libs.
So I dont get why then there is another vendors folder inside the
application folder - app.
Does it matter where libs are placed and
i think that's bcuz you dont use the html helper. you should use html
helper url helper instead of just calling the url in plain way.
it works on me, but i use url inside my site, so i have to put my file
in webroot directory (where the css directory is located).
wish that help ya.
but by the wa
After clearing out my cake install and placing files from 1.5.2 in
again, I am receiving the following error message:
Fatal error: Call to a member function link() on a non-object in D:
\wamp\www\tti.com\cake\app\views\layouts\default.ctp on line 32
Looking at the file, line 32 is:
ech
@ Dr Loboto
Thanks for taking some time out to try and help me.
Can you give some more detail on where you are seeing a PHP error? I
have pored over the output from the below url and cannot find an error
enywhere. Perhaps you were looking at the site when I had debug set
to a high level workin
Hello,
My designer created the pagination like this:
«
1
2
3
»
Would use this way with CakePHP Paginator?
Regards,
Caio Tarifa
--~--~-~--~~~---~--~~
You received this messa
In fact, if you follow the REST principles, you must send a DELETE
request to delete a database entry. In this case, POST can be used to
add records in database and GET to list one/some of them.
On Oct 26, 9:35 pm, "euromark (munich)"
wrote:
> you are violating protocol
>
> never allow GET recqu
67 matches
Mail list logo