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.
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 mfandr...@gmail.com wrote:
On Wed, Oct 28, 2009 at 12:07 AM, Dave make.cake.b...@gmail.com wrote:
If you go tohttp://cakephp.org/the site is unavailable.
That's a good idea, thanks John ;)
Now I just have to see how I integrate this in order to make it
seamless for the user.
Anyone else got a version of how they would do it? :)
On Oct 28, 8:32 am, John Andersen j.andersen...@gmail.com wrote:
My guess:
You want to define a package as a
Holy crap! It's risen from the dead and now it craves fresh human
BRAINS!!
On Oct 28, 4:44 am, Marcelo Andrade mfandr...@gmail.com wrote:
On Wed, Oct 28, 2009 at 12:07 AM, Dave make.cake.b...@gmail.com wrote:
If you go tohttp://cakephp.org/the site is unavailable.
Happy halloween! :-D
Product hasMany PackagesProduct
Package hasMany PackagesProduct
PackagesProduct hasOne Product
PackagesProduct hasOne Package
You can replace PackagesProduct with the semantic name you want, but
you don't have to.
( Excuse my bad English! )
sersilva
2009/10/28 kicaj ki...@kdev.pl:
Yes, but
I thought at first bake was just a fancy name for serve, its not a
great idea to introduce new terms if they are not required in a
framework. Maybe there is a great reason...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
http://mark-story.com/posts/view/happy-cakephp-halloween?utm_source=rss
On Oct 28, 6:07 am, Websta* s...@webprogression.co.nz wrote:
halloween methinks.
On Oct 28, 4:49 pm, Samuel DeVore sdev...@gmail.com wrote:
Did someone hack it?
--~--~-~--~~~---~--~~
Hello everybody, it's 10:45 am in Barcelona, Spain.
When trying to access the project's site, www.cakephp.org, I'm getting
some very strange images! The site seems to be attacked or I don't
understand the message that the project is trying to send us (it's
Halloween and I'm a catalan guy ;-)
Thanks Pablo, I actually found what the problem was eventually, I
needed a Directory directive for the new directory in the Apache
config.
Toby
Pablo Viojo wrote:
Try deleting the files in tmp/cache/* folders.
Regards,
Pablo Viojo
pvi...@gmail.com
http://pviojo.net
¿Que necesitas?
Helloween? %)
jordicakephp wrote:
Hello everybody, it's 10:45 am in Barcelona, Spain.
When trying to access the project's site, www.cakephp.org, I'm getting
some very strange images! The site seems to be attacked or I don't
understand the message that the project is trying to send us (it's
yeah :)
i like the BRAAIIINS stuff^^
On 28 Okt., 10:59, Eugene Golovan golo...@gmail.com wrote:
Helloween? %)
jordicakephp wrote:
Hello everybody, it's 10:45 am in Barcelona, Spain.
When trying to access the project's site,www.cakephp.org, I'm getting
some very strange images! The site
well, finally! after sending them an email explaining step by step how
to change it, they finally did it : )
so is working now as expected!
thanks
Rohman
On Oct 26, 11:16 pm, David Roda davidcr...@gmail.com wrote:
not if they dont allow you to override the .htaccess rules unfortunately.
I've
Well let's ask the question how do you mAke a cake.
On 10/28/09, www.landed.at calvincr...@gmail.com wrote:
I thought at first bake was just a fancy name for serve, its not a
great idea to introduce new terms if they are not required in a
framework. Maybe there is a great reason...
--
here is zombie language translator used by cakephp ;)
http://lickus.lt/zomb.php
On Oct 28, 12:27 pm, euromark (munich) dereurom...@googlemail.com
wrote:
yeah :)
i like the BRAAIIINS stuff^^
On 28 Okt., 10:59, Eugene Golovan golo...@gmail.com wrote:
Helloween? %)
jordicakephp wrote:
@Aurimas: 403 Forbidden
2009/10/28 Aurimas a.lic...@gmail.com:
here is zombie language translator used by cakephp ;)
http://lickus.lt/zomb.php
On Oct 28, 12:27 pm, euromark (munich) dereurom...@googlemail.com
wrote:
yeah :)
i like the BRAAIIINS stuff^^
On 28 Okt., 10:59, Eugene Golovan
oh sorry, fixed
On Oct 28, 1:50 pm, Sergio Silva ssil...@gmail.com wrote:
@Aurimas: 403 Forbidden
2009/10/28 Aurimas a.lic...@gmail.com:
here is zombie language translator used by cakephp ;)
http://lickus.lt/zomb.php
On Oct 28, 12:27 pm, euromark (munich) dereurom...@googlemail.com
cool ; )
2009/10/28 Aurimas a.lic...@gmail.com:
oh sorry, fixed
On Oct 28, 1:50 pm, Sergio Silva ssil...@gmail.com wrote:
@Aurimas: 403 Forbidden
2009/10/28 Aurimas a.lic...@gmail.com:
here is zombie language translator used by cakephp ;)
http://lickus.lt/zomb.php
On Oct 28,
should work as is. you are a bit weak on details, but perhaps
something is causing the default layout not to be used? perhaps put
var $layout = 'default'; in your controller?
On Oct 27, 10:40 pm, Jennifer jennifercbonn...@gmail.com wrote:
I have created a new template file, called it
Actually what they wanted was to draw attention to the project.
By doing this we got talking about it, it was posted on blogs and got a buzz
going.
not a bad way to do it but IMO not the best way either.
:)
Jonathon
--~--~-~--~~~---~--~~
You received this
When I saw some public reactions on recent team fork, first of all, I
was surprised people thinks CakePHP aims to its grave. Then, I was
surprised by amount of blogs who actually thinks CakePHP will die.
Well, not just core developers, all tens of thousands of monthly cake
downloaders and users,
Of course, he means that CakePHP.org's got the Halloween theme! This
MUST, I mean, NEEDS, no, I really mean SCREAMS to be screenshot! Cool!
Trick or Treat!!!
On Oct 28, 4:53 pm, Herberth Amaral herberthama...@gmail.com wrote:
HAHA! Awesome!
On Oct 28, 2:44 am, Marcelo Andrade
Help! I'm eaten by the site's zombie language!!! W!!!
On Oct 28, 8:57 pm, O.J. Tibi ojt...@gmail.com wrote:
Of course, he means that CakePHP.org's got the Halloween theme! This
MUST, I mean, NEEDS, no, I really mean SCREAMS to be screenshot! Cool!
Trick or Treat!!!
On Oct 28, 4:53
This has CakePHP's Authentication Component written all over it! :D
http://book.cakephp.org/view/172/Authentication
On 28 okt, 01:07, leafchild leafchild.b...@gmail.com wrote:
I want to create site that have some public page and some pages has
access restriction which accessed by member who
You should read the docs more my friend, and besides, bake is a
catchy verb for CakePHP!
Here the documentation link (aka The Cookbook)
http://book.cakephp.org/view/113/Code-Generation-with-Bake
On Oct 28, 4:58 pm, www.landed.at calvincr...@gmail.com wrote:
I thought at first bake was just a
Haha, I think the Halloween theme was Mark's idea. :)
On Oct 28, 11:49 am, Samuel DeVore sdev...@gmail.com wrote:
Did someone hack it?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this
Hi!
Is there a way to use paginate and limit the total number of results.
To explain myself, I have a table with 1000 rows, but I only want to
show the last 200 and paginate it 25 per page. Is it possible in
CakePHP and how.
Thanks
Zvonko
--~--~-~--~~~---~--~~
IMHO
I think the complication relies on the logic, not on the HABTM.
Maybe you should look for a workaround, maybe get a fixed discount per
unit (litre, kilo, whatever) which can be stored on the product table.
I wouldn't go for it, but it's a workaround.
Other solution would be to set fixed
Ok found the error, it was related to the allow_override directive. I
had in my httpd.conf file a first part (for Directory /, the default
directory) with AllowOverride set to All but I didn't see that below
in the same file, I have a directive for the Directory C:/Program
Files (x86)/Apache
The Interact tab is totally killer! :D
On Oct 28, 1:58 pm, O.J. Tibi ojt...@gmail.com wrote:
Help! I'm eaten by the site's zombie language!!! W!!!
On Oct 28, 8:57 pm, O.J. Tibi ojt...@gmail.com wrote:
Of course, he means that CakePHP.org's got the Halloween theme! This
MUST, I
extract() [function.extract]: First argument should be an array
it used to work with cakephp 1.2.0.7962 Final any idea
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send
Plants vs Zombie ???
--~--~-~--~~~---~--~~
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
debug($data['User']) ?
2009/10/28 Simon simon_d...@hotmail.com:
extract() [function.extract]: First argument should be an array
it used to work with cakephp 1.2.0.7962 Final any idea
--~--~-~--~~~---~--~~
You received this message because you are
extract ($data['User']) ?
?php echo trim($first_name); ?
this is in email template in email i get these errors
Undefined variable: first_name
extract() [function.extract]: First argument should be an array
On Oct 28, 8:56 am, Sergio Silva ssil...@gmail.com wrote:
debug($data['User']) ?
Thank you both very much.
Miles J - your suggestion was it - I can't believe I haven't joined
this forum and asked many of my questions earlier. BTW, I am using
your Uploader in one of my development sites and it is awesome!
TimG - Gonna go read that article at the bakery right now. Thanks
Could you paste here the content of $data['User'] using debug($data['User']) ?
It seems empty
2009/10/28 Simon simon_d...@hotmail.com:
extract ($data['User']) ?
?php echo trim($first_name); ?
this is in email template in email i get these errors
Undefined variable: first_name
extract()
Hi guys, I've got a bit of a problem. Rather than type it all out
again here, is it OK if I just link to my blog with all the info:
http://theworldofdan.co.uk/2009/10/28/problem-saving-data-to-three-models/
I would really appreciate it if someone is able to help me out with
this. Thank you
___viewFn =
C:\xampp\htdocs\one\vendors\base\views\elements\email\html
\users/welcome.ctp
$___dataForView = array(
content = ,
html = HtmlHelper
HtmlHelper::$tags = array
HtmlHelper::$base = NULL
HtmlHelper::$here = NULL
HtmlHelper::$params = array
$data = array(
User = null
)
User data is null!!
2009/10/28 Simon simon_d...@hotmail.com:
___viewFn =
C:\xampp\htdocs\one\vendors\base\views\elements\email\html
\users/welcome.ctp
$___dataForView = array(
content = ,
html = HtmlHelper
Hi,
the subject essentially asks the whole question already.
How did you detect that a user logs in from a second location, and
kick him from the first location? The first location should display a
warning on the next action that requires to be logged in like You
have been logged out
Use saveAll
On 28 out, 13:19, Daniel theworldof...@gmail.com wrote:
Hi guys, I've got a bit of a problem. Rather than type it all out
again here, is it OK if I just link to my blog with all the info:
http://theworldofdan.co.uk/2009/10/28/problem-saving-data-to-three-mo...
I would really
I am using saveAll:
if ($this-Story-saveAll($this-data, array('validate' =
'first'))) // passed validation and successfully saved
Unless you mean without the array('validate' = 'first') - in which
case the validation only works for the Story model.
On Oct 28, 4:58 pm, Celso cels...@gmail.com
If you are saving date for the first time (inserting), you cannot use
saveAll. The foreign keys and relations will not be set. This only
works for updating, and when you do an update the IDs need to be
hidden in the form somewhere.
You need to do it like so:
Use cake schema generate -name my_schema
and cake schema create name table
(checked in 1.3)
On Oct 27, 8:21 pm, Jesse jesseainsk...@gmail.com wrote:
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
I have an element right.ctp with the code
echo div id='dropzone' class='rblock';
echo $this-element('pplcollection');
echo /div.$ajax-dropRemote('dropzone',null,array('url' = '/casts/
remuser/','with'='{draggedid:element.id}'', 'update'='res'));
The pplcollection.ctp element has the code below
You need to save the session ID/token to the database. On each page
load you check to see if the current ID/token matches the one in the
database, if it does not, you log them out.
So if A logs in and has a token, hell be fine.
Once B logs in, a new token is created nad logged in the database.
A
Hi all,
I am currently building a CMS and my system does some ajax requests which
return some html: simple and nice.
When I run it locally it all works fine but when I put it live instead of
the expected html I get null. Not Not found or any other error, just the
word null.
All I use is the
jeje...
--~--~-~--~~~---~--~~
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
Well then theres your problem. Figure out why user is empty. Should of
probably debugged that before blaming extract.
On Oct 28, 9:37 am, Sergio Silva ssil...@gmail.com wrote:
$data = array(
User = null
)
User data is null!!
2009/10/28 Simon simon_d...@hotmail.com:
A little bit of reading, please, before you ask. :)
You could have learned what 'bake' was by reading the CakePhp book.
Do yourself a favor and do the blog tutorial. -
http://book.cakephp.org/view/219/Blog
On Oct 28, 9:58 am, www.landed.at calvincr...@gmail.com wrote:
I thought at first bake
I am having a problem with SELECT DISTINCT
This is what I have in my model:
This works:
$this-find('all', array('fields'=array('DISTINCT Album.id',
'Album.year'), 'recursive'=-1));
This Doesn't Work:
$this-find('all', array('fields'=array('DISTINCT Album.year'),
'recursive'=-1));
Album_id
I was following the code and examples from a Book, not the book.cake.
Sorry I wasn't clear on that.
On Oct 6, 1:57 pm, brian bally.z...@gmail.com wrote:
On Tue, Oct 6, 2009 at 12:20 PM, gimperdan...@gmail.com
gimperdan...@gmail.com wrote:
thanks!! Maybe the book is outdated or just a typo.
the question why do you want to paginate comments while you are
paginating posts?
in general when you paginate the main model (Post), you just include
summary fields from the associated models example
-last commented by commenter name
-last comment title... not body... (text)
-last commented in
What do you mean by it doesn't work...? any more details?
--Lapinski
gimperdaniel wrote:
I am having a problem with SELECT DISTINCT
This is what I have in my model:
This works:
$this-find('all', array('fields'=array('DISTINCT Album.id',
'Album.year'), 'recursive'=-1));
For the life of me i cant figure out why im getting a parse error.
?php
class User extends AppModel {
var $name = 'User';
var $belongsTo = array('Group');
var $validate = array(
'email' = array(
'rule' = 'email',
It doesn't help if you don't explain what your are doing and what you
are trying to achieve. Where is validatePassword used?
Also: http://www.milesj.me/resources/snippet/17
On Oct 28, 3:59 pm, centr0 centrosc...@gmail.com wrote:
For the life of me i cant figure out why im getting a parse
This...
function validatePassword(password1 = null, password2 = null) {
...should be
function validatePassword($password1 = null, $password2 = null) {
On Wed, Oct 28, 2009 at 10:59 PM, centr0 centrosc...@gmail.com wrote:
For the life of me i cant figure out why im getting a parse
Why doesn't work: Router::connect('/:cat/*', array('controller' =
'categories', 'action' = 'view'), array('cat' = '[categories|
kategorie]')); ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post
What are you trying to route to?
Router::connect('/:cat/*', array('controller' ='categories', 'action'
= 'view'), array('cat' = 'categories|kategorie'));
On Oct 28, 4:23 pm, kicaj ki...@kdev.pl wrote:
Why doesn't work: Router::connect('/:cat/*', array('controller' =
'categories', 'action' =
omg. kill me. this is what i get for programming in java for a
month.. then going back to php. thank you toby... and thanks miles
for the link!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To
I've created a simple headache tracker app using cakephp, however the
inflection for headache is wrong. I know at one point I saw a way to
change the inflection so that it reads correctly.
Instead of saying Add Headach I want it correctly read as Add
Headache.
Can someone point me in the right
Nevermind I found what I was looking for. I don't much care whether
the file names are wrong, just wanted the output to be correct.
On Oct 28, 8:48 pm, matalina matal...@gmail.com wrote:
I've created a simple headache tracker app using cakephp, however the
inflection for headache is wrong.
Lets say someone has a website that was done using no framework. Then
they come to me and ask me to add a large section onto the site. I
would like to use Cake for that section of the site. However, how
does that work with the existing design and layout of the site? If
the rest of the site
In short answer, you don't and shouldn't. If they already have a pre-
built system, build the code procedurally, not with cake.
On Oct 28, 2:02 pm, dtirer dti...@gmail.com wrote:
Lets say someone has a website that was done using no framework. Then
they come to me and ask me to add a large
Hi guys,
I've been debugging my controller that is using Sanitize and I had a
peek inside the CakePHP Sanitize core lib file, where I found
something odd.
Is it possible if someone could explain to me (I'm just genuinely
curious) the reasoning behind line 223 in /cake/libs/sanitize.php
(version
Set debug to at least 1 (and no matter that it is ajax) to see error.
On Oct 28, 10:34 pm, Thanos Atskakanis
thanos.atskaka...@googlemail.com wrote:
Hi all,
I am currently building a CMS and my system does some ajax requests which
return some html: simple and nice.
When I run it locally it
Hii Programmers ,
In cakephp when I use DATE field it displays the dropdown list with
year limit 1989-2029 how can we get the date from 1950?
regards,
jiru
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
66 matches
Mail list logo